Most voted "rest" questions
REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems, such as the World Wide Web, using simply HTTP. It has grown in popularity over RPC architectures such as SOAP, due to intrinsic client-server decoupling, thanks to the uniform interface that establishes between heterogeneous systems.
Learn more…552 questions
Sort by count of
-
198
votes3
answers154272
viewsWhat is REST and Restful?
I always hear of REST and RESTful, but I can’t tell the difference between us or what it’s for. It seemed to me something with Common.js-style application architecture pattern.…
-
33
votes4
answers9005
viewsWhy is HATEOAS important?
I am studying REST and Web API development and I have heard about HATEOAS (Hypertext as the engine of application state). I understood the idea: when answering a request, in addition to what we…
-
27
votes5
answers1106
viewsIs SOAP safer than REST?
When implementing online billing software, I asked the responsible company if there was a REST version of the API. The answer was that they did not use REST due to security, that SOAP would be safer…
-
22
votes2
answers30102
viewsWhat is WSDL (Web Services Description Language)?
Related to: Web Service Type Differences: SOAP, REST, XML What is WSDL? What is your relationship with REST and SOAP? Where I find the WSDL documentation?…
-
17
votes5
answers2766
viewsWhat HTTP code should I use when I can’t authenticate to third-party services with login and password provided by the client earlier?
I am implementing a service from a website that does the following: My website (A) connects to some external services provided by third parties (B, C and D) using webservices. In fact A is a REST…
-
17
votes3
answers5190
viewsWhat is the difference between Graphql and REST?
People have commented a lot about the use of Graphql and with that, some comments that will replace this rise that we have of REST API’s. What is the difference between the two (Graphql and REST)?…
-
17
votes2
answers3144
viewsIs there a REST specification for uploading files?
I’ve been having second thoughts about it for almost a month. In certain to my application, the user can upload to a file library. This upload needs to be recorded in a table called midias, where,…
-
16
votes2
answers2789
viewsIs SOA the same as REST?
I am learning about SOA in a college course. And from what I understand, SOA is tied to the concept of Web Services. There are also REST Apis that are also related to this concept. Both terms give…
-
15
votes4
answers3728
viewsJava client library for REST web services
I am in a project in which it is necessary to access a web service REST and I would like to know which is the most used Java library to access this type of resource in an easy way. I know it is even…
-
12
votes1
answer1426
viewsWhat is the Richardson Maturity Model?
In a question I asked about HTTP was commented on the Richardson Maturity Model, from what I understand, it serves to define how semantic your server is relative to HTTP (if you use verbs and return…
-
11
votes2
answers3118
viewsAre REST and HTTP the same thing?
I would like to know the difference between REST and HTTP. Since a while, I have been studying these two subjects and they seem to me to be the same thing.
-
11
votes2
answers2058
viewsWhat would the route model look like for a Rest API in more complex operations?
I did some research on the REST API model, but among the many questions I had, I have one that is essentially important. People always gave examples of route models that looked like this:…
-
10
votes3
answers9800
viewsHow to keep a server nodejs running permanently?
I want to know how to maintain my server nodejs permanently running on my vps Ubuntu I bought without the need to run Putty and run the command node app.js. I made a REST API that will be consumed…
-
10
votes2
answers2295
viewsGood Practices for URI in Restful API
I’m having doubts about the Uris of some of the api features I’m developing. I have the features projects and activities in connection with 1-N, that is, a project has several activities and an…
-
9
votes2
answers3516
viewsWhat is the right way to authenticate to a REST API used by mobile applications?
Actually there are two questions (with the right to subquestions). Today I have an already implemented token generation engine (inherited from a web application) that I am using in my REST* API for…
-
9
votes1
answer1165
viewsHow to avoid HTTP request overload when consuming REST API?
I have a REST API made with Laravel and a Webapp (which uses the features of this API) made in Angular.JS. My Webapp is a unique portal for registered users, but now I’m creating a website so that…
-
9
votes2
answers3664
viewsConnection to the Bank drops after a certain time
I have a server where I have several web applications connected to the database(Mysql). The problem is that if any system gets idle it loses the connection to the bank and I have to refresh the…
-
9
votes2
answers15933
views -
9
votes5
answers2767
viewsHTTP methods in practice
I’ve seen the W3C documentation some questions here at Sopt: What are the HTTP request methods, and what is the difference between them? What are the advantages of using the right HTTP methods? Why…
-
9
votes1
answer2490
viewsDoes the REST standard allow the use of query string?
Most frameworks I know use URL parameters as follows: /recurso/variavel For example /produtos/{nome} /produtos/{categoria} Some use between {} others <>, etc. To differentiate the searches is…
-
8
votes1
answer139
viewsHow to avoid conflict of data between two PUT requests on HTTP?
What techniques can we use to avoid the collision between data of two PUT requests so that the changes of the second request do not override those of the first? Let’s imagine the situation: There is…
-
8
votes3
answers644
viewsHow to create a "Main" in an application that consumes a REST service that has all the entities in the system?
I am with the following web application created initially for and web using Spring Boot, Spring Security and Thymeleaf (authentication and authorization). I did a REST job and separated the…
-
7
votes1
answer144
viewsShare types between API and client application
I am developing a REST API using ASP.NET Webapi 2 and, as I come from the old SOAP standard, I’m used to type sharing between the API and the client. That is, when referencing my service in the…
-
7
votes2
answers3003
viewsWhat is the difference between Webhooks and a REST API?
In a API REST We define a resource to receive data and then return some response. And to send a message to a webhook, we make a request and also receive a reply (depending on the case). You both do…
-
7
votes2
answers2792
viewsWhat status code to use when there is no database record to return on an HTTP request?
I own an endpoint that returns a list of products. Therefore, if there is data from this list I set the HTTP status code to 200, and if there is not, I return only a json saying that no record has…
-
7
votes1
answer5651
viewsInfinite recursion (Stackoverflowerror): Error when listing products with categories and unit of measures
Good afternoon! I am trying to list the registered products, but the error happens below: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not…
-
7
votes1
answer3469
viewsConsume Pje web service
I need to consume the progress of a process using the web service provided by Pje. I am following the guidelines described in: http://www.pje.jus.br/wiki/index.php/Tutorial_MNI According to the…
-
7
votes2
answers990
viewsLaravel Restful Api - JSON errors instead of HTML
How do I get the controller to automatically return a replay to the client in JSON format instead of HTML in case of an error (e. g. error 404, 500, 419, etc.). For example, if there is error 500 in…
-
6
votes2
answers2854
viewsHow to view a PDF in the browser with an ajax request?
I make a requisition like this: $.ajax({type : 'GET', url : URL_APP_CONSULTA_BOLETO_DIVIDA_ATIVA + url}); I have a java method that returns something like this: return…
-
6
votes2
answers3464
viewsSecure authentication via REST
I searched and could not find solution to the following problem: How do I control requests on a particular REST service? For example, if I have a blog where I access my services (insert post, remove…
-
6
votes1
answer592
viewsSlim Framework PHP Routes
Hello folks I’m having trouble using the Slim framework... when I try to access via get the root "/" I can normal, but when I try to access other methods like "/hello" it simply n goes, error " Not…
-
6
votes2
answers1296
viewsOpen ID Connect and Oauth 2
Last year researching a bit about authentication on API's REST I’ve heard of OAuth and saw many recommendations regarding it. I read a little on the subject, liked the same and started using it with…
-
6
votes1
answer1320
viewsReceive parameter in delete request
I am trying to pass a parameter to my DELETE request, I tried to do the following: Use in the same way I use in GET (where it works normal). app.delete('/contatos', function(req, res){ var obj =…
-
6
votes1
answer502
viewsOrchestration web service
On many websites and articles, the term orchestration of services is displayed. But what it means to orchestrate services and processes in the terminology of web services?
-
6
votes2
answers1577
viewsSecurity with Angularjs and Rest
I’m starting with Angularjs and Rest (Java JAX-RS) and I’m having a doubt. The functions responsible for Rest requests are easily viewed via the browser by right-clicking Exibir código fonte da…
-
6
votes1
answer67
viewsIs there a correct way to pass parameters to search?
I am making a Restfull application and it occurred to me the following doubt: "Am I passing parameters in the correct way for this method?" The method in question is this:…
-
5
votes2
answers287
viewsHow to use the Afnetworking 2.0 library synchronously?
I would like to call a Rest service using the library AFNetworking. How to make a call synchronously, ie wait for the return of the webservice? For example: Method that will return a car object:…
-
5
votes1
answer243
viewsJavascript-controlled page layout using REST for dynamic content
I was thinking of a different standard to develop my application via browser. As it is an ERP, I need a quick interface that does not need to download the HTML from the server at all times to print…
-
5
votes1
answer1659
viewsHow to handle security in a REST application with Spring?
I would like to know how I could treat the security of a stateless REST application with Spring. Imagine that no user can access any content from /app/content if you have not identified first. There…
-
5
votes1
answer236
viewsMonitoring REST API status
I’m learning and trying to solve a POST case request where a dispatch of a body well wide to be processed by API and the return is a job ID to access the result. It turns out that the time it takes…
-
5
votes1
answer2187
viewsRemote REST webservice in PHP receiving JSON via POST with problems
I have the following situation... A purely javascript client application that runs with Node.js, where you post a JSON, as follows: doLoad = function (livrosList){ var xmlhttp = new…
-
5
votes1
answer238
viewsWhat does this definition of resource really mean?
I’m studying about web API’s and REST and the book I’m reading says the following: The Web is built around three main concepts: resources, URI’s, and representations. A resource is anything that has…
-
5
votes1
answer3559
viewsWebservice REST Simple
How to create a simple REST-type Webservice that does HTTP communication from an Android device with the server, using the PHP language? My goal is to make Requests and receive as a result Response…
-
5
votes1
answer446
viewsMonitoring Mysql database c/ Java application
I have a Java desktop c/DB Mysql application running in 100 company branches for more than 6 years. Today at headquarters we need some information from the branch database. I am developing a web…
-
5
votes1
answer1057
viewsHow to get the result of the Retrofit 2.0 Request
Well, I’m starting to study Android, I’ve already requested with Volley but a friend indicated me Retrofit for being much faster and "simple". But I still don’t understand much. I have a Webservice…
-
5
votes1
answer1161
viewsRails and Webmotors
someone with some experience with Rails integration with the Webmotors Api? I am using Gem SAVON to integrate the application with the site API and am getting the error: Savon::Soapfault:…
-
5
votes1
answer376
viewsWeb service hosting equals a website with pages?
I am developing a mobile application with Xamarin. This application is a screen to authorize or not discount above authorized by sellers. So I have a web service that goes into the bank and takes…
-
5
votes1
answer1414
viewsREST API versioning. Is there a way to do it and what would be the best option?
Currently I develop integration Apis with services internal to our company and in the near future we will have the opportunity to provide some of our Apis to external partners. Suggest the idea of…
-
5
votes2
answers396
viewsconsume REST service with totalcross
I would like to know how to consume a REST service using totalcross. I made an example following what is in the documentation, I am using Httpstream. String url = enderecoWS + servico; HttpStream hs…
-
5
votes1
answer1366
viewsHow to create webservice using PHP and REST?
I have been researching a lot about webservices lately and would like your help to know how I can build a webservice using REST and PHP. I chose PHP because I am more familiar with the language, and…