Which Http redirects status code to use ?
friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ? ...
friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ? ...
I have my resources already defined, but a client wants to change the names of the URLs to match their brand (e.g. something like "catalog" when the resource is currently "products"). Can I specify a different controller name with a resource so I can get all the built-in resources functionality without having to actually rename the cont...
We have a given REST interface: POST /calculation <data>abc</data> This calculation can be implemented by different logical "calculators" depending on the server config. We are now designing the Java interface that each calculator must implement. The interface will have a method for each REST service. Given that all REST (and H...
How can one get the full HTTP REST request body for a POST request using Jersey? In our case the data will be XML. Size would vary from 1K to 1MB. The docs seem to indicate you should use MessageBodyReader but I can't see any examples. ...
Im using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a spring app and using Tomcat as the servlet container. I'm running into issues making a connection to a https endpoint. I am receiving the following error: org.springframework.web.client.ResourceAccessException: I/O error:...
I am working on a experimental website (which is accessible through web browser) that will act as a front-end to a restful interface (a sub-system). The website will serve as an interface between a user and the restful interface, as it will make http requests to the restful interface for almost all database operations. Authentication wil...
I'm trying to build a C# service in .NET 3.5 that supports both SOAP - and shows the WSDL - and REST. The SOAP service and WSDL generation was easy enough to do using the ServiceHost and a BasicHttpBinding classes. Got that working and the client was happy. Because the SOAP calls all used simple parameters, the client developers reque...
I'm looking for an excuse to learn Django for a new project that has come up. Typically I like to build RESTful server-side interfaces where a URL maps to resources that spits out data in some platform independent context, such as XML or JSON. This is rather straightforward to do without the use of frameworks, but some of them such as R...
I use a web service to convert files. The service returns the converted file as an HTTP POST, along with identifier data. My app receives the response, updates its database and saves the file to the appropriate location. At least that's the idea, but how do I develop and test this on a local machine? Since it isn't publicly facing, I ca...
We're implementing a REST client on JRE 1.4. Seems two good options for a client REST framework are HttpClient and HttpUrlConnection. Is there a reason to use HttpClient over the JRE's HttpUrlConnection? ...
Reading the doc of sqlalchemy, i saw the serialization part. I'm wondering about a possibility to use an xml serializer for matching sa models with Rest webservices like Jax-RS There is a django extension which deal with that : django_roa Do you know if that kind of thing has already been developped for sqlalchemy or if is it possible to...
I'd like to have my resources localized to several languages. How multiple languages should be posted to resource using REST architecture? resource: /chapters, /chapters/:id When POST is issued to chapters, client send data structure: {localizations: { en: {title: 'New chapter' },sk: {title: 'Nova kapitola'} }} and new chapter with...
Hi Folks, I've just finished an online service for shortening URLs (in php5 with Zend Framework); you can enter an URL and you get an short URL (like tinyurl and such sites). I'm thinking about the API for developers - at the moment you can send URLs with SOAP to the service, but I am not sure if this is a good solution. What is the be...
This is continuation of my question on how to design a REST API for a media analysis server. As per Derrel's answer, in my current design I start the analysis of a media file using a POST /facerecognition/analysisrequests?profileId=33 which specifies that profile ID 33 (previously created on the server by another POST) should be used. I...
Hi, I have a rails-based restful server-side api. I want to know what services are called the most, their response time, etc. So this is sort of web analytics, but it's for server-side operation. Is there any free service out there that can help out( google analytics is a good analogy)? ...
Anyone know of a library/framework like httplib2 (python) http://code.google.com/p/httplib2/ for .NET? It wouldn't be difficult to duplicate it, but would be a waste if it already existed some where. Thanks. ...
Hypothetically, if the user clicks "save,save,save,save" a bunch of times on a text file, making single character changes at a time and managing to resave 5 times before the first save is processed, what is best practice in that situation? Assuming we don't have a "batch process" option... Or maybe they push save,save,save,save on 4 fi...
I have a client-side interface that allows the user to perform multiple edits against a tree-like outline. I consider the aggregate of the records making up that outline, in totality, a single resource (/outlines/39) even though its parts could be accessed as separate resources via different URLs. The problem is the user can edit exist...
im currently setting up asp.net to accept DELETE http verb in the application. However, when i send "DELETE /posts/delete/1" i always get a 405 Method not allow error. I tried to take a look at the header: Response Headers Cache-Control private Pragma No-Cache Allow GET, HEAD, OPTIONS, TRACE Content-Type text/html; charset=...
I read tons of posts, questions and answers on the REST vs SOAP debate. I read a few REST supporters that claim that "well designed" REST Web Services are self explanatory and hardly need any documentation. Can anyone point me to such a Web Service? Preferably a somewhat complicated one. ...