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
-
5
votes1
answer221
viewsWhen is the standard model request/Answer required in the context of a REST application?
If possible, let’s imagine a context where Spring Boot and JPA are used. During the construction of some REST API, I always wonder if I should perform the standard model request/Response. For…
-
4
votes2
answers29844
viewsHow to submit a POST request to a REST API in PHP?
I consider it quite simple to execute a GET request, normally I use: //$serverurl contem a url da api para a função desejada try { $cursos = file_get_contents($serverurl); } catch (Exception $e) { }…
-
4
votes2
answers758
viewsAngularjs + Sharepoint + Rest API
People I am currently trying to develop a script within Sharepoint using the Script Editor but it is falling into the error of my code, as if the connection was not correct, however, in google’s…
-
4
votes2
answers625
viewsWeb Api 2 - Routing not working
I created a web service REST using Web Api 2, and in development everything is functional. I am using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi",…
-
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
answer859
viewsIs this a good way to keep my API safe?
My application consists of an API nodejs on backend but I’m also creating the reference implementation of a Javascript client, which is a SPAen made with Backbone. First: the API accepts only HTTPS…
-
4
votes1
answer1467
viewsHow to avoid misuse of a REST API?
I am developing an application that is composed of three parts: Backend (BD + API), developed with Symfony 2 + Doctrine 2 IOS client Android client Most client requests for the API must be…
-
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
votes2
answers2985
viewsConsume Moodle Web Service
I am trying to consume the webservice of Moodle, following a js/Rest example I found on github, I created a test.php with the code below (changing the domainname and token) but when I call the page…
-
4
votes2
answers6465
viewsHow to return a list as JSON using Spring MVC (@Restcontroller)?
I want to return a list in JSON format using Spring, but I am not succeeding. At pom.xml I added this dependency: <dependency> <groupId>org.codehaus.jackson</groupId>…
-
4
votes1
answer476
viewsREST - Http x Json
I did some research and have some questions about REST: Http is Rest? JSON and XML are only the return format of a Rest operation? REST x Web Services: are the same things? SOAP would be the…
-
4
votes1
answer727
viewsFundamental principles REST
In this Article by Infoq, the author highlights the five fundamental principles of REST: Give all things an identifier Link things (resources/identifier) Use standardized methods Features with…
-
4
votes1
answer632
viewsOauth API authentication with external provider
When we use Oauth we have the "authorization server" and the "resource server". The resource server is the server on which the API is, that is, this is where the interface to the resources we want…
-
4
votes1
answer763
viewsHow to return the converted image to Base64 in Postman
I have a Web Service REST Server, need to traffic a web service image to the client, when the client requests a particular image, the web service does the conversion to base64 and send it to the…
-
4
votes1
answer435
viewsPOST Spring Data REST does not work with relationships
I’m with a project using Spring Boot and Spring Data Rest to serve a Rest API. When I’m serving an entity without relationships, it works smoothly. The problem is when I use an entity with…
-
4
votes1
answer1008
viewsStackoverflow in bidirectional relationship at JPA
I’m facing this problem with a bi-directional relationship, when I put in a question to create an answer it makes persistence, even then beauty, but if I try to get a get or even in the answer the…
-
4
votes2
answers430
viewsCut bidirectional relationship looping
I am with a Spring project, using JPA and liquibase, I have a bi-directional relationship between two entities, I wonder if anyone has a solution to the problem of infinite referencing between the…
-
4
votes1
answer1580
viewsHow to Set Up Multiple Web API Get
I need to provide in my web api three forms of query: First Get with all "Getall" records, the second GET by id and a third GET with ribbon options, sent by client, e.g.: Name contains the letter…
-
4
votes1
answer483
viewsWhen and where to handle exceptions with Laravel in developing an API
I’m having some doubts when it comes to handling errors in an API. We should always treat an Exception? It would be correct to return a message like the one below? Return: { "success" : false,…
-
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
votes1
answer1028
viewsDelphi - Datasnap - Rest - Tservermethods1
I’m running some Datasnap tests with REST and json. Back at the Unit ServerMethods, that Delphi itself creates, has the function ReverseString, but well, how do I know who sent it? I’d like to keep…
-
4
votes3
answers750
viewsIs it correct in a DTO class to have attributes of two or more tables?
I need to return in a REST data of two tables, to be consumed in an Android/IOS App, developed with Xamarin. As I return a DTO, I thought to bring in this DTO data of two tables, but I find this…
-
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
answer166
viewsproblem with listing items of this object
I’m having a problem getting the data received from the payment order from pagseguro. I’m doing the consultation he’s bringing me the results but I can’t get what’s inside the paymentOrders for the…
-
4
votes1
answer54
viewsPayload blank return when performing return to WEB application in Golang
I am checking in the API if the user’s email is already registered and returns a warning message. Even performing the requests the payload returns empty. Even debugging and knowing that the payload…
-
4
votes1
answer461
viewsHow to versioning the REST API URI address?
I’m looking at ways to view the Uris from a REST Spring API because if they launch a new application, the REST API will meet the new application and support the old application requests for a…
-
4
votes2
answers163
viewsHow to pass numbers between "{ }" in the url?
I’m having a dumb doubt in some exercises using Spring Boot. The exercise requires that I receive the list of numbers as follows: http://localhost:8080/listaDecrescente?lista={12,55,70,22} And…
-
3
votes2
answers633
viewsHow to fix POST request URL using REST in Extjs 4?
I am using REST proxy. According to the default, when adding a data is used the POST without any parameter in the URL. For example, if I want to add a user, my URL should be localhost/usuarios/.…
-
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
votes2
answers101
viewsMany Relationships for Many in Restful Service
I’m starting to work with Restful Services and I’m having doubts about many relationships for many. For example, suppose I have two entities Cliente and Fornecedor and that Cliente has a list of…
-
3
votes1
answer1036
viewsWhat is the simple way to create a Webservice Rest from an existing Dynanic Java Web project?
Fala galera I’m a beginner in the world of java and created a Dynamic web project where I use Hibernate, Primefaces and Tomcat. Everything is working, screens, records (CRUD) and stuff. Only now I…
-
3
votes1
answer698
viewsTesting simultaneous queries on the REST server
I have a server REST/WebApi and wanted to test its performance with simultaneous consultations. My goal is to test, logically the performance, and also if the same is treating each request…
-
3
votes1
answer350
viewsAPI’s web, REST and Object Orientation
I’m starting to study web Apis a little more in depth and I was a little bit in doubt with the following question: I work with ASP.NET Webapi and therefore with object orientation. I have in my…
-
3
votes1
answer2310
viewsREST with Could not find error
I am trying to create a REST application, in Java web, very simple, using Tomcat 8 as a server. However, when trying to access the application: http://localhost:8080/aplicacao/rest/teste She brings…
-
3
votes1
answer1553
viewsHow to extract data from Linkedin with python?
Hey, guys, what’s up? So, I need to extract some information for a research I do at the university and I need to extract some data from Linkedin pages, I was extracting with python using regular…
-
3
votes0
answers1135
viewsRestsharp using ssl certificate
Need to use certificate to connect to a server https with restsharp. I’m using this code: var client = new RestClient(url); client.ClientCertificates = new X509CertificateCollection();…
-
3
votes1
answer834
viewsApplyupdates on REST with Firedac
I’m doing a project that uses a REST server with Firedac. I use a Generic function to give my select but when I try to give my ApplyUpdates it does not give any error but the data is not reflected…
-
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
votes1
answer767
viewsHow to pass a list of an object that contains another object (composition) to a JSON
I have two classes: Contact and Operator. A in the Contact class I have a composition: private Operadora operadora; I have a DAO where I have a class that returns a list of Contacts, in the console…
-
3
votes1
answer811
viewsAuthentication with Spring Security
Hello, I am doing a project using the Spring Framework, and I need to do a very simple authentication, using users created in the user table even (without any integration with social networks). But…
-
3
votes1
answer14854
viewsHow to make POST with parameters in Webservice REST in java?
Hello, I have a problem that I haven’t been able to solve for days. The situation is as follows, until today I only managed to use the GET method of my webservice by passing parameters directly to…
-
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
answer1199
viewsHow to get filename within folders in WEB API server
I have a directory Archive/Uploads And I would like to list all the files, within this directory I have N folders. what I’ve got so far is here. string path =…
-
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
votes1
answer103
viewsHow to resolve html rendering with VUE?
am making a test with the wordpress Rest-api with Vue 2.x, and one of the returned attributes is as follows: "content": { "rendered": "<P>Bem-vindo ao WordPress. Esse é o seu primeiro post.…
-
3
votes1
answer280
viewsCrud with simple java REST webservices. Problems with jersey client class
I have this class but it is giving many mistakes do not know what I do today that I try to solve. What I do? package manager.client; import javax.ws.rs.client.Client; import…
-
3
votes0
answers84
viewsOn my site is asking for a dll that does not exist in my project
I’m having this mistake. The question is not how to solve, but understand why ERROR, if in my project this DLL does not exist. In localhost the site rises normally without this Dll. I just wish I…