D
D
Dimirol2019-09-07 21:25:12
JSON
Dimirol, 2019-09-07 21:25:12

Get request to json file. What is it?

Good afternoon. Nubian question, but Google did not give any results, and it is not entirely clear how to formulate the question correctly.
Researched one service. Having opened the network tab in the console, I saw such interesting requests. There was a question how it is possible to address a static file with get parameters. What for?
/api/v1/tasks.json?finished=false&quick=true&user_id=2489

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dollar, 2019-09-08
@Dimirol

A file is something that is in a folder on your computer. And in the address bar of the browser - the address.
At the address Red Square, house 1, a certain person can live (static resource). Or maybe there is an office with a high turnover of staff, and every day you will meet a new person at this address (dynamic resource).
It was necessary to google URL , and even better URI . There is nothing about "file extension". Although, for ease of understanding, it may appear in the address. Actually, even real files can be reflected in the address, but your case is not like that.

S
Sandr-0, 2019-09-08
@Sandr-0

tasks.json is not a static file. This is one of the types of api request record, where json can simply indicate to the request in what format the data should be returned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question