rest

Best practice for rate limiting users of a REST API?

I am putting together a REST API and as I'm unsure how it will scale or what the demand for it will be, I'd like to be able to rate limit uses of it as well as to be able to temporarily refuse requests when the box is over capacity or if there is some kind of slashdotted scenario. I'd also like to be able to gracefully bring the service...

performance of REST architecture for java / csharp messaging

i currently have an application that sends XML over TCP sockets from windows client to windows server. we are rewriting the architecture and our servers are going to be in Java. one architecture we are looking at is a REST architecture over http. so csharp winform clients will send info using this. We are looking for high throughput ...

REST for low latency messaging . .

why dont you see more people using REST architecture for client server system. You see people using sockets, or TIBCO RV or EMS or MQ but i haven't seen much basic REST architecture does anyone know any reason why you would avoid using this architecture for client / server communication for high through put / low latency ...

Pitfalls of deviating from the {controller}/{action}/{id} REST URL format for ASP.NET MVC?

I will be launching a new site soon. One section of the site contains products. I am currently trying to decide between different URLS for the ASP.NET routing : **Products: ** /products/1001 /products/sku/1001 /products/product/1001 /products/view/1001 **Categories: ** /products/category/cats /products/category/clothing /pr...

Ruby: Posting XML to RESTFUL Web Service using Net::HTTP::Post

I am having trouble getting this to work so any help would be appreciated! Basically, the request.body contains valid XML for the Web Service like so: <somedata> <name>Test Name 1</name> <description>Some data for Unit testing</description> </somedata> ...but the service returns empty XML, like so (note that the id field is returned s...

iPhone REST client

Does anybody know is there any good library for iPhone SDK to call REST web service. I want to have something simple like Heroku rest client ...

PUT vs POST in REST

According to the HTTP/1.1 Spec: " The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line" i.e. Create. " The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the ...

REST on IIS

I'm wondering how many folks using the Microsoft development stack (IIS and/or ASP.NET) are actually using REST? If so, what forms of rest are being used? REST can be categorized a zillion ways, but for the purpose of this question I'll categorize it as follows: Radically REST: Using all the HTTP methods PUT/POST/GET/DELETE Moderate...

How can I manually create WCF OperationContract body type?

I'm trying to code a web service client in Silverlight for a RESTful WCF service that I have developed. In Silverlight I am constructing the body of the WebRequest using a DataContractSerializer instance. This approach works great if there is a single argument for the OperationContract. It doesn't work so well if there are multiple ar...

How to write a WCF REST service that image data can be POSTed to?

I've been looking for examples for how to write a WCF REST service that allows image data to be POSTed to. I may be missing something (I generally am), but does anyone know how to do it? Is it as simple as getting the HTTP request from inside your WCF REST service, and extracting the binary data? If so, is there an example as to how to d...

RESTful iPhone client and Model hierarchy

Hi all, I'm curious what strategy most of you are employing in order to build solid RESTful iPhone clients in respect to model hierarchies. What I mean by model hierarchies is that I have a REST server in which several resources have a correlation to each other. For instance, let's say for hypothetical purposes I have a REST server whic...

RESTful WCF service returns "endpoint not found" error on POST operations

I've built a WCF service that's exposed both through SOAP and RESTfully. All SOAP actions work as advertised. GETS/PUTS do as well, but when I try to do a POST to an action in my service, I get the following error returned: "Endpoint not found" IPersonEditServiceContract snippet: [OperationContract] [WebInvoke(Method="POST", Uri...

Is there a WCF Rest C# Client Generation Tool?

Before I venture down the path of creating one, I was wondering if anyone knows of a utility program which will take the REST Help page of a WCF Rest Service and create the relevant Client for C# consumption. Similar to what svcutil.exe does for WCF Services or what wsdl.exe did for web services but for WCF REST Services Kind Regards...

Django and Restful APIs

I have been struggling with choosing a methodology for creating a RESTful API with Django. None of the approaches I've tried seem to be the "silver" bullet. WAPI from http://fi.am is probably the closest to what I would like to accomplish, however I am not sure if it is acceptable in a true RESTful API to have parameters that are resourc...

Basic Authentication with WCF REST service to something other than windows accounts?

Is there a clean way to expose a WCF REST service that requires basic authentication, but where we handle the actual validation of the username/password ourselves? It seems that when you tell WCF in config that you want to use basic authentication, it forces you to turn on basic authentication in IIS and IIS can only do basic authentica...

RESTful WCF service image upload problem

1 namespace Uploader 2 { 3 using System; 4 using System.IO; 5 using System.ServiceModel; 6 using System.ServiceModel.Description; 7 using System.ServiceModel.Web; 8 using System.Drawing; 9 using System.Drawing.Imaging; 10 using System.Net; 11 using System.Xml; 12 13 [Servic...

Should I store _method=PUT/DELETE in the post or in the url

I'm using ASP.NET MVC to build a RESTful web application and I plan to tunnel PUT and DELETE requests through POST as it seems like the most pragmatic workaround. What I'd like to know is, should I tunnel the information through the url like this: <form method='post' action='resource?_method=DELETE'> <!-- fields --> </form> Or sh...

How to use IRouteHandler to invoke a WCF REST service

Has anybody managed to make an IRouteHandler to invoke a WCF REST Service. I can't find the appropriate IHttpHandler to return in the IRouteHandler implementation. I want to try routing as opposed to url-rewriting to see if I can get the required RESTful URIs in cassini as well as IIS6+. Thanks, Steve ...

How to Consume WCF Service with Android

Hi, I am creating a server in .NET and a client application for Android. I would like to implement an authentication method which sends username and password to server and a server sends back a session string. I'm not familiar with WCF so I would really appreciate your help. In java I've written the following method: private void Log...

Which Perl modules are good for writing a RESTful web API client?

Hi all: I am going to be writing an application that does a bit of computation on data it gets from a RESTful web service and outputs to a text file and/or HTML page. The web service is XML over HTTP. I have done a simple proof of concept with LWP::Simple and XML::Simple, but it's all a bit ad-hoc. Can anyone recommend some Perl modu...