rest

Generating objects in PHP using REST

I am trying to make a decision whether I should use a REST service or a SOAP service for some web facing functions that I am producing. This decision is based on whether I can easily use the REST service in implementation. I would prefer to use REST, though I don't want to spend days coding the object model in PHP. The services are bein...

How to Use ActiveResource with Shallow Nested Routes?

I have a Rails application that has a Company resource with a nested resource Employee. I'm using shallow routing, so to manipulate Employee, my routes are: GET /employees/1 PUT /employees/1 DELETE /employees/1 POST /companies/1/employees How can I create, read, update, and destroy Employees using ActiveResource? To creat...

What are the benefits of enforcing restful routes in an MVC application?

I've been toying with the SimplyRestfulRouting assembly that comes with the MvcContrib extras, and for the most part I really like that it quickly sets up my routes and leaves me with a good convention to follow in my controllers. However, I'm still trying to wrap my head around REST as it applies to rich internet applications and occas...

WCF REST tutorials for POX

can anyone tell me where to find good WCF REST tutorials? using (POX) this one is ok http://msdn.microsoft.com/en-us/library/aa395208.aspx but i want to use something a little simpler i cant seem to find anything decent that uses webget/webinvoke attributes etc... i dont want to use the REST Starter kit ...

PHP REST Clients

I'm trying to connect to a RESTful web service, but I'm having some troubles, especially when sending data over PUT and DELETE. With cURL, PUT requires a file to send, and DELETE is just weird. I'm perfectly capable of writing a client using PHP's socket support and writing the HTTP headers myself, but I wanted to know whether you guys h...

Standard methods for documenting a RESTful API

I'm writing a specification for a RESTful API for a new internal web service. It's not hugely long and fairly simple, but even so, it's my first time using strict REST (as opposed to cheating for practical reasons - avoiding PUT and DELETE because they're a pain in PHP, and so on). I was wondering if there were any standard methods or be...

Sending arrays to REST services in CakePHP

Hello, I'm currently writing a REST service using CakePHP and I was wondering how can I send an array of item_ids through REST to an action. class ItemsController extends AppController { var $components = array('RequestHandler'); var $helpers = array('Text', 'Xml'); function index() { } function create($itemsArr) { //handle...

in Ruby on Rails, does map.resources :stories immediately make Story RESTful?

I was reading Simply Rails by Patrick Lenz... maybe I missed something, it seems that whenever we put map.resources :stories in routes.rb then immediately, the controller will have special convention and now Story is a RESTful resource? Maybe the author used the word resource but didn't mention that it is RESTful but they are the sa...

in Ruby on Rails, why does "form_for @story" has to have Story as RESTful

It seems that when we use form_for @story do |f| then Story has to be a RESTful resource and it has to be map.resources :stories in the routes.rb. Can Story be not RESTful? Can it be a form for non-RESTful data? ...

Sending binary data with the Restlet client

I'm trying to send a byte[] (using PUT) with Restlet but I can't find any info on how to do it. My code looks like this: Request request = new Request(Method.PUT, url); request.setEntity( WHAT DO I PUT HERE?, MediaType.APPLICATION_OCTET_STREAM); I had expected to find something along the lines of ByteArrayRepresentation, just like the...

Building wiki on top of a restful application

Does anybody know a wiki engine that can be built on top of a RESTful application? I have a restful application, that exposes a document resource, I want the wiki engine to use the REST API to persist the documents, instead of saving them to a DB. I am also open for suggestions of an open-source wiki engines that can be easily modified t...

Domain Registration service with REST API

Does anybody know of a domain registrar with good REST API? ...

ATOM for messaging service for "enterprise"

I went to Jim Webber presentation and in the middle of his apresentation he stated that ATOM is a good replace for JMS in many cases. Since JMS is a messaging service, I'm curious about that. Are you guys using ATOM as a messaging service? Is it reliable and scalable? The greatest advantage of JMS is that it uses the push method (the se...

WCF REST POST XML - The remote server returned an error: (400) Bad Request.

I have exposed my REST API service using WCF Service Library and started by console application. when I try to consume the service from client ( another console application), I am getting "Bad Request" exception. please see the code below :- [ServiceContract(Namespace = "http://www.test.com/Enrollment")] public interface IEnrollService...

DRY jQuery for RESTful PUT/DELETE links

I'm putting together PUT/DELETE links, a la Rails, which when clicked create a POST form with an hidden input labelled _method that sends the intended request type. I want to make it DRYer, but my jQuery knowledge isn't up to it. HTML: <a href="/articles/1" class="delete">Destroy Article 1</a> <a href="/articles/1/publish" class="put">...

Why is this XMLHttpRequest sample from Mozilla is not working in Firefox 3?

I'm trying to get the sample code from Mozilla that consumes a REST web service to work under Firefox 3.0.10. The following code does NOT work in Firefox but does in IE 8! Why is this not working? Does IE 8 have support for XMLHttpRequest? Most examples I've seen use the ActiveX allocation. What should I be doing? XMLHttpRequest...

when i follow the standard practices of web programming, is my app automatically RESTful?

when i use GET to retrieve and show information only, and Create, Update, Delete using POST, will my web app be automatically RESTful? ...

javascript REST client

is there a javascript library with REST or RESL-like (GET, POST, PUT and DELETE over http or https) capabilities? ...

Using WCF REST Starter Kit with ASP.NET MVC

I recently converted an ASP.NET Website to an ASP.NET MVC Application and no longer appear to have access to the WCF REST Starter Kit templates when attempting to Add > New Item... Is it possible to use the two together or is the starter kit only available within a website? ...

JAX-RS is perfect for implementing REST. What do you use to call REST services in Java?

Ideally, I am looking for something like JAX-RS (using annotations to describe the services I want to call), but allowing to call REST services implemented using other technologies (not JAX-RS). Any suggestion? ...