Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

learn more… | top users | synonyms

1
vote
0answers
6 views

RESTful API design - /users/:userId/resourceType vs. /resourceType/?user=:userId

I'm spinning my tires a bit and I'm curious to know what others have decided on given the same scenario. To get a list of resourceType for user identified by :userId from a RESTful API, what URI ...
0
votes
0answers
19 views

How can I read directly the output of Invoke-Method as an xml without using an intermediate file?

I have a restful service that returns this XML:(shortened) <feed xmlns="http://www.w3.org/2005/Atom" xmlns:atom="http://www.w3.org/2005/Atom"> <id>http://xxxxx.com/search</id> ...
0
votes
1answer
24 views

RESTful Android client with @pathparm server based on Jersey

I have problem to post file on Jersey database with more than one @pathparams (without @pathparam tests, works!!). The server code is: @POST ...
0
votes
0answers
20 views

RESTful - Which route is better?

I have two models User and Book. I am considering which route is better for getting a user's favorite books: /user/:userId/favorite-books /book?user=userId Both of them make sense to me. Is there ...
0
votes
1answer
32 views

How to call RestFul WCF POST service using POSTMAN or any client tool application?

okay lets say I want to use POSTMAN or any other Rest service client tool to call my code, how should can I do it? one of my parameters "data" is huge and I dont want include the "data" or payload in ...
0
votes
2answers
35 views

REST route identifier other than 'id'

I have a resource 'users'. You can request information about a particular user via: users/:id where 'id' is a number. I also want to have the ability to query a user via their username. I am ...
0
votes
1answer
17 views

PUT Request showing in logs

Not sure if I'm missing something here, but every site on RESTful design states that updates should be done via a PUT request. I've been doing that, but noticed that the parameters are being put in ...
0
votes
2answers
46 views

REST equivalent for a isVerb kind of method (boolean response)

I am new to REST and have some trouble finding the proper RESTful url for an API. I have an API that, given a word, returns a JSON with a boolean that indicates if the word is a verb or not. So in a ...
-1
votes
1answer
36 views

RESTFull Architecture HTTP GET & PUT Requests [closed]

Could anybody point me to a tutorial, examples or docs about http request, GET, PUT. I need to put & get a JSON package to & from a URL. Cant find much objective-c information about ...
1
vote
1answer
42 views

RESTful URL design for a Friendship System

I am an API developer in my company. We are developing a social network. We are using a friendship system. We are using API-oriented system. The api i will be writing will be used by for every ...
0
votes
0answers
20 views

RESTful API - I am trying to do GET on some url and get a responce to validate

I am working on groovy 2.0.0 on grail 2.1.1 framework. I have added following plugin "rest" grails install-plugin rest and added - compile ":rest:0.7" in BuildConfig.groovy Question - I am trying ...
0
votes
1answer
222 views

Laravel 4 RESTful API resource controllers

Im developing a Laravel 4 RESTful JSON application. The application is based around resource controllers bound with repositories / interfaces using Laravel 4's amazing IoC abilities. Currently i ...
0
votes
1answer
49 views

REST API URI Design Approach

I'm working on my first RESTful API design for a greenfield application I'm building and could do with some pointers on the URI's of the API. For background the system is used by clinicians to get ...
1
vote
0answers
15 views

Is there any way to find enclosing resource in rails?

when we write url as /posts/:id/comments, we are mapping comments to posts only can find corresponding comments as:- @post = Post.find(params[:post_id]) @comments = @post.comments But lets say ...
0
votes
1answer
23 views

Why providing pagination information in API response?

We are now designing our RESTful API and I have a question for how to expose the pagination information. It seems some famous services like Github or Firefox Market Place having something like below ...

1 2 3 4 5 20
15 30 50 per page