H
H
hbrmdc2015-09-05 21:11:15
RESTful API
hbrmdc, 2015-09-05 21:11:15

What's the difference between JS and REST API?

Restful apis of most different services have a JS and REST section.
example:
backendless.com/documentation/data/js/data_basic_s...
backendless.com/documentation/data/rest/data_basic...
What is the difference between JS and REST? In the case of the JS API, it is proposed to download a small js file, which contains methods for accessing the service API. So this file is just a replacement for superagent ? Those. js methods do the same GET, POST, etc. requests?
If so, what is the point of such an approach? Why can't you just always use REST with a library like superagent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Sadovnik, 2016-02-23
@cyril_sadovnik

In this case, they just wrapped HTTP requests in a library for you. You can use this abstraction, or you can work with the HTTP API using the same superagent directly, as you prefer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question