C
C
CreativeStory2019-03-01 10:39:34
JSON
CreativeStory, 2019-03-01 10:39:34

How to form the desired request in the URL?

There is a JSON with data, how can I use the URL to generate a request for a specific occurrence?
for example, the general request address is

site.ru/json

{
        "id": 1,
},
{
        "id": 2,
},
{
        "id": 3,
},


How to add parameters in the request to get access only to ID: 1 without enumeration of the entire file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Somewhere Intech, 2019-03-01
@john36allTa

Open a file with a script that checks authorization, take a part with the required ID and give it to the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question