Answer the question
In order to leave comments, you need to log in
What is it called when the JSON REST API accepts a list of ids and returns it, but notes which are in the server database and which are not?
What is it called when the JSON REST API accepts a list of ids and returns it, but notes which are in the server database and which are not?
Answer the question
In order to leave comments, you need to log in
It's called that this is not a REST API
You have Id's
from some entities. Imagine that from collection1
To play your script and stay in REST. You need to send a GET request with Id
.
The entities that will return are in the DB, otherwise absent. If you only need Id's
, then add a parameter fields
and a value to the requests id
. And this is already beginning to move away from the "classical", and becomes the object of controversy and philosophical conclusions.
Examples:
1)
{host}/{restapi}/collection1?id="id1"&id="id2"&id="id3"
{host}/{restapi}/collection1?id="id1"&id="id2"&id="id3"&fields=id
{host}/{restapi}/collection1?id=["id1","id2","id3"]&fields=id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question