Questions tagged as 'restful'

1
answer

Redirect URL in NodeJs

I'm trying to redirect my login to a new site after the user validation function. After the redirection to the url in the browse is from the url where the login was: link " link , should be just that part: link request('http://54.93.15...
asked by 03.06.2017 / 01:35
0
answers

Ionic 2 + Cakephp 2.X rest

How to perform data parsing in% with% of next? I've already tried using json and promise . { "diaries": [ { "Diary": { "id": "1", "user_id": "1", "title": "T\...
asked by 21.05.2017 / 02:00
0
answers

Execute method by JSF automatically

I have a JSF with a p: panelGrid with columns that together form a screen that we call telemetry (big screen with several information passing in real time), in each column I added a method in which I passed an ID as parameter for searching in th...
asked by 03.05.2017 / 19:42
0
answers

How to get the body of the http request 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: " + request.body); return null; }     
asked by 14.03.2017 / 13:53
0
answers

How to customize the message / return code Http of an expired / invalid token in Web Api 2 + Owin?

When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is that it should be a 401 (Unauthorized). The problem is that I do not know how to customize this. I'm using Asp.Net Web Api 2 with Owin. public cl...
asked by 01.02.2017 / 21:44
2
answers

Restful Angular

I am developing a system with angular, java and restful jersey. However, I can not display the rest data in the view using the angle. The most I can do is generate multiple objects for each letter that contains in the rest XML and not the return...
asked by 02.12.2016 / 19:29
0
answers

Rest API in PHP - how to work with terminated routes in .json?

I'm creating a Restful web service in PHP. I'm not using any framework. I am following the recommendations of standards or best practices for developing web APIs, suggested by the White House . On their website, in the first line, we find...
asked by 27.10.2016 / 16:11
1
answer

Spring Security Oauth + Firebase

Good afternoon. I'm implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will send that token to my Java server which will...
asked by 10.10.2016 / 22:20
0
answers

Bug reading csv per http request (WebService)

I'm having trouble reading a csv file through http request. It would be a RESTFul webService that receives a csv and uses its content. I have already tried to read it in different ways, with opencsv, JavaCsv .. Anyway, the bug I'm having is that...
asked by 01.07.2016 / 21:22
0
answers

RestEasy and Struts 2 - Interceptor problem

My project uses Wildfly 8, Java 8 with Struts 2. I am trying to use RestEasy to implement Web services. The project works perfectly, but when I include the settings for RestEasy in web.xml, the Struts 2 interceptor stops working. The RestEasy se...
asked by 24.06.2016 / 17:16