Questions tagged as 'rest'

1
answer

Error accessing route released with Spring boot

Good afternoon I have a problem in the release of routes for my application made with Spring boot. The problem is that the main route "/ home" requests the JWT token to access it, but it is configured to allow any kind of request from any user,...
asked by 13.06.2018 / 18:52
0
answers

Validate user token of multiple applications in a single OAuth2-based authentication WebAPI

I am in the following scenario: I developed an API that is only used for authentication and authorization of company users, which I am calling SecurityAPI. All services work as expected and the API is based on OAuth2. In the company I have...
asked by 27.03.2018 / 15:33
0
answers

Send JSON post method JavaScript

I have a Restful API written in Java, which has implemented GET and POST methods, tested the methods with the Postman application and are working. Follow the Filter class @Override public void doFilter(ServletRequest request, ServletRespons...
asked by 27.02.2018 / 13:15
1
answer

CURL PHP request for a WEB Service

Good morning, everyone. Guys, I'm having a problem communicating with webservice from a third-party company here where I work. Explaining above, I need to send a transaction report with coupons that have been identified with the cashback option...
asked by 04.01.2018 / 13:10
0
answers

Error consuming JSON: "json parsing error value! doctype of type java.lang.string can not be converted to jsonobject"

I'm trying to consume a JSON in my application. I created a SplashScreen and in it, I'm trying to download the data from the JSON file and send it to my MasterActivity , where, construct a ListView with this data. I'm getting the follow...
asked by 11.11.2017 / 23:17
1
answer

Basic Authentication in WebService Rest C #

Good afternoon !!! I'm implementing a WebService Rest but I'm not able to call the BasicAuthentication method from another class. [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, UriTemplate = "ConsultarCodigo/{cpfcnpj}")]...
asked by 16.11.2017 / 20:12
0
answers

Many-to-Many Relationship Road

I have a related question API REST, if anyone can help, thank you. I have 2 entities, Product and Store, which have a many-to-many relationship between them. A Product may be available in 1 or more Stores and, in turn, a Store may have 1 or m...
asked by 29.11.2017 / 13:19
1
answer

Error trying to delete with DELETE method using web service rest in Java [duplicate]

I created a REST Web Service in Java. All operations are working less than DELETE which returns the following error: HTTPDELETEmethod:@DELETE@Path("excluir/{idpromocao}") public void excluir(@PathParam("idpromocao") int idpromocao){...
asked by 25.10.2017 / 04:40
0
answers

Error consuming service in REST. Attribute exists

Does anyone know the reason for the error below when trying to access consume a webservice? It was working normal, and began to present this error. I've done Refresh in classes, there was no change. It "complains" of an attribute, which already...
asked by 25.09.2017 / 17:53
0
answers

Problem using spring with rest

I am doing a course that I downloaded from the net (Spring with rest and angular) to develop a personal project, however I am facing some problems that I can not solve and I did not find solution in the "father of the donkeys" (Google). > The...
asked by 19.10.2017 / 01:55