rest

RESTful application on Google App Engine Java?

I would like to create a RESTful app on Google App Engine. I would like to provide XML and JSON services. I have briefly experimented with Restlet, Resteasy, and Jersey. I haven't had much success with any of them, other than some simple examples in Restlet. Could you share your experiences creating a Restful web application on Google A...

The RESTful flow?

So... I've been reading about REST a little bit, and the idea behind it sounds nice, but the question is, can it be easily integrated into the standard flow of a webpage? For example, a user creates some sort of item, a blog post or what have you, and now he wants to delete it, so he clicks a 'delete' link on the page. Now what? How do...

Are other companies/products/websites providing access via Google Data APIs?

Google uses the XML/RSS/Atom-based Google Data APIs to provide programmatic access to its various services. Because it is Google doing this, these API are becoming quite popular, as in: there are many client applications supporting it. Google even provides a lot of client libraries themselves. It should be possible to use the APIs for ...

Using grails to connect to a flex web service...

I have a grails application that will be rendering an html page into a pdf file and I have a flex application sitting on a server that is going to accept REST parameters and construct a graph based on the parameters (which will be formatted in JSON). What I want to do is make a call to the flex app with my parameters and have the flex ap...

How to get the 'current observation data' from the NDFD (NOAA, NWS) REST service?

Hi All, I'm trying to use the NDFD (National Digital Forecast Database) to get current temperature and relative humidity given a Lat and Long using their REST based service. The issue at hand: I can't match the 'current observation data' WITH the 'results' I get back from the REST-service. The setup: Location: * Apple (1-infinite lo...

how to get the content of a value posted as the body in asp classic?

I've seen a couple of rest examples where the xml message gets posted in the body of the http request, and not in a named parameter... in classic asp I have the request.form object that allows me to get the posted values, but I have to specify the name of the parameter... is there some way to get the whole content of the post? I would...

Good examples of Groovy APIs for RESTful web services

I'm writing my first Groovy API for a RESTful web service. Could someone please provide some good open-source examples or best-practices to inspire my API design? I'm considering using Groovy's Expandos, XML Parsing, and straight-forward URL request mechanism, but I'd like to hear other ways to make an API Groovy. Ideas? Thanks a bunc...

What is best book for learning rest ?

What is best/good book to learn REST ? Same time looking good REST framework in java or groovy. ...

Using google API or building your own?

We are interested in using one or more of the Google APIs but we are afraid (or worried) about the future implication of this path. I will like to know other people's experiences of using the 3rd party API versus building their own service, if they found legal issues or if they found limitations other than the technical limitations. ...

Do WCF REST services support HTTP 301 redirects?

Is it possible to implement a HTTP 301 redirect for a WCF REST Service so that URLs of the form: http://server/customers/?name=John redirects to http://server/customers/324 (For the client-side case of this question, see Does the WCF REST WebChannelFactory client support REST services that use redirects?) ...

Does the WCF REST WebChannelFactory client support REST services that use redirects?

If you have a RESTful web service that uses HTTP 301 redirects to send requests like: http://server/customers/?name=John to the url http://server/customers/324 (as created by a service similar to the one in this question.) Can these types of services be consumed with the WebChannelFactory and a ServiceContract? If so, how? ...

using HTTP PUT, but not fully replace the entity

Hi guys, I'm developing a REST api, and I'm wondering the following: I want to use HTTP PUT to update some entities in the webservice. The format will be a urlencoded body. Is it acceptable to only update the fields that were actually specified, rather than the entire entity? I'm asking, because PUT would be a very convenient method t...

Running REST/WCF as STA instead of MTA for COM

Is it possible to configure a REST (WCF) service to run as STA instead of MTA? This is approach is needed in order to run legacy COM objects. In order to configure ASMX web services to run as STA instead of MTA, there is a workaround available that uses an HTTPHandler to force the web service to run as STA. An article by Jeff Prosise ...

Consuming a Restful WCF Service with Ruby ActiveResource

I'm trying to consume a RESTful WCF service in a Rails app using ActiveResource. My ActiveResource class is: class PartReferenceService < ActiveResource::Base self.site = "http://localhost:1234/" end The WCF URL is http://localhost:1234/PartReferenceService.svc/ and it returns XML like: <ArrayOfReferenceDataModel xmlns="http...

Perl REST flow layout

I'm using Apache and Perl (modperl), with Handlers to handle requests. I'm new to this, and I'm not quite sure how to lay things out in a sensible way. Right now I have the following: package MyClass::Handler; use warnings; use strict; # includes our %action = ( 'a' => \&a, # And more ); sub handler { my $a = shift; ...

Restful Rails controller for Flex front end

So I have an existing rails app that I've been asked to retrofit to support a flex client. Since I don't really want to muck around with the existing controllers and routes, I thought the best way to accomplish this would be to create a subdirectory in app/controllers called flex and put in some additional controllers in there to handle...

ZoneEdit api Rest example

Does anyone have an example of using the ZoneEdit API? I have looked at the docs and there is not a clear example there. Preferably I would like to interface with ZoneEdit via REST. Darren ...

Progress notifications from HTTP/REST service

I'm working on a web application that submits tasks to a master/worker system that farms out the tasks to any of a series of worker instances. The work queue master runs as a separate process (on a separate machine altogether) and tasks are submitted to the master via HTTP/REST requests. Once tasks are submitted to the work queue, clie...

Is it a good idea(tm) to use REST ideas to design 'some service' from the ground up?

If you wanted to start a 'website' that could be accessible from multiple 'endpoints'. Is it a good idea to design from a REST perspective from the begining? I'm thinking that the answer is 'yes' ... but are there other opinions? Should REST be your 'starting point' for the design of systems that are hopefully extensible and also acce...

How do I Invoke 3 REST endpoints in parallel ?

I have to invoke REST endpoints A, B & C in parallel and combine the resulting JSON from each into one JSON. All REST endpoints reside on different servers. My initial design calls for 3 Callables executed via FutureTasks. I will then do a Future.get(1000ms) on each FutureTask until they return a value. Is this how you would solve this ...