Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question