In our application we need to have some non standard routes.
How can I make router to forward all delete requests to #destroy action even if their is no id parameter in URL?
Example:
DELETE /users/:user_id/follows/(.:format) {:action=>"destroy", :controller=>"followings"}
...
Hi there,
I am considering moving my Service Layer and my data layer (repository pattern) to a WCF Rest service.
So basically i would have my software installed locally (WPF client) which would call the Service Layer that exists via a Rest Service... The service layer would then call my data layer using a WCF Rest Service also OR maybe...
Hi there,
can anyone tell me if there is a tool for creating the strongly typed classes (available via the schema) - i suppose similar to Paste as XML type ..
But i was hoping for a tool that i could run to automatically update the classes automatically when there are changes
Does anyone know if something like this exists?
...
I'm designing an RESTful API where some calls are public over HTTP, and some require an API key and encryption over HTTPS. I'm deliberating on what response code should be sent if an HTTP request is sent to one of the private resources. So far the only one that jumps out at me is 412 - Precondition Failed, but the standard indicates th...
I would like to know what existing PHP libraries/classes have you used for your REST+JSON projects.
If I need to create a wrapper for social engines API such as Facebook and/or Twitter API, what existing PHP REST JSON architecture do you recommend?
JSON CONSUMING DEVICE (not PHP based) <--> PHP REST SERVICE <--> SOCIAL API
...
Hi
I am trying to upload files to Amazon S3 from Google App Engine (in Java) using the URLFetchService, but I am not getting very far. For a start I have never done any REST programming before, nor GAE.
I have looked through the documentation for S3, and have come up with the following code. Am I going along the right path?
final URLF...
My context:
.Net RESTful web service
Client (mixed platforms, technologies, lib capabilities) has obtained a SAML token
Trying to accept the token for authentication/authorization in the REST service
in HTTP Authorization / X-Authorization header
as query parameter
Will also support SWT later, but need to get SAML tokens going
Deta...
I have a REST api that's ambiguous, something like (this isn't the specific problem, just gives an idea of the ambiguity):
/toplevel/${customer_number}/some_command/more stuff
/toplevel/${customer_number}/${some_product_name_anything_goes}/more stuff
We've been getting away with it because our .htaccess file lists the more specific 'co...
A rails app I'm working on features examples of quadratic equations. Obviously, these are all of a common structure: ax^2 + bx + c = 0.
I don't want to store every single example of these. I'd rather generate them from a template. Storing hundreds of possible versions of this structure seems highly wasteful and un-DRY.
On the other h...
I am currently working on a REST service. This service has an entity which has different versions, similar to Wikipedia articles.
Now I'm wondering what I should return if for
GET /article/4711
Should I use a (temporary) redirect to the current version, e.g.
GET /article/4711/version/7
Or should I return the current version direct...
Hello Friends,
Anyone have idea how to pass value from iPhone application to the REST-Webservice using POST method.?
ex:
http://mysite.com/services/updatescore/uid=1234&score=12658
I want to send this information using POST request.
- How can I do it.?
Thanks.
...
Ok, if someone could shed some light on this for me, I would greatly appreciate it. So here we go. I had a rest service running fine the other day but after I accidentally overwrote the web.config all hell broke loose. I've spent the past day and a half trying to sort things out but I can't seem to figure out what is missing or misplaced...
How can i build a REST service with C#.net?
Is there any articles I can check?
Google results return C# REST client but I d like to build one.
...
I'm trying to send some XML to a rails app in Flex. I'm using the URLRequest and URLLoader objects. However, I'm having trouble determining how to send the XML and _method parameter to the rails app using these flash objects. Below is how I'm currently trying to achieve this.
var request:URLRequest = new URLRequest();
re...
I want to let users create "apps" (like Facebook apps) for my website, and I'm trying to figure out the best way to make it secure.
I have a REST api
i want to run the user apps in an iframe on my own site (not a safe markup language like FBML)
I was first looking at oAuth but this seems overkill for my solution. The "apps" don't ne...
I have a simple authentication scheme for a set of semi-public REST API's we are building:
/-----------------------\
| Client POST's ID/Pass |
| to an Auth Service |
\-----------------------/
[Client] ------------POST----------------------> [Service/Authentica...
Hi Guys,
I'm trying out Spring MVC 3.0 for the first time and like to make it RESTfull.
This is my controller:
@Controller
@RequestMapping(value = "/product")
@SessionAttributes("product")
public class ProductController {
@Autowired
private ProductService productService;
public void setProductValidator(ProductValidat...
Hi gang,
We are moving to SSO in our N-tiered SOA applications. If all the services were SOAP, I'd be ok with just the WS-Security, WS-Trust, WS-Federation set of protocols. My problem is that many of the services are RESTful (ironic) and those protocols do not address REST services.
What is your advice for SSO protecting the REST se...
Please specify and rate your experience if you know any. Thanks! =]
...
Hi,
I'm testing a very simple WCF-Service with REST functionality enabled.
It works fine on IIS, but the VS2010 debug webserver always says "The resource cannot be found" when appending the parameter after the .svc file in the browser uri.
Is this a known issue with the asp.net debug webserver that it cannot work with REST or am I doing ...