rest

Looking for way to have REST web service accessed through ESB

I am preparing on how to present using an ESB, such as Glassfish, to a company I am working with, but I realized that they may want to have some of their new webservices switch from SOAP to REST, and this is where I run into a problem, as my experience with ESBs (mainly BEA's ALSB) is that they seemed to be geared toward SOAP. I would p...

RESTful API Suggestions

I'm about to create an API for a existing .NET application and want to go the RESTful service route. Our backend platform is .NET and MSSQL. I'm hoping for a good blend or scalability combined with clean architecture. Are there any strong opinions on the best way to implement a RESTful .NET API (WCF, standard ASP.NET, MVC or even HTTP ...

Creating a facebook application

Hi I created a desktop application. I was wondering what I should put for my Canvas Callback URL. I tried to define it as local (http://localhost:8084) but it doesnt accept it. I need it to get the session using http://www.facebook.com/login.php?api_key=YOUR_API_KEY&v=1.0 Thanks! ...

Rails ActionController::MethodNotAllowed causes WSOD in production

I've got a RESTful resource (let's say posts) that excludes the index action. When I go to /posts, ActionController::MethodNotAllowed is raised because GET requests at that URL have been excluded. That much makes sense. The problem is that in the production environment, that URL just generates a white screen in the browser. I can see Ac...

RESTful httpclient for Ant

I need a RESTful httpclient for Ant. None of the contrib related tasks seem to work anymore.. Hasn't anyone bridged Commons-HTTPClient and Ant yet? ...

Correct routing for a Rest API with Zend

Hi, I'm trying to implement a REST API to my website. My problem is that the default Zend routing gets in the way. I've first tried using Zend_Rest_Route but I haven't been able to understand how I was supposed to use it correctly for "deep" routes, aka website/api/resource1/filter/resource2/id. Using the default Zend routing, I'd need...

Ruby on rails to_param with multiple fields for SEO

I am trying to make my urls prettier and still use restful resources. I understand that you can override the to_param method if you object has a name property like this: def to_param self.name end which will give you the route /:model/:name. This is all straightforward, but I have to be capable of having the same name with multiple ...

Hide REST endpoint from MEX/WSDL in WCF

I have a WCF service that has REST and SOAP endpoints for every service. This was implemented similarly to this post: http://stackoverflow.com/questions/186631/rest-soap-endpoints-for-a-wcf-service with a configuration similar to the following: <services> <service name="TestService"> <endpoint address="mex" binding="mexHttpBindin...

Is this how I design REST, and is REST what I want to be using?

In short, I am writing an Android application that I want to have pull data from a remote database. I was looking into .NET web services, but this http://stackoverflow.com/questions/297586/how-to-call-web-service-with-android question pointed me away from that direction. Is REST as simple as writing some short PHP to handle something li...

Understanding REST: is GET fundamentally incompatible with any "number of views" counter?

I'm trying to understand REST. Under REST a GET must not trigger something transactional on the server (this is a definition everybody agrees upon, it is fundamental to REST). So imagine you've got a website like stackoverflow.com (I say like so if I got the underlying details of SO wrong it doesn't change anything to my question), wher...

Problem accesing Azure Table entities

So I have this app which need to query entities from the Azure Tables storage from tables I don't know the schema of. 1) Is there a way I can do that with the Storageclient wraper? 2) I'm guessing no, so I tryied with the REST API and I always get the 403 Forbiden when I query for the entities. This is my code. HttpWebRequest request ...

What's the justification behind disallowing partial PUT?

Why does an HTTP PUT request have to contain a representation of a 'whole' state and can't just be a partial? I understand that this is the existing definition of PUT - this question is about the reason(s) why it would be defined that way. i.e: What is gained by preventing partial PUTs? Why was preventing idempotent partial updates c...

What are HTTP Response Entity Tags?

Specifically in JAX-RS (I'm not sure that is relevant) there are methods that allow you to add EntityTags to the response. What exactly are entity tags and what practical ways are they used? ...

Pagination in a RESTful service

I have a RESTful API which could return a large number of items and I want to be able use pagination style techniques to limit the number of items, is this a good idea in a RESTful API? If it is possible is best to do it via the link (url in this case) or part of the body of the request? Cheers AWC ...

Designing distributed applications using static typing and RESTful services

Hey guys, Over the last few months I've often come across the same Design obstacles when developing certain kinds of distributed applications. Firstly, let me set out my environment, and distributed applications: .NET enviroment All communication is done over HTTP Applications are often on different servers Usually is a combination o...

Can the MVC's parameter list be dynamic?

If: http://mySite/Users/9055 returns a db record where UserID=9055 (via the userController.getUserID method) And: http://mySite/Users/Smith returns the same record via the userController.getUserName method Isn't it reasonable to code a controller method that parses the either input? Seems like a great option to users - the u...

WCF REST POST XML

Here is a code snippet. Please tell me whats the difference between these two codes and also which content suitable for these code snippets. "application/xml" or "plain/text" [OperationContract] [WebInvoke(Method="POST", UriTemplate="DoSomething")] public XElement DoSomething(XElement body) { ... return new XElement("Result"); }...

RESTful interfaces in Django

Hey, I'm willing to build a restful service using Django, I'm coming form RoR background and facing some problems that could be defined using the following questions: What package do you recommend to use to have RESTful interfaces? Is there a way to make nested resources like a post HTTP request to /posts/post_id/comments that adds a ...

Bad Request to RESTful WCF Service Forces IIS to Recycle App Pool

I am attempting to create and host a simple RESTful WCF Service. The service works perfectly except for 1 situation. I attempt to perform a POST to insert a new object into my static List using the JSON request of: {"sampleItem":{"Id":1,"StartValue":2,"EndValue":3}} If I then change the request to be: {"sampleItemBlah":{"Id":1,"Start...

Exposing a subset of bean properties as XML response of REST service

I'm not sure how to best explain this, so this may be a bit long, please bear with me. Let's say I have a java bean with a bunch of properties: public interface Customer { public String getFirstName(); public String getLastName(); public Address getAddress(); // embedded bean with its own properties ... // lots more } ...