rest

Building a simple RESTful api

I'm wanting to make an API quickly, following REST principles - for a simple web application I've built. The first place the API will be used is to interface with an iPhone app. The API only needs handle a few basic calls, but all require authentication, nothing is public data. login/authenticate user get list of records in users group...

How to 'web enable' a legacy C++ application

I am working on a system that splits users by organization. Each user belongs to an organization. Each organization stores its data in its own database which resides on a database server machine. A db server may manage databases for 1 or more organizations. The existing (legacy) system assumes there is only one organization, however I ...

Consuming CloudCache REST API in .net

I'm interested in trying out CloudCache in my .net application. I've seen the documentation here: http://support.quetzall.com/cloudcache/rest-api Unfortunately, there is no .net library for it. How would I go about consuming this REST service using C#? ...

NoSQL and REST web-services

I understand that if you use SUN's Jersey REST implementation framework, you get the ability to use XML and JSON doc's interchangably. I've tried this in a simple REST service and it works just fine, marshalling XML or JSON to Java objects and back again without any problems. My Question is this..... Whats the simplest 'NoSQL' way to p...

Remove .xml extension from ActiveResource request

Hi, I am trying to use ActiveResource to consume xml data from a third party API. I can use the RESTClient app to successfully authenticate and make requests. I coded my app and when I make a request I get a 404 error. I added: ActiveResource::Base.logger = Logger.new(STDERR) to my development.rb file and figured out the problem. Th...

Spring MVC without HTTP requests

Hi, I need to create a system oriented around Methods where providers can register for the Methods they handle and consumers can do two things (for now) - either get Metadata for a method or execute it. I'm considering creating a REST style architecture where methods are resources with unique URIs and an interface consisting of two meth...

How to structure URI query for multiple values for same key?

I'm trying to structure a URI that accesses my data by id. Currently my URIs are query based like so: .../content?parentList=15&type=note How could I structure a similar URI so that I could query for notes in multiple lists? Essentially combining the results of the next two URIs. .../content?parentList=15&type=note .../content?pare...

How do I make REST calls for a particular Item Amazon.com?

Can somebody please show me resources that would let me make REST calls from my Android Phone to Amazon? I need to get Item details for that Item. I tried to look for documentation but I really couldn't find it. I am sorry if this has been answered before but I couldn't find the answer. Thank you. ...

Rails: Send put method from a index view

Hi everybody, I want do be able do update some values direct form the index view of my subscription Resource. To do so I try the following code: subscription_path(subscription, :method => :put) The problem is, that this goes directs to the show action as if the method would be :get! Thanks for your help! Maechi ...

REST and listviews refresh

Hi, In my app, I have different activities with listviews. The datas come from a server with a REST method, and it's only done once, when I start the application. The pattern that I'd like to set is to precharge all the listviews with the JSONs that I already have in local, and in parallel, launch a thread that get the new JSONs fi...

Proper way to convey error messages during calls to a REST service?

Hi Stack, I'm writing a REST based web service, and I'm trying to figure out the best way to handle error conditions. Currently the service is returning HTTP Errors, such as Bad Request, but how can I return extra information to give developers using the web service an idea what they're doing wrong? For example: creating a user with a...

Is it possible to implement an EJB in PHP, using REST?

Is it possible to create an EJB with implementation in PHP, accessible through REST (not RMI)? ...

What is the preferred way to specify an HTTP "Location" Response Header in Spring MVC 3?

What is the preferred way to specify an HTTP "Location" Response Header in Spring MVC 3? As far as I can tell, Spring will only provide a "Location" in response to a redirect ("redirect:xyz" or RedirectView), however there are scenarios where a Location should be sent along with the entity body (ex, as a result of a "201 Created"). I'm...

CXF REST content-disposition filename

With CXF Rest, how do you specify filename (content-disposition): @Produces("multipart/form-data") @Multipart(value = "root", type = "application/octet-stream") @GET @Path("/file") public File getFile(@QueryParam("") Query query); ...

Logging in to Yahoo Messenger using their newly released API

Hello, Im trying to login to yahoo messenger using the newly released messenger api.I referred to http://developer.yahoo.com/messenger/guide/ch05s03.html .I signed up for the API and have got a Consumer Key and a Consumer Secret.My yahoo id is [email protected](not the real one,just for the sake of example).To login i hit the following ur...

Spring RestTemplate Behavior when handling responses with a status of NO_CONTENT

Okay, I have a class NamedSystems, that has as its only field a Set of NamedSystem. I have a method to find NamedSystems by certain criteria. That's not really important. When it gets results, everything works fine. However, when it can't find anything, and thus returns a null (or empty -- I've tried both ways) set, I get problems. Let...

Why would I need WCF for building RESTful services?

I've recently discovered a way to implement RESTful services using Global.asax (by handling the Application_BeginRequest event). Basically, I am saying it is possible (and easy) to implement a RESTful web service in classic ASP.NET, without any need for WCF. It takes approximately 30 lines of code to figure out which method you want to ...

ASP.NET MVC as a RESTful Service and TransactionScope.

Hi, I'm considering using the MVC 2 Framework as the primary service for a project I'm working on, currently, we're using a WCF based service which works well because I can wrap a TransactionScope on the client and make several calls and be sure that the transaction is successfully transferred to the service. Is that possible using the...

Understanding REST conceptually with Rails

I'm a little late to the party, but I'm trying to wrap my brain around how REST is supposed to work, both in general and in Ruby on Rails. I've read a bunch of articles online about this already, but still don't feel like I'm getting the big picture. REST as I understand it, is a series of aspirational statements, with the net result at...

CakePHP REST Authorization problem on POST and PUT (I get 404)

I'm developing a REST api for a application, and everething went fine up until now... I'm building a header with login data, GET and DELETE work fine but when I try to send a PUT or POST request I get 404... When authorization is off (i.e., I do not check it in cake) everything works fine. Here's the controller code: class SitesContr...