Questions tagged as 'rest'

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
0
answers

Faster form API REST - PHP

Good morning people Stack overflow !! Next, I'm doing an integration next to my Sql server bank of a Rest API, where I pass the information I want in the URL and get the content as json I make several requests in this API, bec...
asked by 16.01.2017 / 13:22
1
answer

How to consume a multipart form-date method with void method

How to consume a multipart / form-data method of a webservice done in java, by ajax or jquery? Below I leave the method as follows: JAVA: @POST @Path("/aprovarCompra") @Consumes("multipart/form-data") public void aprovarCompra...
asked by 16.01.2017 / 15:01
0
answers

Upload Image java to javascript

I'm developing a rest web service with Spring in Java that provides images to the front-end , which calls Java with an ajax event. On the server side I'm using Image from java. import java.awt.Image; I create an image based on another...
asked by 27.12.2016 / 14:37
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

How to version REST API?

Is it good practice to version our API's? ex: ( link ) If yes, what best practice to version? I am using Apache server with Silex micro framework PHP, could I create a folder / directory within the app with name of "v1" or should this be handled...
asked by 23.11.2016 / 14:35
1
answer

FaceBook Login with API REST

I've integrated an Android app with FaceBook and I'm already able to log in there. Now, I have to integrate the FaceBook login with the authentication part of my API. For example, now, what I can do is log in through FB and if everything is o...
asked by 11.11.2016 / 18:08
0
answers

What procedures should be followed to implement the semantic interoperability of a REST Web Service?

Semantic interoperability is something optional in the REST pattern, there are no rules defined as it does in SOAP with WSDL - for example, but I understand that in REST it's important to keep that way to make the pattern flexible, at least for...
asked by 27.01.2017 / 14:46
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
1
answer

How to organize the REST API and the site frontend? [closed]

I am creating a Single Page Application, for this, I created a Restful API in Node.js that does all the actions in the database, login, sending emails and etc. I thought about creating a "public" folder in my project and put there my front end....
asked by 09.08.2016 / 01:49