Representational State Transfer, or REST, is an architectural style for networking software to transfer information through the web.

learn more… | top users | synonyms

-1
votes
0answers
20 views

Do Myspace or Grooveshark offer an API? [on hold]

I'm looking for an on demand music API to integrate with my software desktop app. To be specific, i need something like Spotify. Spotify isn't available in my country, therefore I can't use it, in ...
-1
votes
0answers
33 views

Java REST library alternative to Restlet [on hold]

I am using Restlet 2.1.2 for POST and GET operations. I am not having any trouble with GET. With POST, I am getting apparently-random UnknownHostException errors (the host in question is indeed known ...
1
vote
1answer
50 views

How to Track File Uploads and Return Upload Status with REST?

The users for our software will want to upload potentially large amounts of files in bulk to our servers. It is then desired that we display the upload status any time the user views the upload ...
1
vote
0answers
59 views

Returning view code in an API response

I have an API that returns a JSON formatted array of users within a given pair of lat/ long bounds. I'm using this data to plot a number of markers on a map, based on the location of each user. I ...
1
vote
1answer
65 views

Rest API and caching data

I have developed an application where you should be able to browse products catalog(READ ONLY) even network access is down no wifi or 3g/lte etc. Clients(windows,ios,android etc) consume the rest api. ...
2
votes
2answers
115 views

Should an Http API always return a body?

Is there some sort of standard regarding http api responses? After reading this discourse thread I started to wonder. We are developing our public http json api at my work, and we do not return ...
0
votes
1answer
102 views

Are CQRS/DDD/Event Sourcing and REST compatible?

REST seems to promote the idea of a canonical URL for a resource, and PUTing/POSTing back a modified representation of that resource in order to change it. However, with CQRS - Command Query ...
1
vote
2answers
141 views

Is it safe to transmit access tokens via HTTP headers?

It's the first RESTful web service and I am concerned about security issues. Is it safe to transmit my access token via HTTP headers? For example: POST /v1/i/resource HTTP/1.1 Content-Type: ...
1
vote
2answers
122 views

Architecture for REST consumer [closed]

Are there any good samples of web applications that consume restful web services? I am developing a webapp with spring, and have come to the point of reading lists of elements and element details ...
0
votes
0answers
123 views

Rest API + Java. Scala, Hadoop + JavaScript Client : Deployment & Project Structure

Looking for inputs & best practice for new project : Client side : JavaScript (probably AngularJS supporting tools) Server-side & Rest API's : Java, Scala, Hadoop, Spring MVC 3 and other ...
3
votes
1answer
61 views

Modelling REST endpoints with data that not all users have access to

I am trying to figure out the best way around a small problem i have with a design for a Hypermedia API i am currently building. I have a notion of a site, very simple doesn't have much going on and ...
3
votes
2answers
130 views

How should a REST API handle PUT requests to partially-modifiable resources?

Suppose a REST API, in response to a HTTP GET request, returns some additional data in a sub-object owner: { id: 'xyz', ... some other data ... owner: { name: 'Jo Bloggs', role: ...
3
votes
3answers
253 views

Is it OK to return HTML from a JSON API?

On my current project I am responsible for the implementation of a service which involves the consumption of newly created RESTful APIs, documented as solely supporting JSON. The client consistently ...
1
vote
0answers
125 views

Is OAuth (2.0) is the right choice to make WCF WebService secure?

I have WCF webservice which serves to various mobile application. This was implemented with typical HTTPS/SSL. But there are some cases like Replay Attack needs to be considered in the security ...
0
votes
1answer
103 views

necessary to migrate to Web API from MVC controller

Since the released of Web API, I've been wondering whether it's necessary or helpful to migrate/change MVC controllers to use Web API calls. Since it's hard to describe code I'll show an example of ...

15 30 50 per page