What exactly is RESTful programming?
Don't give me links to wikipedia please, I'm hoping for a straight-forward answer, not some BUZZ-word-ful answer.
Bonus question: Should I feel stupid because I never heard about it outside SO?
...
I am not gettng the RESTful thing. Yes, I know how to send a GET request to my app from my browser. It's through URL linking.
<a href="/user/someone">
And can also send POST requests through form method.
<form method="post">
Beside that I know browsers sometimes send HEAD command to figure out page status, but on which the end user...
Hi,
I am developing a solution for transfering data from android phone to the server (written in C#/.NET).
I created a WCF service and testing with emulator everything worked fine. Then when I tried to login from mobile phone (connected to home wifi network) I got the following exception message:
org.apache.http.conn.HttpHostConnec...
Any tips on how to implement sorting and pagination on a resource in a Rails application and still keeping it RESTful?
How do I map the parameters for page number and sort field in a clean way? (I am currently using map.resources :x for every resource in my app)
Any other performace issues involved that I should know about? (eg. cachi...
For my web application (PHP/MYSQL), I show a list of items and a link on each row to delete the item. Right now, the link is
<a href='item.php?id=3&action=delete'>Delete Item</a>
If I wanted to use POST instead... how would I do it (this is a dynamically generated list)? Can I send POST data without the use of a form?
Or, for every...
I'm looking for guidelines on when to know when a RESTful approach to a model and it's associations is proper, and when it's not. Perhaps it's the nature of my current application, but I'm finding that simple models with no associations work well with REST, but complex models with many has_many assocations really seem to complicate the v...
I have a resource at a URL that both humans and machines should be able to read:
http://example.com/foo-collection/foo001
What is the best way to distinguish between human browsers and machines, and return either HTML or a domain-specific XML response?
(1) The Accept type field in the request?
(2) An additional bit of URL? eg:
http...
I am designing an API, and I'd like to ask a few questions about how best to secure access to the data.
Suppose the API is allowing access to artists. Artists have albums, that have songs.
The users of the API have access to a subset of all the artists. If a user calls the API asking for some artist, it is easy to check if the user is ...
Could someone point me in right direction for where an example of setting up WCF on IIS using just HTTP and POST (so that Flash can call the service)
I was hoping this could be a solution: client calls my ASPX page which has MembershipProvider. Flash game is on the ASPX page and any calls to my WCF IIS service from the Flash game also p...
I do most of my work with Microsoft technologies these days, so naturally I'm checking out what WCF has to offer. It seems very flexible and a great next step up from .Net remoting, but it seems very tied to SOAP messages and quite a bit clunky for a platform agnostic web service app. I'm not an expert on the technology, but I imagine ...
I mean, really, what is the point of SOAP?
Web services have been around for a while, and for a while it seemed that the terms 'SOAP' and 'Web service' were largely interchangeable. However SOAP always seemed unwieldy and massively overcomplicated to me.
Then REST came along, and suddenly web services made sense.
As Joel Spolsky says,...
I am trying to use Twitter OAuth and my POST requests are failing with a 401 (Invalid OAuth Request) error.
For example, if I want to post a new status update, I am sending a HTTP POST request to https://twitter.com/statuses/update.json with the following parameters -
status=Testing&oauth_version=1.0&oauth_token=xxx&
oauth_nonce=xxx&o...
I created a RESTful service using WCF which calculates some value and then returns a response to the client.
I am expecting a lot of traffic so I am not sure whether I need to manually implement queues or it is not neccessary in order to process all client requests.
Actually I am receiving measurements from clients which have to be sto...
Hi,
I just built a asp.net 2.0 web site. Now I need add REST web service so I can communicate with another web application. I've worked with 2 SOAP web service project before, but have no experise with REST at all. I guess only a coupleweeks would works fine. after googling, I found it's not that easy.
This is what I found:
There is N...
I am creating an application which sends the measurement data every 200 ms from mobile phone to the server. The data have to be processed in real-time, but I noticed that the difference between the sent time and the time of process start is getting bigger and bigger so I have to find the point where the the requests get stuck.
I am send...
I am designing a REST service and am trying to weight the pros and cons of using the full array of http verbs and content negotiation vs GET string variables. Does my choice affect cacheability? Neither solution may be right for every area.
Which is best for the crud and queries (e.g. ?action=PUT)?
Which is best for api version pickin...
The standard template for ASP.NET MVC (and MVC in general) seems to be {controller}/{action}/{id}, however, on a project i'm currently working on i'm not sure if that is an appropriate structure. If for example I had an application that controlled a car, to me it would make more sense to me to have the structure below:
{car-rego}/{con...
To tie together various legacy applications, some mainframe-based, I'm trying to compare using an ESB like MQSeries, a WS-* approach, or something more RESTful.
Is there much substance to the idea that writing the interface to REST, instead of MQ or even WS-*, may have a secondary benefit of also taking us closer to web-enabling portion...
Hi, i want to know how i could be implement REST in my web aplication. I want to create a web aplication based in this service, but i don't know how to do it. Now, i'm using J2EE and Tomcat. What things should be considered for these technologies?
EDIT:
Sorry, i mean RESTful service.
...
RESTful design seems to advocate flat or shallow structured representations (at least when resources are represented as XML). A resource representation should contain just the resource, which the URI identifies. I'm wondering when it is sensible to present resource's sub-resources within the parent resource?
To elaborate, consider this...