diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index d4913cdc..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,8 +0,0 @@ -mongodb: - image: mongo:latest - command: mongod --smallfiles --directoryperdb --noprealloc - hostname: mongodb - volumes: - - /tmp/mongodb:/data/db - expose: - - 27017 \ No newline at end of file diff --git a/public/img/screenshot.png b/public/img/screenshot.png index 746a0573..a811defe 100644 Binary files a/public/img/screenshot.png and b/public/img/screenshot.png differ diff --git a/swagger.yml b/swagger.yml index dceeb4e5..9504afc9 100644 --- a/swagger.yml +++ b/swagger.yml @@ -192,6 +192,18 @@ definitions: type: string description: type: string + InfoType: + type: object + properties: + version: + type: string + updateBody: + type: string + update: + type: object + properties: + tag_name: + type: string # securityDefinitions: # cookie: @@ -283,10 +295,23 @@ paths: 200: description: ok schema: - type: object - properties: - version: - type: string + $ref: "#/definitions/InfoType" + + /upgrade: + 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 /auth/login: