Restful's principle
What is the real meaning of Resources with multiple representations for the restful? After reading InfoQ's "A Brief Introduction to REST", I am confused. What is Representations? ...
What is the real meaning of Resources with multiple representations for the restful? After reading InfoQ's "A Brief Introduction to REST", I am confused. What is Representations? ...
We are currently designing a REST API that we want to publish in a few months. Since this is a brand new application we can choose any other programming language other than PHP. At this moment we are using the following link to have a base of best practices for APIs. What is the most suitable Rich Internet Application Programming Langu...
Hi, I'm struggling to apply RESTful principles to a new web application I'm working on. In particular, it's the idea that to be RESTful, each HTTP request should carry enough information by itself for its recipient to process it to be in complete harmony with the stateless nature of HTTP. The application allows users to search for med...
I have the following models: class User < ActiveRecord::Base has_many :subscriptions end class Subscription < ActiveRecord::Base belongs_to :user belongs_to :queue end class Queue < ActiveRecord::Base has_many :subscriptions end I want to have some meta-data in the Subscription class and allow users to maintain the details o...
Why does soap use its envolope messages? And why Restful doesn't? They all use HTTP (post,get etc.) , don't they? What is the real difference between soap and restful? ...
After i read that sentence "SOAP was designed for a distributed computing environment where as REST was designed for a point to point environment." After I searched about DCE and point to point environment. I learned DCE but i found nothnig about point to point environment. So what is it? ...
As I understand it, using a hypertext-driven RESTful Web service, a client is not supposed to know anything about server URI layout except for a couple of well-known entry points. This is supposed to enable the server to control its own URI space and reduce coupling with the client. When a client for the service sends a successful reque...
I've tried searching but I can't figure out how to access data via a RESTful interface. I'm looking for just example code that shows someone access some data from some imaginary web service using its API. A simple "how-it-works" explanation would be helpful too. ...
At first, I thought that RESTful is when I write code, someone can use my function like a web service. After I read lots of thing. When I am looking back now, I see lots of resources. So, Is restful means sending data or sending my code? I am confused. ...
We're using Commission Junction's REST service, which requires we sent an API key in the Authorization header. We set the header like this: $ch = curl_init(); curl_setopt_array($ch, array( // set url, timeouts, encoding headers etc. CURLOPT_URL => 'https://....', // ... )); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authoriz...
How can code be resource? I will give you an example: I want to create a hotel web site. But also i want to show my customers, which come from abroad, at which time they can come to my city. So i deal with an airplane web site. This site will give me his resources using REST. (resources mean representation of resources). For example hi...
We are writing a REST like set of services and we are returning errors as different StatusCodes. In our client application we we prefer if our work flow did not require us to catch and cast an exception to discover the error code. Is there a way to tell the WebClient or HttpWebRequest to stop throwing exceptions when it encounters a S...
Let's say I have a RESTful, hypertext-driven service that models an ice cream store. To help manage my store better, I want to be able to display a daily report listing quantity and dollar value of each kind of ice cream sold. It seems like this reporting capability could be exposed as a resource called DailyReport. A DailyReport can be...
To describe restful we can say Every resource has its own URI. Using HTTP GET,POST,PUT,DELETE we can parse these resources. All the resources are representational. Who wants to use our resources, can just use it from browser. that's all the main idea of restful. This architecture or architectural style allow services on the internet. So ...
The agavi framework uses the PUT request for create and POST for updating information. Usually in REST this is used the other way around (often referring to POST adding information while PUT replacing the whole data record). If I understand it correctly, the important issue is that PUT must be idempotent, while POST does not have this r...
I'm beginning to design a web-based API and the very first issue—how will users interact with it—left me at a loss. This is an API that is only going to be used by other folks within our company and will be used by people who have some programming knowledge, so there's a good bit of leeway in all respects, and it needn't be simple enoug...
Hi I am integrating an app with a service (iContact), that describes its API as "rest-like". I post XML, and everything works fine... Until I send special characters like æøå - then I get a "bad request" error from the server. <contacts> <contact> <firstname>Søren</firstname> <lastname>ÆbleTårn</lastname> </contact> </conta...
I have some RESTful controllers and have added a custom method to application_controller. I have not changed anything in the routes to indicate this new method. The method is poll_memos. I have entered the following URL: /groups/1234/poll_memos I get the following error: Unknown action No action responded to 1234. Actions:...
I have a Restful web service. Reservation room can change. Which URI is better solution? a) http://localhost/hotel/Xhotel/Reservation/15 b) http://localhost/hotel/Xhotel/Room/4/Reservation/15 c) http://localhost/hotel/Xhotel/Reservation/15/Room/4 ...
Hi there, I am using RestWebservice for few basic operations , like creating/searching. The request xml looks something like this <customer> <name/> ..... </customer> For a successful operation I return the same customer XML with extra fields populated in it(eg. systemId etc which we blank in the request) . with Response.Stat...