rest

Some good example of RESTful web api?

Can you suggest some good example of some real-world and really well-done REST web api? ...

What are the best/common RESTful url verbs and actions?

hi folks, I'm trying to find some info on the best and most common RESTful url actions. for example, what url do you use for displaying the details of an item, for editing the item, updating, etc. /question/show/<whatever> /question/edit/<whatever> /question/update/<whatever> (this is the post back url) /question/list (lists the ...

RESTful URLs, master pages, and PreviousPage woes

I'm am building my asp.net web application using MVC (Preview 5), and am also using the Master pages concept. My PageA and PageB are both content pages. I'm doing a form submit in a method via JavaScript from PageA to PageB. PageB has its PreviousPageType attribute set to PageA, but when I access the PreviousPage property in PageB, ...

Can you bin-deploy ADO.NET Data Services?

Anyone know of a hack to deploy ADO.NET Data Services without .NET 3.5 SP1 (just 3.5) on the server? Mosso is not ready to roll out SP1. I think this would also require bin-deploying the Entity Framework. ...

How to consume data from an ASP.NET MVC from a different website?

I am playing around with ASP.NET MVC for the first time, so I apologize in advance if this sounds academic. I have created a simple content management system using ASP.NET MVC. The url to retrieve a list of content, in this case, announcements, looks like: http://www.mydomain.com/announcements/list/10 This will return the top ten ...

Consuming a REST service from WCF

I'm not that familiar with WCF, but I thought I'll learn while trying to consume an existing service. One of the REST APIs I thought of was the Twitter API. I thought of developing a WPF client that will just output to the screen the last 5 tweets by a certain Twitter user. I was wondering if someone could please briefly outline the st...

Consuming REST API with Adobe Air

Can Someone show me a good example of one Adobe Air App (using Javascript) consuming a REST API? ...

What's the most portable way to make a Silverlight & Regular .NET REST client

Hi, I'm trying to get a Server application to expose some status information using WCF. In particular I'm after using WCF services with RESTful "API". I'm hitting somewhat of a wall when it comes to consuming the REST api from a silverlight app/page that I want to have as an additional type of client... So far I've been successful in de...

Versioning RESTful services?

I have a RESTful web service deployed at http://example.com/v1/SomeResource. One day, a new protocol version (that is not backwards compatible) is deployed to http://example.com/v2/SomeResource. From the client of view, this upgrade could occur at any time between two HTTP requests. How does the server indicate to the client that it no ...

Is there a good HttpClient library for J2ME/MIDP?

I want to call some RESTful web services from a J2ME client running on a MIDP enabled mobile device. I read the MIDP api for HTTPConnections and thought this is just crying out for a simple wrapper to hide all those unpleasant byte arrays and such like. Before I write my own I wondered whether there was a good open source library already...

REST: Correct HTTP Response Code For a POST Which Is Ignored

We have a REST API which clients routinely POST and PUT data to. When they do this, sometimes they POST data which results in no change on our system. The POSTs and PUTs are well-formed, but they data they're sending is identical to the data in our database. When this happens, I've just found out that we're returning a 400 HTTP statu...

What is the prefered method for a 'WSDL' for REST webservice?

I have build plenty of SOAP webservices, but am building a REST webservice for a specific project, and I was wondering what people used for a 'WSDL' for REST services or if it is even needed. ...

Restful commands

I am new to RESTful stuff. But, I want to use it in my rails app. When I add this to my routes.rb map.resources :notes I get routes to these methods created: index create new edit show update destroy What I am wondering is what is the difference between edit/update and create/new? Is there any standard definitions of how these met...

Is there a Restful Blog API

I can't seem to find a true restful Blog API - are there any? I'm writing some blog software and wondered if there was a standard restful API, if not I'll go buy the RESTful Web Services book and design my own. ...

How can I implement a RESTful webservice using C++?

Hi, I have to develop a computing intensive Web Service (say we are making really big Matrix computations) so I've think that the way to go is coding it in C++. I can't do a wrapper using SWIG or JNI in Java to benefit from the WS existing libraries because the computations are state dependant and involve big matrices. Passing those val...

Managing web service views/templates for several clients

I have a server-side web service that serves to multiple clients. Clients include web browsers, iPhone, BlackBerry, Android etc. My question is, I need to be able to generate dynamic content for views to these clients. Be it a full blown HTML template, an HTML snippet, JSON, XML, etc. Depending on the user-agent of the requesting client,...

Is an entity body allowed for an HTTP DELETE request?

When issuing an HTTP DELETE request, the request URI should completely identify the resource to delete. However, is it allowable to add extra meta-data as part of the entity body of the request? ...

Generating documentation for a RESTful Web Service from Python

I would like to generate documentation for a RESTful web service API that is written in Python. Ideally it would look like Yahoo's RESTful web service docs. Does anyone have any ideas or references? ...

REST tools support for development and testing

There is a similar question here but it only covers some of the issues below. We have a client who requires web services using REST. We have tons of experience using SOAP and over time have gathered together a really good set of tools for SOAP development and testing e.g. soapUI Eclipse plugins wsdl2java WSStudio By "tools" I mean...

Mapping exceptions to HTTP status codes in REST web services

Hi, When building REST web services in .NET, what is the most "RESTful" way of mapping System.ArgumentNullException and System.ArgumentException to HTTP status codes? My first guess would be to use HTTP 400/Bad Request with an appropriate description.What is the recommended best practice when mapping exceptions to HTTP status codes? ...