Json-server: PUT doesn't create objects?

Created on 23 Sep 2017  路  1Comment  路  Source: typicode/json-server

my db.json looks like this: {"multi-text":[]}

when I try PUT http://localhost:3000/multi-text/1 I get a 404 in the json-server log

in this example this kind of request appears to be working (under post)

was this removed and if so how can I get it back?

Most helpful comment

isn't there a way to make PUT requests creating entities when they do not exist already ?

according to the HTTP standards it should

however this is duplicate of https://github.com/typicode/json-server/issues/472

>All comments

isn't there a way to make PUT requests creating entities when they do not exist already ?

according to the HTTP standards it should

however this is duplicate of https://github.com/typicode/json-server/issues/472

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goldmont picture goldmont  路  3Comments

0plus1 picture 0plus1  路  3Comments

pantchox picture pantchox  路  3Comments

sharpmachine picture sharpmachine  路  4Comments

casvil picture casvil  路  4Comments