After destroying a resource in my Rails application, the user can restore it clicking on a link.
Currently this restore action is routed to the destroy method of the corresponding resource controller.
When this method finds the resource in the database, it destroys it and moves the record in a trash table.
When it does not find the re...
I've recently programmed a REST web service API that allows another website to sign-up for my website remotely.
I've programmed all the necessary validation and filtering in to the API.
My question is, should I now ensure that my own registration form uses the web service API when handling user registration?
The form itself already ha...
I saw this code in a Rails controller:
respond_to do |format|
format.js {}
I've seen this for XML and HTML formats but not for Javascript.
Is this the way you specify a return format if you use for REST, like if you use replace_html or remote_form_for? I know RJS templates return compiled Javascript so I'm thinking maybe this is w...
Hey everyone,
I've just started playing with the REST starter kit, and I've hit a road block trying to build my own service. I'm trying to create a service for account management, and I can't get the service to serialize my objects, throwing the following error:
Unable to deserialize XML body with root name 'CreateAccount'
and root n...
I'm trying to send an XML file to a server as part of the POST method for an internal API.
All the PHP documentation points to using the $postVars['file']='@/path/to/file.xml' to actually send the file.
I want to send the file from a string, but it still needs to be sent as a file upload, not a string.
Help?
...
I'm barely examining the architecture of REST and SOAP as an SOA in my architecture. When comparing the two, I've heard one of the downsides to REST is that is doesn't support "Transactions" - what are they talking about? Because from I can tell, it does support CRUD operations just from the underlying HTTP protocols of GET, POST, DELE...
We're using the HttpClient class from "Rest toolkit" for WCF ( http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24644 ) to inteface a Rest-server we've created.
The server currently always close the connection, regardless of the "connection" header (it is in developement, so that is ok for now).
How can I tell the Ht...
I am new to RESTful Services.
I am trying to deploy a simplest REST service using jersey, and JAX-RS, but i am getting this error,
HTTP ERROR: 404
NOT_FOUND
RequestURI=/hosting/demo/example
Powered by Jetty://
Where i think i have done everything right, below is the code i am using for it.
POM.XML (only pasting the part related to je...
From what I understand, a good REST URL for getting a resource would look like this:
/resource/{id}
The problem I have is, that I often need to get a large number of resources at the same time and don't want to make a separate http call for each one of them.
Is there a neat URL design that would cater for that or is this just not suit...
Hello,
I've tested the following code:
function aa(...aArgs):void
{
trace("aa:", aArgs.length);
bb(aArgs);
}
function bb(...bArgs):void
{
trace("bb:", bArgs.length);
}
aa(); //calling aa without any arguments.
The output is:
aa: 0 //this is expected.
bb: 1 //this is not!
When I pass empty arguments (aArgs) to bb functi...
What is the best way to version REST URIs? Currently we have a version # in the URI itself, ie.
http://example.com/users/v4/1234/
for version 4 of this representation.
Does the version belong in the queryString? ie.
http://example.com/users/1234?version=4
Or is versioning best accomplished another way?
...
I'm starting to get into WCF and Silverlight development and I've decided on a RESTful architecture. I need resources now and am looking for some good books. Can someone recommend any?
Does anyone know if this book: "Learning WCF" by Bustamante (http://www.amazon.com/Learning-WCF-Hands-Michele-Bustamante/dp/0596101627) has any REST ...
How to automatically generate API documentation for Rails REST controller?
Is there any example I can look into using RDoc to do this?
...
I know sites like Facebook are now using REST services, but I am wondering of other applications that use REST and if there are specific situations when the use of REST is more warranted than other methodologies.
...
Hello,
I would like to build a simple REST web service (using Ruby on Rails). However, I would like to be able to call this service from a Windows mobile app. Is that possible? or do I have to use SOAP?
I don't have much experience with Windows Mobile apps so it would be nice if you can provide pseudo code or link to tutorial for the p...
I'm developing a new REST-full webservice for our application.
When doing a GET on certain entities, clients can request the contents of the entity.
If they want to add some parameters (for example sorting a list) they can add these parameters in the query string.
Alternatively I want people to be able to specify these parameters in th...
Is there anything out there that given a MySQL database can create RESTful webservice endpoints? I'm ok with it doing stupid basic things to start with, as long as the data model is tunable after.
For bonus points it could understand foreign keys to join data, and create searching endpoints for indexed columns.
...
Hello everyone,
I am new to RESTful web services in WCF, but not new to WCF. I want to develop some simple RESTful web services in WCF which manually be accessed from browser. Any good samples or documents to recommend? I am using C#.
thanks in advance,
George
...
Hi,
I'm looking to implement a VIN (Vehicle Identification Number) validation and decode for a site I'm working on specifically for Canada. We only want limited vehicle information Make, model and year.
I'd like to call it via a Rest webservice (but SOAP would be ok) and don't currently require bulk decode.
Can anyone recommend a ...
So for example here is a URL: https://rexms.net:32005/rexwapi/common/timeframes -- if I go to that URL in my browser enter the correct username/password it will spit out XML at me. The problem is I need to access this through PHP so I obviously don't get a prompt to enter username/password.
Current code is:
$timeframes_xml = simplexml...