Json-server: Cant get PATCH to work

Created on 11 May 2016  路  1Comment  路  Source: typicode/json-server

I cant get PATCH to work, used fetch and POSTMAN/CURL
i get 404 when i try PATCH with a request http://localhost:3000/users?id=2345
with body of data that needs to change?

this seems to work http://localhost:3000/users/1 with same payload, i get a 200 but file doesnt change?

Most helpful comment

Hi,

There was an issue with v0.8.11-13 preventing changes to be saved to file. v0.8.14 fixes this.
PATCH works only with routes like /:resources/:id.

>All comments

Hi,

There was an issue with v0.8.11-13 preventing changes to be saved to file. v0.8.14 fixes this.
PATCH works only with routes like /:resources/:id.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AdamCook44 picture AdamCook44  路  3Comments

strom picture strom  路  4Comments

boydenhartog picture boydenhartog  路  3Comments

goldmont picture goldmont  路  3Comments

jasonlimantoro picture jasonlimantoro  路  4Comments