Removed 404 for GET /. 204 changed to 201 for POST /:entry/reply. Specified 404 for DELETE /:entry/reply.
This commit is contained in:
parent
2784b0e70e
commit
82a135cf1e
@ -28,7 +28,6 @@ justguestbook ver. 1.0.0
|
|||||||
|
|
||||||
#### HTTP codes
|
#### HTTP codes
|
||||||
- `200` if there are entries.
|
- `200` if there are entries.
|
||||||
- `404` if there's no entries.
|
|
||||||
- `500` if for some reason a list cannot be sent.
|
- `500` if for some reason a list cannot be sent.
|
||||||
|
|
||||||
### Post a new guestbook entry
|
### 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.
|
- `message` for an entry. Required.
|
||||||
|
|
||||||
#### HTTP codes
|
#### HTTP codes
|
||||||
- `204` if created or modified successfully.
|
- `201` if created or modified successfully.
|
||||||
- `403` if unauthorised.
|
- `403` if unauthorised.
|
||||||
- `404` if there's no such entry.
|
- `404` if there's no such entry.
|
||||||
- `500` if there are internal problems with service.
|
- `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
|
#### HTTP codes
|
||||||
- `204` if was successfully deleted.
|
- `204` if was successfully deleted.
|
||||||
- `403` if unauthorised.
|
- `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.
|
- `500` if there are internal problems with service.
|
Loading…
Reference in New Issue
Block a user