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
-
1
votes1
answer480
viewsGet error message in Httpclient Post
I have a WCF Service on a server whose service is also configured as Webinvoke: [WebInvoke( Method = "POST", UriTemplate = "/work", BodyStyle = WebMessageBodyStyle.WrappedResponse, ResponseFormat =…
-
1
votes1
answer414
viewsDeserialize JSON with Restsharp and Javascriptserializer
I am having difficulty deserializar a JSON. I am receiving the following content: "response":{ "account":{ "name":"Evandro Teste", "owners":[], "creationDate":"2017-07-07T07:18PDT",…
-
1
votes0
answers328
views -
1
votes1
answer544
viewsBasic Authentication in Webservice Rest C#
good afternoon!! I’m implementing a Webservice Rest but I’m not able to call the Basicauthentication method another class. [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json,…
-
1
votes0
answers46
viewsCros Origin + Spring + Angular 4/5
I’m having a problem with my restful service with spring. Even after enabling CORS, I can’t connect with my angular application. @CrossOrigin public class UsuarioController { @Autowired…
-
1
votes2
answers117
viewsValues do not serialize in return in REST with Jersey
Good morning, you guys, I’m new here and beginner also with Java and I’m having a problem with the serialization of an object and no longer know what to do. I am giving, at least trying, to maintain…
-
1
votes1
answer685
viewsOmit DTO (Spring Data JPA) attribute
Hello, I have two DTO classes (Categoriadto and Productodto) in a restfull application, how can I omit a certain attribute of Productodto when it is used in the Categoriadto class? Below follow the…
-
1
votes0
answers719
viewsWhen receiving notification from Paypal with payment status, it gives error 500 when pushing on my API
The code below is the PUSH created for Pagseguro to send me the notification of the status of my payment. But the error returned is 500, and in their forum no answers so far. Someone who has been…
-
1
votes0
answers255
viewsREST requests with HTTPS
Good morning, everyone, One can make a doubt... is the following: I have an application that is within a certified domain (HTTPS). When I consume a REST service, I get 405 return and in the browser…
-
1
votes1
answer87
viewsSQL statement in Mysql with KURDATE(), does not display API result with PHP
In this SQL what is wrong? SELECT top.id_topatletas, top.idusuarios, top.posicao, top.workout, top.data_inicio, top.data_fim, user.idusuarios, user.nome FROM top_atletas top INNER JOIN usuarios user…
-
1
votes1
answer115
views -
1
votes1
answer36
viewsEntity attribute based on a field from another table - Hibernate
I have a microservice raised using Spring, Restful and Hibernate. I would like to know how I can modify an attribute of this json microservice, based on a condition, obtained through a query to the…
-
1
votes0
answers78
viewsEncoding exception.Registerprovider with Restsharp
Hello! I am getting an exception in "mscorlib.dll" when using Restsharp to every request made to the API. Exception thrown: 'System.Argumentexception' in mscorlib.dll ("'' is not a valid encoding…
-
1
votes1
answer2178
viewsError creating a Restful Web Services with Spring Boot - Whitelabel Error Page -
I am trying to create a Restful Web Services with Spring Boot, however my page is showing the following error: Whitelabel Error Page This application has no explicit mapping for /error, so you are…
-
1
votes1
answer241
viewsWhere to place the @Produces and @Consumes annotation? In the method or class?
I have been studying the operation of REST Apis in Java and came across two different didactics. In one of them the teacher placed the notes in the definition of the class, this way:…
-
1
votes2
answers468
viewsDoubt Springboot + Restful
I’m having a problem with my Rest requests. Until a while ago my code was working normally, but one to two weeks ago, my requests stopped working, except for GET and Delete methods GET…
-
1
votes0
answers30
viewsAutomatically consume data
I’m starting my studies in JS and React-Native. I developed an app that consumes data from a Mysql server that I have hosted on Uolhost, through a REST API that I have deployed as a Firebase…
-
0
votes5
answers1939
viewsSending form via AJAX, method PUT
Problem: I am trying to send a form with ajax via PUT, but it is returning the following message on Chrome console: PUT http://intranet.dev/%7B%7B%20URL::to('upload/'.Auth::user()-%3Eid)%20%7D%7D…
-
0
votes1
answer1749
viewsWebservice REST POST error request
When making the request for POST is returned me this error message: O servidor remoto devolveu um erro: (400) Pedido incorrecto. Iservice finds - if closed this way: [WebInvoke(Method = "POST",…
-
0
votes1
answer1332
viewsUploading files using REST and Java
I am creating an application and need a way to upload xls/xlsx files by sending the file from the front end (Ajax) to the back end (Java) so it can be manipulated. Ajax code:…
-
0
votes1
answer63
viewsRestkit performance with Afnetworking
I built a restserver using the Slim Framework (PHP), connecting in a Mysql BD. Is on a dedicated server and moderate performance, IE the response is very fast. But I made a test app on IOS where I…
-
0
votes1
answer727
viewsProblem receiving very large JSON in Restful Webservice
We work here with Android + Webservice (.Net Restful) for data communication. We are receiving the data in JSON format in a method, below: //Método public Retorno MetodoA(string sConexao, string…
-
0
votes0
answers366
viewsWebservice Restful Jersey
I am starting the development of Webservice Restful Jersey in Java and I am not able to connect to realize a simple Hello World. I added the jar: asm-3.1jar jersey-core-1.19jar jersey-server-1.19jar…
-
0
votes2
answers96
viewsServer instance restuful in Tomcat
Staff developed an app - https://play.google.com/store/apps/details?id=br.com.apprioconcurso I am using a server restfull connection to the postgree bank in Hibernate. This server is hosted in…
-
0
votes1
answer181
viewsJavafx Webview does not receive 200 messages from AJAX
I am using the Restlet library that allows you to use Restful services without needing an external server. Webview and Browser Code: public class View extends Application { public static void…
-
0
votes0
answers252
viewsProblem with CDI Glassfish Server
I am developing a Webservice with the Restful API, Glassfish server and had the following error: Severe: Exception during lifecycle processing org.glassfish.deployment.common.DeploymentException:…
-
0
votes0
answers90
viewsHow does the Rest Api with updated Fifa ranking?
I’m developing a mobile app for sports results, but I’m running into a problem. I need an api that returns me the updated Fifa ranking. Thank you for your attention
-
0
votes0
answers88
viewsURL Restful service working, but on ANDROID returns null
I’m trying to develop a service Rest for my father’s store, I’m able to bring the results in JSON through the URL, but when I try to execute the same method on android to try to fill the object, it…
-
0
votes1
answer835
viewsB2W API REST/JSON -failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
I’m starting an integration with B2W, they use a REST/JSON API, I am not finding where is wrong in my code, it is something related to the header, because I test with the Chrome dhc add-on and…
-
0
votes1
answer149
viewsRest API Django does not work
I have a problem in Python/Django. The tables school and school_application_info are related. However, there is no record of any school_id in school_application_info. So I added null=True,…
-
0
votes0
answers89
viewsCall the webservice with an XML
I have to develop a web service (Rest) in java that will be called by an excel add-in developed in .NET. This plugin has to send an xml, what I did was turn it into a string only the XML is huge. A…
-
0
votes0
answers103
views[jersey-Servlet]: com.sun.jersey.api.container.Containerexception: The Resourceconfig instance does not contain any root Resource classes
I’m trying to get application up in WAS 8.5, but I’m making this mistake when deploying, and with that the application does not run. WEB.XML <servlet>…
-
0
votes4
answers989
viewsReturn data from a URL with Query String
There is a service that needs to send data via query string and it gives me a JSON return, however, I am not getting this return, it does not send the query string. $url =…
-
0
votes2
answers354
views -
0
votes0
answers174
viewsDoubt when generating REST of return of Procedure in jersey
I have a method where his return is a list, based on an execution of a trial in the bank StoredProcedureQuery spq = em.createStoredProcedureQuery("PROCEDURE"); .... The return of this query are some…
-
0
votes1
answer686
viewsHow to return status code from Java Resteasy request
It’s quite intuitive to make a return of the API with an object or something like that, only you would like to make the return of an object along with the status code of the request. @Override @GET…
-
0
votes1
answer149
viewsHow to insert a data list using Volley
My application saves all position information within the table. This table has a column called "SENT". I have to make a select by returning all positions that were not sent and sending to a…
-
0
votes0
answers848
viewsHow to get the http request body in the API
How do I access the body content of the request sent by the client? For example: @Override @GET @Path("/mypath") public Response myMethod() { System.out.println("Conteúdo da requisição: " +…
-
0
votes1
answer242
viewsHow to consume data from the Restful API?
I watched some video lessons about Restful and did one in Laravel 5.4. Now I would like to use a template I have done in HTML5 + Bootstrap 3 to consume this data, where do I start? What do I need to…
-
0
votes1
answer44
viewsRespect Rest does not work when trying to implement in my project
I am testing a web application, but I need to implode the use of hoarding and I thought better to work with Respect Rest. I followed all the instructions of use of the class, but I can not print if…
-
0
votes0
answers91
viewsBug reading csv by http request (Webservice)
I am having trouble reading a csv file via http request. It would be a Restful webservice that receives a csv and uses its contents. I’ve tried to read it in different ways, with opencsv, Javacsv..…
-
0
votes0
answers41
viewsEncapsulate Restful Web Service Request Replies on the server side
Hello, I developed a Restful Web-Service in PHP using the SLIM framework and an android app to consume its services. It’s working fine, however, the GET request replies, which are returned in JSON…
-
0
votes1
answer100
viewsParameter in page URL
Dear, I need to create a Pyramid application for use of API. 1 - "/Quotes/< quote_number>" - Present page containing the quote returned by the API corresponding to < quote_number >. I…
-
0
votes1
answer516
viewsFirebird with restfull service and web api in C#
Hello, within a project I came across the following situation, I need to replicate information from a db Firebird Desktop to a db SQL Server Web, as both architectures do not talk to each other, the…
-
0
votes0
answers76
viewsResteasy and Struts 2 - Interceptor Problem
My project uses Wildfly 8, java 8 with Struts 2. I’m trying to use Resteasy to implement web services. The project works perfectly, but when I include the settings for Resteasy in the web.xml,…
-
0
votes0
answers42
viewsREST - What is CORS?
I’m starting in the development of Restful applications, with Spring and JAX-RS and I realized that some systems create such a CORS, not having CORS configured in the application would have exactly…
-
0
votes1
answer311
viewsUsing Jparepository and pageable can I make a partial query?
I have an object that is persisted with jparepository, I use paging but it returns all fields which is not necessary for the application. So there is some way to configure a @Query to just pick up…
-
0
votes1
answer75
viewsWhat would the @DELETE methods of a Restfull java api look like?
I’m using the FullEntityRepository of deltaspike, the Response has to be a status 204 if successful, and status 400 if not. Any tips? Service layer: @Transactional public void deletar(Integer id){…
-
0
votes0
answers785
viewsRest API in PHP - how to work with routes terminated in . json?
I am creating a Restful web service in PHP. I am not using any framework. I am following the recommendations of standards or best practices for developing web Apis, suggested by the White House. On…
-
0
votes1
answer114
viewsSending email in a Jax-rs json api
I have a demand to develop an api that among other features need to send warning emails, in the architecture it was defined that we will use javaEE Jax-rs someone has already worked with some api…