1
0

Removed 404 for GET /. 204 changed to 201 for POST /:entry/reply. Specified 404 for DELETE /:entry/reply.

This commit is contained in:
Alexander Andreev 2022-10-21 03:21:05 +04:00
parent 2784b0e70e
commit 82a135cf1e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -28,7 +28,6 @@ justguestbook ver. 1.0.0
#### HTTP codes
- `200` if there are entries.
- `404` if there's no entries.
- `500` if for some reason a list cannot be sent.
### Post a new guestbook entry
@ -61,7 +60,7 @@ All such commands must have a password supplied in `X-Password` header.
- `message` for an entry. Required.
#### HTTP codes
- `204` if created or modified successfully.
- `201` if created or modified successfully.
- `403` if unauthorised.
- `404` if there's no such entry.
- `500` if there are internal problems with service.
@ -83,5 +82,5 @@ All such commands must have a password supplied in `X-Password` header.
#### HTTP codes
- `204` if was successfully deleted.
- `403` if unauthorised.
- `404` if there's no such entry.
- `404` if there's no such entry or reply.
- `500` if there are internal problems with service.