V
V
valackar2016-07-07 04:58:28
API
valackar, 2016-07-07 04:58:28

Are there any manuals on how to work with api RESTful web services?

Hello, are there any manuals on how to make api requests for RESTful web services. I'm new to this and don't know where to start.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-07-07
@alexey-m-ukolov

An elephant needs to be eaten piece by piece - decompose your task.
To begin with, understand that working with any API is the most common HTTP requests. Therefore, you need to learn how to make such requests on the technology stack that you use.
Additionally, you need to have an understanding of what an HTTP request is in general, how to debug it, and what it consists of.
The next question that will most likely arise in front of you will be authorization on the server with the API. There are not so many approaches here, they are standard. It may turn out that authorization is not required at all and the API is open. Information about the authorization method used can be found in the API documentation.
And finally, the direct use of the API: at this stage, you already understand what an HTTP request is, know how to send and receive them, found the documentation, read it and determined what exactly you want to receive. The point is small - to process the server response. How exactly to do this, again, depends on the format of the server response. It can be JSON, XML, HTML, plain text, or something more exotic. For all popular platforms there are libraries for working with these formats.

X
xmoonlight, 2016-07-07
@xmoonlight

Manuals where this service is located.
Usually, there is documentation in it, if you request a REST-API link without parameters.
Also, if you request any method without parameters, documentation on using this method will be displayed.
The general view is usually like this:
Methods: GET, POST, PUT, DELETE
https://ru.wikipedia.org/wiki/REST

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question