U
U
Urukhayy2017-10-19 12:42:11
RESTful API
Urukhayy, 2017-10-19 12:42:11

Is it possible to bind Visual Studio Code with REST-API settings?

Good day! There are back-end REST-APIs that the front-end works with. Many API routes accept JSON with certain parameters, for example:

POST /accounts
{
name: "John",
age: 23,
city: "Kansas"
}

And at the time of writing the registration, in order to send a request to create a new account, you have to fill in all the parameters in the API. But, if there are a lot of these parameters, you will have to open in parallel some notebook with a complete list of parameters of this route in order to know exactly the key of each parameter. Is it possible to automate somehow so that Visual Code, during the preparation of the request, itself suggests the parameters that I have previously laid in this route?
An example is working with classes. When we access a class instance through a dot, the IDE will offer a pop-up list of all fields and methods. How to work with the API more conveniently?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question