Most voted "restful" questions
Representative State Transfer (REST) is a software engineering technique for distributed hypermedia systems such as the World Wide Web. The term originated in the year 2000, in a doctoral dissertation1 (PHD) on the web written by Roy Fielding, one of the main authors of the HTTP protocol specification that is used by Internet sites.
Learn more…201 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.…
-
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…
-
10
votes5
answers2222
viewsWhich libraries to develop a Restful API in JAVA?
I’m a beginner in java and would like to create a RESTFUL API but I don’t know which library to use or how to use it. Can someone refer me good tutorials or some libraries for study. I would like to…
-
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…
-
10
votes1
answer752
viewsWhy doesn’t CORS block Postman and derivatives?
I am creating a Restful API with Nodejs and express and in it, I am using Cors to "control" requests. In the browser works, if I make a request to this API by the console of the site here of…
-
9
votes2
answers15933
views -
7
votes2
answers1160
viewsHow to develop a private Restfull API?
I need to develop a Restfull HTTP API in PHP to serve as authentication for users of an Android application, the problem is that as it is a public distribution application I can not define any key…
-
6
votes3
answers130
viewsHow to implement methods in Json using Serializable?
I’m making a webservice where I want to return the data in JSON, how I could implement the methods, which is the best way? GET PUT DELETE POST I did a GET method, it went like this: using System;…
-
6
votes1
answer1324
viewsHow to authenticate the application and authorize it to consume a restful API
In a given project, it was necessary to create a restful API that receives data from various forms spread across multiple sites hosted on different servers. The API was created to solve the…
-
6
votes2
answers782
viewsHow to create a Restful API with asynchronous processing and response using C# + Angular(v5+)
Hello, I am working with C# and I have the following problem: Imagine I have a route to my API api/estoque/inventario where this route should make the calculation of the inventory of the entire…
-
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
votes1
answer1582
viewsHow does authentication work in a stateless Restful environment?
My question is this:: Imagine 3 Tomcat servers (S1,s2,S3) and all 3 servers connect to a single sgbd server (s_bd1). The three Tomcat servers run an application that is of Restful and stateless…
-
5
votes1
answer1203
viewsWhat is the best method to log in to android and webservice php Restful?
I am building an application that needs login, I have already created the webservice in php using Slim. I am currently using a POST, passing a json with email and password for the webservice to…
-
5
votes1
answer197
viewsFire Asynctask class exception
The class below is responsible for obtaining data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T>…
-
5
votes1
answer4900
viewsWhen to use the http Patch method?
I did some research on the method PATCH, and saw that it makes partial modifications, but did not understand in practice when to use it and what is its difference to the PUT. I am looking for a…
-
4
votes1
answer596
views -
4
votes1
answer1415
viewsSecure authentication with REST in PHP
I’m having doubts about how to work with restful system authentication. My case will be user/password and permissions/hierarchies for the user, and until then as most interesting solution found in…
-
4
votes1
answer537
viewsHow to work with associative table with additional attributes in REST?
Imagine you have 3 entities: Student, Discipline and Alunodiscipline. The entity AlunoDisciplina , in addition to relating the Aluno with the Disciplina, also includes other information, such as the…
-
4
votes1
answer799
viewsHow to create POST, PUT and DELETE method in Grails application?
I have a Grails 2.4.2 application that I want to communicate with another application, and this interaction should occur through a Rest service provided by Grails. Today as it is implemented just I…
-
4
votes1
answer1474
viewsHow to persist a record in the database through Java restful webservice?
I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I make an http…
java web-service java-ee netbeans restfulasked 9 years, 3 months ago Marco Aurélio Soares de Souza 125 -
4
votes3
answers314
viewsCross-Domain Application Security Questions
I have a question about the security of cross-Domain applications... The following is in case I have a hybrid APP that will run on a smartphone and will make requests ajax cross-domain to an api (in…
-
4
votes1
answer1058
viewsAccent problem while consuming Webservice on Windows Server
Correction I have an accentuation problem when consuming Webservice on Windows Server. I have apache-Tomcat-7.0.63 installed on windows server 2008, and as SGB, Postgres 9.4 and with Java 8. The…
-
4
votes2
answers417
views"Cannot read Property" after an http.get request
Hello, all right? I have the following problem. I am making a Restful request (http.get) and am writing the received object into a variable within $Scope. However, when I try to access this variable…
-
4
votes3
answers2718
viewsWhat is the correct way to pass the pagination data in Sponse REST?
In more robust applications, where a table can have millions of records, it is important to implement paging in a REST API. I have seen in some projects two ways to return pagination information…
-
4
votes2
answers401
viewsSimultaneous calls in Restful service
Hello, I’m having doubts on how to make fun simultaneous calls (about 100) in a REST service. The example of code I have is the following: using (var http = new HttpClient { BaseAddress = new…
-
4
votes2
answers434
viewsJavascript - React JS
How do I take a part of a JSON, put it in a variable and then throw that variable in a "Widget" of my layout? Example: (http://ip.jsontest.com/) I want to take the value of "ip", and put in my…
-
4
votes1
answer94
viewsCustomizing URI templates using Odata
I am working on a project that contains the package Microsoft.AspNet.WebApi.OData, which offers a well-simplified implementation to support Odata V3 by simply using the Attribute…
-
3
votes1
answer1101
viewsCookies or Session by Javascript
I’m working on a project, and the back-end (java), is totally separate from the front-end, and they communicate through REST. My question is, let’s start working on the authentication area, and I…
-
3
votes1
answer1275
viewsRestricting data access with REST
I would like to know if it is possible to restrict access to my application data REST. For example, I have the xml/json that she returns in http://meuapi.com/usuarios, where you return my user list.…
-
3
votes3
answers1092
viewsWebservice REST does not return XML in IIS 8.0
The webservice in visual studio 2013 works beautifully. I added it to the IIS of windows 8.1, and when it comes time to send the data via REST, it gives me this error: The server encountered an…
-
3
votes1
answer537
viewsHow not to serialize some attributes in Restful calls (C# + WCF + JSON)?
In the example below, how to do not serialize an attribute. I believe I’m looking for the equivalent of java syntax: For classes: @Jsonignoreproperties(ignoreUnknown = true); For attributes:…
-
3
votes1
answer377
viewsSave data through POST in the database with Vraptor
I have two methods in my Controller, one that lists all database data and a method to save data in the database. I can already list all data when accessing URI but when I try to save from that…
-
3
votes3
answers499
viewsHow to force the reading of all existing REST results on a page?
foreach ($result as $indices) { // Aqui ele retorna 50 registros por conuslta echo $indices['Empreendimento']; // Provavelmente preciso de um loop da paginação aqui dentro // para falar para o…
-
3
votes1
answer87
viewsHTTPS on Rest architecture
I have a web service written using Springboot that runs on Tomcat and a client application written in Angularjs that runs on Apache2. I would like to know how the SSL issue works for this case.…
-
3
votes3
answers1826
viewsObject search/registration via REST url and registration with SPRING
I’m new to REST and Spring. I am doing an exercise where I have to search a client via url and return (GET) it in JSON format and insert(POST) a client in JSON format. To search for sera in the…
-
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
votes3
answers262
viewsMany to Many JSON POST - Rails 5 - Only API
Hello, I am developing an engine in Rails 5 where it will be just a blog API. It will be a simple system. Post has several Passions and Passions has several Posts. I made the relationship N…
-
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
answer1098
viewsLogin with Android PHP and Mysql
Hello! Following a tutorial I created an app that includes registration and login with android PHP and MYSQL, the registration works perfectly, only that in the login part when the entered data is…
-
3
votes0
answers475
viewsCORS policy Delphi Rest Full
I am creating a Delphi Rest Full server to be accessed with Angular front-end, I can apply the POST, PUT and GET but in the attempt to run a DELETE I get the CORS error implemented treatment as many…
-
2
votes1
answer847
viewsPut WS Restful Project into Production
I’m a beginner in Java and these . jar, . War, etc businesses are news to me. I did my first Restful Webservice project and added 2 *.jars, Gson and JDBC.postgres. I want to put into production (on…
-
2
votes2
answers339
viewsCAPTCHA in stateless API
How to use CAPTCHA in a stateless application? If not, what is the alternative to this?
-
2
votes1
answer871
viewsPHP authentication Oauth2
I’m doing a Restful web service, Oauth is the best way to authenticate and work with token? You can use Oauth2 to authenticate via user and password?
-
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
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
answer415
viewsWhat tools/frameworks are available to create a restful PHP API?
Are there any such tools that facilitate the development of a Restful API? I’ve heard of the Slim Framework, but I wanted to know more tools. -----edited To be more specific, I want to make a…
-
2
votes0
answers197
viewsSend photo Api Rest nodejs
I am developing a restful api with nodejs and mongodb. And I am creating an endpoint for user registration, but I would like to send a photo at the time of registration. Which of the three solutions…
-
2
votes1
answer520
viewsPrevent improper access to the Restful API
I am developing a Restful API with Laravel PHP that will be consumed by an Android application, the API is consumed only by the application, there is no web system. I am learning Restful, and during…
-
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
answer82
viewsUpload image to webservice
I am using the alamofire to post pro server, I wanted to know how to send an object that has an img inside it. I saw the following excerpt to upload the image let fileURL =…