some API doc updates from today's meeting

This commit is contained in:
Sonja Happ 2019-05-20 11:56:53 +02:00
parent ab0d8dea8b
commit e7b15f6e5d
2 changed files with 14 additions and 3 deletions

View file

@ -9,7 +9,7 @@ RSYNC_OPTS ?= --recursive --ignore-missing-args --copy-links --chown $(DEPLOY_US
all: index.html
index.html: api.yaml
redoc-cli bundle --cdn --title "$(TITLE)" --output $@ api.yaml
redoc-cli bundle --cdn --title $(TITLE) --output $@ api.yaml
deploy: index.html
rsync $(RSYNC_OPTS) index.html api.yaml $(DEPLOY_USER)@$(DEPLOY_HOST):$(DEPLOY_PATH)

View file

@ -49,7 +49,7 @@ paths:
schema:
type: object
properties:
Success:
success:
type: boolean
message:
type: string
@ -63,7 +63,18 @@ paths:
403:
description: Access forbidden.
404:
description: Not found. User not found.
description: Not found.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
example: error message
500:
description: Internal server error. Unable to compare passwords.
/counts: