Questions tagged as 'rest'

1
answer

Infinite recursion (StackOverflowError): Error listing products with categories and unit of measures

Good afternoon! I'm trying to list the products registered, but the error below happens: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowE...
asked by 01.10.2017 / 19:32
2
answers

How to use REST to validate the receipt of XML 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. Listening to say it would be via Rest but I've never used Rest. I w...
asked by 11.07.2016 / 14:09
1
answer

What response pattern in a file does an action partially perform?

#define API http://localhost:80/api/v1/resources.  When doing a POST in resources , the user (dev) can register / include an N number of resources.  Assuming some (uns) record could not be entered, but the rest was successfully. How...
asked by 28.11.2016 / 21:00
2
answers

Check if a record came null from the back end in the Angular

I have a modal where I have two inputs of type text: CPF and Senha . In the input of CPF I have a ng-blur that makes a Request GET every time I change the field. If I type a CPF that exists in the databas...
asked by 18.09.2015 / 13:36
1
answer

How to determine if a string value is in XML format?

I'm connecting to an API, or service like that, which returns me 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 application I'm using the following code to connect t...
asked by 25.02.2014 / 21:47
2
answers

What's the difference in using ModelAndView and ResponseEntity?

I came across these two classes, I found their function well the same. What are the differences between them and when is the time to use a specific one?     
asked by 17.01.2018 / 18:28
2
answers

Restful method DELETE

Inside the Rest architecture we have the verbs POST , GET PUT and DELETE . Among the various examples and tutorials I studied. The use of the DELETE verb is always exemplified with DELETE /addresses/1 , where I...
asked by 19.04.2018 / 15:58
1
answer

How to do POST with parameters in WebService REST in java?

Hello, I have a problem that I can not solve for days. The situation is as follows, until today I was only able to use the GET method of my webservice passing parameters directly to the URL path. But now I need to consume the webservice by pa...
asked by 10.11.2015 / 15:03
1
answer

Creating 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 have the following error: In 'Access-Control-Allow-Origin' header is present on the requ...
asked by 20.02.2014 / 13:50
1
answer

Asp.Net Razor with Json

I have a question and I already researched several sites but I did not get the answer. I develop systems in .Net with C # in the MVC standard and use the on-screen presentation in the traditional View with Razor form. It turns out that I ha...
asked by 05.04.2017 / 18:21