Answer the question
In order to leave comments, you need to log in
How is a link made from json (dot)?
I recently learned how to work with JSON files using javascript and angularjs. Then I learned to get data from that JSON, which is called a "point". This dot is a link in the browser that looks like 192.168.12.345/api/sometext
I know that a person pushed data there by making a request from the database. Actually, I have a question: what software tools, what code, and in general, how can a query from a database be turned into a browser link?
Answer the question
In order to leave comments, you need to log in
Using any language/platform for server programming.
For example: PHP, Python, Node.js.
Because you are taking JS, maybe it will be easier for you using Node.js as an example .
If in 2 words - your application is running on the server, which is listening on port 80. When you send a request (using javascript and angularjs), the server receives a query string (/api/sometext) and possibly other data (request body, cookies and other headers ) and based on this data makes a query to the database. The response received from the database is converted into JSON format and returned as a response to an HTTP request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question