J
J
jondoeonoe2018-08-25 19:55:58
JavaScript
jondoeonoe, 2018-08-25 19:55:58

How to change a specific field with a request in json - server?

Good evening.
There is a package json - server.
I'm trying to figure out how to resolve the situation. There is an array of objects in the API. options. Each element of the array contains something like this structure. And if I want to change only the title of the list with id 0 (for example). So how do I properly issue a patch request? After all, json - server will not understand me if I want to issue the address localhost: 3004 / options / 1 / lists, everything seems to work there according to the ID and it does not go into the depths. Do I need to change the structure at all? I didn't find anything in the documentation.
5b8189ec97501494221516.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
msdosx86, 2018-08-26
@msdosx86

Read about REST and how to make requests and process them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question