Update documentation, update screenshot

This commit is contained in:
Matej Kramny 2016-05-17 16:52:25 +01:00
parent e8d3ab7df9
commit 27498e6d9a
3 changed files with 29 additions and 12 deletions

View File

@ -1,8 +0,0 @@
mongodb:
image: mongo:latest
command: mongod --smallfiles --directoryperdb --noprealloc
hostname: mongodb
volumes:
- /tmp/mongodb:/data/db
expose:
- 27017

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -192,6 +192,18 @@ definitions:
type: string type: string
description: description:
type: string type: string
InfoType:
type: object
properties:
version:
type: string
updateBody:
type: string
update:
type: object
properties:
tag_name:
type: string
# securityDefinitions: # securityDefinitions:
# cookie: # cookie:
@ -283,10 +295,23 @@ paths:
200: 200:
description: ok description: ok
schema: schema:
type: object $ref: "#/definitions/InfoType"
properties:
version: /upgrade:
type: string get:
summary: Check if new updates available and fetch /info
responses:
204:
description: no update
200:
description: ok
schema:
$ref: "#/definitions/InfoType"
post:
summary: Upgrade the server
responses:
200:
description: Server binary was replaced by new version, server has shut down.
# Authentication # Authentication
/auth/login: /auth/login: