Skip to content

Conversation

kausri
Copy link

@kausri kausri commented May 21, 2019

Updated the README to reflect the correct order of the response :)

```json
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON data does not have guaranteed order for a keys

Also the comma is on the wrong one so the syntax is invalid now.

**Response**

- `201 Created` on success
- `400 BAD REQUEST` on plure due to incorrect data

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's a plure?

Also "Bad Request" would be better to match the case of the 201.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants