Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Favourites endpoint writes incorrectly #5

Open
kartikarora opened this issue Feb 7, 2018 · 1 comment
Open

Favourites endpoint writes incorrectly #5

kartikarora opened this issue Feb 7, 2018 · 1 comment

Comments

@kartikarora
Copy link

Each restaurant object has a "is_favorite": false field. But if the PUT request http://localhost:1337/restaurants/<restaurant_id>/?is_favorite=true|false is run, the value becomes "is_favorite": "false". It becomes a string property from a boolean. This is causing parsing inconsistency in the web app.

@igorevcarvalho
Copy link

Plus... the updatedAt value becomes something like "2018-04-05T22:02:54.564Z" instead of 1504095563444.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants