1
I need to implement an api from nrs gateway for sending sms, for that it is necessary to make a URL request with the necessary parameters, but I do not know if I use GET or REST to do this, which it is recommendable to use?
1
I need to implement an api from nrs gateway for sending sms, for that it is necessary to make a URL request with the necessary parameters, but I do not know if I use GET or REST to do this, which it is recommendable to use?
1
The answer to your question, in fact, involves a debate about the different systems integration technologies over the HTTP protocol. GET, REST and SOAP are 3 of these technologies, all supported by that vendor.
GET is usually simpler to implement and test. You can, for example, quickly simulate a call directly from your browser’s navigation bar and have the response displayed in the browser itself. Are the parameters passed as in any request, via URL, with ? and &. The technology has some restrictions, such as the size of the data passed as parameter in the request. SMS messages are usually short, so this shouldn’t be a problem.
REST and SOAP are more robust technologies. They offer more advanced features that, in more complex applications, are justified in the long term. On the other hand, they require some further study and, depending on their development framework, may also require the use of third-party libraries. Also prepare yourself in this case to study other protocols such as JSON.
I did basic tests with GET calling the NRS server and it worked pretty fast. I think a good way to start.
Browser other questions tagged api ruby rest get
You are not signed in. Login or sign up in order to post.
It has this option also in the documentation, GET REST SOAP, but I don’t know which to use
– Victor
I think it would be a matter of opinion. From what I read in the documentation, I would prefer REST
– vinibrsl