Hi all,
This is not specific to Ruby on Rails but a generic question regarding RESTful implementation. I learned that RR guys are best to seek help from.
There are couple of conceptual questions regarding how to implement web-service interfaces the RESTful way.
Suppose I create a RESTful service to expose books as entity. Then
1. When displaying the index of books, how to implement filtering? The web-service interface should take filters as input and return list of books matching the filters.
2. If I want to invoke an operation on the server that takes a book instance as parameter then how do I expose such operation? This operation does not change the book instance at all.
3. Similarly what should the interface look like if an operation takes a book and a filter as parameter? The operation returns 'success' or 'failure' to the web-service client.
If possible please give example URIs of such interfaces.
Btw, I was referring this REST service guideline:
http://www.xfront.com/REST-Web-Services.html
Thanks,
Winay
This is not specific to Ruby on Rails but a generic question regarding RESTful implementation. I learned that RR guys are best to seek help from.
There are couple of conceptual questions regarding how to implement web-service interfaces the RESTful way.
Suppose I create a RESTful service to expose books as entity. Then
1. When displaying the index of books, how to implement filtering? The web-service interface should take filters as input and return list of books matching the filters.
2. If I want to invoke an operation on the server that takes a book instance as parameter then how do I expose such operation? This operation does not change the book instance at all.
3. Similarly what should the interface look like if an operation takes a book and a filter as parameter? The operation returns 'success' or 'failure' to the web-service client.
If possible please give example URIs of such interfaces.
Btw, I was referring this REST service guideline:
http://www.xfront.com/REST-Web-Services.html
Thanks,
Winay