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
-
3
votes1
answer763
viewsHow to Save Files to Separate Server by Extension
I have a WEB API who receives a file via POST follows the code of Controller: public async Task<HttpResponseMessage> Post() { // Ver se POST é MultiPart? if…
-
3
votes1
answer101
viewsIs ASMX web service obsolete?
I came across the need to consume an ASMX Web Service. Until then I had only consumed Restful Apis. I noticed that the same is very different from a Restful API, for example. Given the way it is…
-
3
votes2
answers1525
viewsRestful DELETE method
Within the Rest architecture we have the verbs POST, GET PUT and DELETE. Among the various examples and tutorials I studied. The use of the verbDELETE is always exemplified with DELETE /addresses/1,…
-
3
votes2
answers4675
viewsException Treatment REST Spring Services
In a REST service application with Spring, where should the exception handling/release take place? In the Controller or Service? Example 1 - Handle in Controller (In this case I’m only returning a…
-
3
votes1
answer44
viewsPage inside a Rest Web Api C#
Hello. I am creating a . Net Core C# Rest project, but I have the following question: In the processing of the Rest Post, I will return a URL so that the requesting one can view the result data it…
-
3
votes1
answer203
viewsWhat are the main advantages of the Restful Api?
Regarding the REST API maturity model, level 2 consists of "HTTP + Resources + Verbs". What are the advantages over level 1 and zero? In addition to organizing the API.
-
3
votes1
answer914
viewsCircular dependency on Rest API with Spring Boot
I’m venturing into developing a Rest API using Spring Boot, JPA with Hibernate and Maven to manage the repositories. In my modeling I have a class Club: @Entity @Table( name = "CLUB") public class…
-
3
votes1
answer1037
viewsDoubt when deserializing JSON C#objects
I am deserializing the JSON below, and would like to know, if I need to create a class with all attributes related to this JSON, or can I just create with the attributes I need to use? Am I going…
-
3
votes1
answer53
viewsSpring Rest - Use of Various Services and Repositories
I have a question about how best to implement some services with the Spring Rest, but I couldn’t find the material for this case: Let’s say I have a launch service (Lancamentoservice). This service…
-
3
votes3
answers272
viewsDeserialization of JSON
I’m having a hard time deserializing this JSON: string json = "{\"Cidade\":[\"Arrio do Sal\",\"Atl\\u00e2ntida\",\"Bom…
-
3
votes1
answer101
viewsREST in the microframework Inphinit
To experimental functionality REST Inphinit microframework requires a class with 7 functions index create store show edit update destroy In a REST API basically two are required entry points for the…
-
3
votes1
answer25
viewsPUT or PATCH, which one should I use in this scenario
I have a hypothetical database: CREATE TABLE person ( code integer NOT NULL, name varchar(50) NOT NULL, PRIMARY KEY (code) ); When I perform a POST, I create by sending on the body: { "code": 15,…
-
2
votes2
answers1138
viewsImplementation Angularjs consuming data provided from Laravel using CORS
I’m trying to create a web service in Laravel 4, which will be consumed by a mobile app using Angularjs. When I make AJAX requests with Angularjs, it gives Cross Domain error by being in another…
-
2
votes1
answer313
viewsCreating an App for Sharepoint using Dev, Angularjs and Restapi
I need to create an app for Sharepoint that does the simple task of listing fields from a list on the screen where the App is placed inside Sharepoint. I’m making the following mistake: No…
-
2
votes1
answer115
viewsHow to determine if a string value is in XML format?
I am connecting with an API, or service as you wish, which returns an xml when it finds data in the database, but unfortunately it returns a string if nothing is found or an error occurs. In my…
-
2
votes1
answer3282
viewsHow to make a CRUD via REST
Introducing I need to access a web service in PHP via mobile application. I have seen several videos and read many tutorials about Delphi’s REST Client. I even managed to develop a prototype of my…
-
2
votes3
answers601
viewsRemove: from xml generated by my web service
When I use XML in a Rest web service, it appears like this: <getCnpjParceiroResponse xmlns="http://tempuri.org/"> <getCnpjParceiroResult…
-
2
votes0
answers127
viewsHow to read the specifications of a REST Web Service
Hi, I need to create a project with consists of consuming a REST web service, where consuming this web service I need to generate an XML with its information/specifications, what are its methods,…
-
2
votes1
answer1453
viewsImproved Application to Server Communication
I am developing an application that needs to communicate with the server (send and receive data). What would be the best way to make this data exchange safely and performance? Through REST/WEB…
-
2
votes1
answer1136
viewsjava.lang.Noclassdeffounderror: org/apache/Commons/httpclient/Httpexception
I’m having a problem using the library httpclient, the exception is happening: Caused by: java.lang.Classnotfoundexception: org.apache.Commons.httpclient.Httpexception I don’t know if I am also…
-
2
votes1
answer392
viewsJSON-RPC or RESTFULL?
Between developing an API using JSON-RPC or REST (RESTFULL), I would like to know in which cases there are advantages/disadvantages in using one or the other. OBS: This may be through…
-
2
votes1
answer788
viewsProblem with filters and routes in the Laravel
Hi. I am creating an api in the. And I have a problem with routes and filters for access. I have client, operator and administrator levels. I have routes that are common for client, operator and…
-
2
votes1
answer323
viewsWebservice SOAP uses XML only?
Working some time with webservice for mobile application realized that SOAP uses XML and REST uses JSON. Using SOAP means I have to use only XML?…
-
2
votes1
answer1260
viewsHow to get a POST parameter in REST application
I started a Rest application and have a java class createPost POST @Path("/post/") @Produces(MediaType.APPLICATION_JSON) public static String createPost(@FormParam("loopID") String loopID) throws…
-
2
votes1
answer199
viewsIs there any tool that makes it possible to create an API using my database?
I have a database all modeled and with a mass of data, now I need to develop an application that provides through a REST API this database. I have two development fronts, the frontend and the…
-
2
votes0
answers220
views -
2
votes2
answers2057
viewsConsuming Json with Angularjs
I’m trying to access a EndPoint through the Angularjs. This is my Service: angular.module('empresa-view') .factory('empresaService', ['$resource', function ($resource) { return…
-
2
votes2
answers1351
viewsCheck if a record came back-end null in Angular
I have a modal where I have two text inputs: CPF and Senha. In the input of CPF have a ng-blur who makes a Requisition GET every time I change fields. If I type a CPF that exists in the bank he made…
-
2
votes1
answer145
viewsCustomize Json consumption - Web API
I have the following information on Json: [ { "$id": "1", "Cditemcontacli": 1.0, "Cdcontacli": 1.0, "Descricao": "Produto 1" }, { "$id": "2", "Cditemcontacli": 2.0, "Cdcontacli": 2.0, "Descricao":…
-
2
votes1
answer271
viewsCreate Rest service versions
I am creating Rest services with Java (Jersey). This service tends to grow and evolve, and may undergo changes in existing routines, therefore, I believe that the best way would be to create…
-
2
votes2
answers309
viewsHow to use REST to validate XML receiving via POST
I have an application in Delphi that sends an XML with a code via Post. I have to develop an application in Symfony that needs to validate the receipt of this XML via post. To hear it would be via…
-
2
votes1
answer969
viewsTable paging with Angularjs
I was trying to put a pagination in my table, after a help I managed to partially solve the problem, but it was not the way I expected. I can get the currentPage every click on <pagination>…
-
2
votes1
answer1354
viewsConsume a Restful Service with Angularjs
I did a project in eclipse with a service Rest in java, if I run directly in the browser my service it returns my data right: http://localhost:8080/Agenda/rest/Agenda/getLista Now I want to consume…
-
2
votes1
answer198
viewsVersion control Rest with Laravel
I’m doing an update on an app Android that has as back-end one api REST with php Laravel. I would like tips on how to do version control of this api. For example, I had to make a change to a table…
-
2
votes2
answers125
viewsHow to get a return of an Array<String> in a GET call with task.resume()?
Good afternoon, you guys. I’m having a hard time uploading the content of a Pickerview in my app, as it needs to fetch the information in a call GET, the call works and I can assemble the array with…
-
2
votes1
answer164
viewsAvoid response delay message
I am developing an application that consumes, via REST, a third party service. In some cases the service takes time to answer me and, as the application is waiting for reply, a message appears…
-
2
votes1
answer714
viewsReturn image by Web Service REST Server
I have a Web Service REST running, this web service does the query on ERP when the client requests the request of a given data, it needed to return the image that the client made the request and…
-
2
votes0
answers154
viewsData Field Returning Undefined
I am trying to capture a value of a component using Angularjs 1.X, but of the class that created only a date field is not being filled the same returns Undefined. Follow my controller:…
-
2
votes1
answer153
viewsWhich Response default in a Rest api when partially executing an action?
#define API http://localhost:80/api/v1/resources. When making a POST in resources, the user(dev) can register/include an N number of Resources. Suppose some (ones) record could not be entered, but…
-
2
votes1
answer515
viewsException Handler having return in JSON
I’m building a Restapi using Laravel/Lumen, in tests can occur the return be totally in HTML, this occurs when it appears that already famous screen: Whoops looks like Something Went Wrong This gets…
-
2
votes0
answers959
viewsWhat to do when the generated token expires?
I’m developing an API rest with the Framework Asp.Net Web Api 2, using Owin. I have an app android as the client. In this case, my system has users and passwords and authenticates normally. I want…
-
2
votes2
answers412
viewsgraphic with data from a REST service
I have a REST service done in PHP and this returns me data in JSON. When consuming the API url in REST, I need to display the data in javascript-based graphics. Does anyone know of a JS framework…
-
2
votes1
answer817
viewsSave Rest entity using @oneToMany
I have the following entities generated by jHipster using java with oneToMany relationship: Product @Entity @Table(name = "produto") public class Produto implements Serializable { private static…
-
2
votes0
answers113
viewsUsing Paypal REST with Classic ASP
I am trying to make a simple call to the Paypal API with the following code: On error resume next Set objHTTP = CreateObject("Microsoft.XMLHTTP") objHTTP.open "POST",…
-
2
votes0
answers864
viewsHow to use Token with PHP Rest
Guys, I decided to use the Token feature, to access my Rest I’ll be doing in PHP, mainly to learn this concept, but I don’t want to use a Framework ready, I even need to get the hang of it. Good…
-
2
votes0
answers41
viewsClient Rest + WPF - PUT method (UPDATE)
Hello, folks! I am trying to implement a method to update (update) information in a WPF application. Apparently, everything is correct, however, the method does not work. Here is the code: This is…
-
2
votes0
answers100
viewsWhat is the best strategy to update data only when needed?
In an application with React Native, using Redux and Redux-Persist, how best to identify which content needs to be updated? In my case, I have an app that makes some requests at start up. When I…
-
2
votes1
answer144
viewsShare Web API access token in different domains
Hello. I’m having a hard time sharing an access token (bearer) with different domains. This happens because I have to make a login page outside the domain of the site that consumes the REST API.…
-
2
votes1
answer217
viewsForm field filled in, but given as $pristine
I’m making a $http request, the return is a JSON, assigned to the model ($Scope.developer), but the field is still set to $pristine. Data.post('getElaborador', $rootScope.codigo, 'Listagens').then(…
-
2
votes2
answers2377
viewsWhat’s the difference in using Modelandview and Responseentity?
I came across these two classes, I found their function quite equal. What are the differences between them and when is the time to use a specific?