I want to be able to change the default mapping of actions with RESTful url and type of request.
For example,
After adding map.resources :fruits in the routes, by default, sending a GET request to /fruits/:id calls show action in fruits controller. However, I would like to call a custom action, say display, in the fruits controller in...
What's the best way to consume secure REST web service in C#? Web Service username and password are supplied in URL...
...
So I currently have an application that calls a web service to retrieve data, where I do a basic HTTP GET on a url like so www.example.com/service.asmx?param1=1¶m2=2
This returns some xml which I parse.
My question is, does this classify it as a RESTful Web Service? I am thinking no, but I'd like to know what makes it a REST web-ser...
We have written a restful service using WCF and are now trying to write FitNesse tests to verify the behaviour of this service.
One test is that a 404 status code is returned if a resource can not be found.
The problem is that we can not find a mechanism for consuming the service that allows us to get the status code of the incomming r...
I have some web services that I am writing and I am trying to be as RESTful as possible. I am hosting these web services using a HTTPHandler running inside of IIS/ASP.NET/SharePoint.
Most of my services expect a HTTP GET. I have two of these that are simply returning some data (i.e., a query) and will be Idempotent, but the parameters...
Even if I offer alternatives to PUT and DELETE (c.f. "Low REST"), how can I provide user-friendly form validation for users who access my web service from the browser, while still exposing RESTful URIs? The form validation problem (described below) is my current quandry, but the broader question I want to ask is: if I go down the path of...
I am currently creating a set of custom media types for a RESTful api (e.g. application/vnd.mycompany.foo+xml) and I'm trying to identify the pros and cons of two different ways of exposing hypermedia links.
If I first consider what other media types do probably the best place to start is HTML. Html allows me to create links such as:
...
Hi,
I'm developing a wrapper around an existent RESTful API. I basically have to do some preprocessing, calling the underlying API, and some preprocessing, with a little bit of cache in the middle. The API is specially designed for RESTful access via http.
My question is, should I refactor the API so I can invoke it via code, or should...
Unfortunately, I'm doing some work on a (legacy) project that is build with ASP.NET Web Forms. I can't migrate it to ASP.NET MVC (so please don't suggest that as an answer).
I wish to create an API to expose some of our data. So, I went a head and made a web service. Pretty simple stuff. BUT, for the first few methods, I wish to expose ...
Hi i have some REST services created with WCF Rest Started Kit and i need to host these services in a WPF app. can someone point in the right direction?
...
Let's say I have a SessionsController, which controls user login and logout, but the only actions I really need are new (for displaying login form), create (for authentication and login) and destroy for logging out the user.
Is there any problem if I just have these three actions in my controller, or do I have to implement them all to m...
I have a project and i was trying to create a restful webservis. I searched a lot and almost finished all the net documentation. Always having a problem. Can someone say me a good webservis sample which has got server and client side in java?
...
Hi all, i want to upload SLD file to geoserver by REST. I use geoserver version 1.7.6 in Ubuntu.
I have upload file:
names:chool_point.sld using Poster.
url:http://localhost:8080/geoserver/rest/styles?name=school%5Fpoint
content-type:application/vnd.ogc.sld+xml
method:Post
this is my sld content:
xsi:schemaLocation="htt...
Hi,
How do I access the HTTP POST request body in a WCF REST service?
Here is the service definition:
[ServiceContract]
public interface ITestService
{
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "EntryPoint")]
MyData GetData();
}
Here is the implementation:
public MyData GetData()
{
return new MyD...
I'm writing a new one (for Netflix), and am simply wondering if there are any great reference libraries for me to study.
In particular I'm looking for clever ways to express a single REST endpoint in code, which needs a least a URL, method, and params, and in the case of Netflix, information about the authentication level required.
...
Hi, Could any one please suggest a better open source Java API for invoking REST services? Also wanted to know if Restlet API supports NTLM authentication.
Thanks
...
Hi all, I'm seeing the following error coming from WCF when trying to hit my REST WCF service on IIS 6.0:
Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [].
My web.config looks like:
<system.serviceModel>
<serviceHostingEnvironment>
<baseAddres...
I'm implementing a high traffic client web application that uses a lot of REST API's for its data access layer from the cloud database. I said client because it implements REST and not provides it.
REST APIs are implemented server side as well as client side and I need to figure out a good solution for caching. The application is runni...
Hi,
I'm developing a REST API and I have a question about resource representations.
Suppose I got the "person" resource under the /app/person/{id} URI. I need an XML representation, that basically is all the object fields as XML nodes under the root. Now requirements indicate that we must also support another kind of XML representatio...
Currently, I am working on building RESTful web service in Rails. I am looking for some ways to build a good documentation in my Rails RESTful web service. I found some ways to do it:
Wiki like Twitter API
RDoc
WADL (I'm not sure if anyone is currently using it?)
Could anyone gives any recommendations?
...