I am trying to implement a RESTful API in which I have to upload files that are relatively large for a mobile platform. The upload could take anywhere from 30 seconds to 5 minutes.
I would like my application to be completely usable while the upload takes place. I've been doing some research and I've come across a few methods from whic...
Suppose you are working on an API, and you want nice URLs. For example, you want to provide the ability to query articles based on author, perhaps with sorting.
Standard:
GET http://example.com/articles.php?author=5&sort=desc
I imagine a RESTful way of doing this might be:
GET http://example.com/aritcles/all/author/5/sort/desc
...
So I am getting this error for one of my routes. I'am running Rails v2.3.8 + Mongrel 1.1.5. Does rails support only GET & POST??
ActionController::MethodNotAllowed (Only get and post requests are allowed.):
The route defined in my routes.rb is -
map.connect "#{base_url}/r/:id/rate?v=:value&u=:user_id", :conditions => { :method => :pu...
This is on .Net 4, full framework.
I'm trying to make a simple winforms app that will make some simple WCF REST calls. It's using ChannelFactory and the service contract interface. Of the ~20 methods in the interface, 2 of them involve Stream (an upload and a download method) so the service side (and currently also the client side) us...
Hello,
I'm working on an app that makes several Http Request to a RESTFULL web server.
When I lauch the app, the request is performed and very often it timeouts. If I perform the request once again (a dedicated button is in the UI for this purpose) it's quite fast (no time out).
Do you have any hints on the location of this problem ? Co...
Hi All,
I am just looking for some opinions on what is the best RESTful way of updating multiple different Resource types or if I am looking at the problem in the wrong way.
We are looking for a solution change the attribute of a collection of different resource types.
For example, we have an account and deals, each of which have a ...
I'm looking for a server side component, preferably java, that will allow me to subscribe to pubsubhubbub feeds through javascript. I understand that subscribers are server side applications in the standard rest/pubsubhubbub format, but Google seems to have created a ajax bridge that looks quite handy.
Unfortunately, I'm dealing with da...
i am making a request to a 3rd party RESTful service using M$'s HttpClient. it works flawlessly (and is very easy to implement) except for this one instance. here is a breakdown from the provider as to what is occurring during the error: "The way the POST to the group resource works is that when it completes, it does a HTTP 302 redirect ...
On the Microformats spec for RESTful URLs:
GET /people/1
return the first record in HTML format
GET /people/1.html
return the first record in HTML format
and /people returns a list of people
So is /people.html the correct way to return a list of people in HTML format?
...
I've implemented two REST services: Twitter and Netflix. Both times, I struggled to find the use and logic involved in the decision to expose these services as REST instead of SOAP. I hope somebody can clue me in to what I'm missing and explain why REST was used as the service implementation for services such as these.
1) Implementing a...
We are looking to build a PHP web application to manage data that is available only through a 3rd party REST like interface.
We would like to use an existing PHP framework to do this, we're considering cakephp and codeigniter, but are open to other options.
We expect the biggest problem will be creating models that utilise the REST...
I'm building an application with a REST-based API and have come to the point where i'm specifying status codes for each requests.
What status code should i send for requests failing validation or where a request is trying to add a duplicate in my database?
I've looked through http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html but n...
I would like to create a mechanism for a User to keep track of other, favorite Users, similar to SO's favorite questions. I'm using the Rails 3.0 beta.
To do so, I have a User-Favorite HABTM relationship, which works as expected:
class User < ActiveRecord::Base
has_and_belongs_to_many :favorites, :class_name => "User", :join_table =...
I'm trying to create a RESTful web service in PHP.
According to Roy fielding, communication betweenn client and server must be stateless in nature.
So is storing login information, as in the currently logged-in user's username, in the PHP $_SESSION variable the wrong way to go, since it means storing session state? This is for the purp...
I'm using WCF 4 on IIS 7.5 and want to eliminate the default .svc extension from the URL of all my RESTful services. I've seen the approaches documented using the Url Rewrite Module and an IHttpModule but I don't want to take those approaches.
I am vaguely familiar with the concept of Routes introduced in ASP.NET MVC and as I understand...
Coming from a lot of frustrating times with WSDL/Soap, I very much like the REST paradigm, but am trying to solve two basic problems in our application, before moving over to REST. The first problem relates to the lack of an interface document. I think I finally see how to handle this situation: One can query his way down from a top-l...
I am using WCF REST Startkit to create a test REST web service. To test it, I create a simple Console application with HTTPClient (provided by the kit) and HttpResponseMessage to make a request to the REST service. Here are some codes:
HttpClient client = new HttpClient(argsParser.BaseAddress);
HttpResponseMessage resp = client.Get(args...
I have a Restful WCF service sitting on another server configured with the WebGet attribute to respond to the HTTP Get method. I know the service works correctly because I can call the service directly through the browser and manually do a Get with Fiddler and receive a correct response.
I have an Asp.NET project on my local machine th...
Hi,
I've got a RESTful WCF service using Basic authentication, a custom service host, and a . I've got a custom UserNamePasswordValidator set up, and a custom IPrincipal correctly flows through to the operation. For legacy interoperability, I need to support a different mode of authentication, however. The way it should work goes:
...
I am working on a WCF REST service, and in the service I have two methods with the same URITemplate. One of them is marked with a WebGet and the other with a WebInvoke using PUT as the method.
[WebGet(URITemplate="{name}")]
public Something GetSomethingNamed(string name)
[WebInvoke(Method="PUT", URITemplate="{name}")]
public Something...