I'm working on a web based application which uses a JSON over HTTP based API to communicate between the server and the client. The goal being that multiple clients can be developed with different goals (online web client, offline desktop client, or third party created) using the same online data to be shared through this web service.
Ri...
I'm interested in exposing a direct REST interface to collections of JSON documents (think CouchDB or Persevere). The problem I'm running into is how to handle the GET operation on the collection root if the collection is large.
As an example pretend I'm exposing StackOverflow's Questions table where each row is exposed as a document (n...
I'm making a RESTful web service call in my JavaScript page and get the following warning:
"This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?"
Now I've read up on this and am aware of the cross-domain, same origin policy. However, I don't get such warnings when I c...
Hi,
I'm looking to build an app on the iPhone using PhoneGap. The app is an extension of another app which has a REST API.
The easiest way I can think of getting data from the remote app is using CURL. Is this possible? Or is there some other recommended method for this? The app I am pulling from is using a standard REST model and requ...
I think my question would be better explained with a couple of examples...
GET http://myservice/myresource/?name=xxx&country=xxxx&_page=3&_page_len=10&_order=name asc
that is, on the one hand I have conditions ( name=xxx&country=xxxx ) and on the other hand I have parameters affecting the query ( _page=3&_page_len=10&_o...
I am still in the process of getting comfortable with doing things the REST way.
In my situation, client software will be interacting with a RESTful service. Rarely, the client will upload its entire database of entities (each entity serializes into a roughly 5kb chunk of xml).
Perhaps I'm wrong, but the proper RESTful strategy seem...
For the caching purpose I can't have url like /users/2/index?month=2009-02 . The problem with this approach is that if I do page caching then same page is returned even for /users/2/index?month=2009-03 .
To solve the caching issue I would like to have url like /users/2/events/2009-02.html . I have defined users to be a restful resource....
Hey guys, here's my requirement:
I have one central App which receives requests from other apps, does something, and then returns data to that App. In its simplest form this data would be an XML document.
Now, at design time, this central App doesn't know which other applications will be making requests.
Each time the Central App rece...
Does anyone have advice or tips on using a web service as the model in an ASP.Net MVC application? I haven't seen anyone writing about doing this. I'd like to build an MVC app, but not tie it to using a specific database, nor limit the database to the single MVC app. I feel a web service (RESTful, most likely ADO.Net Data Services) is th...
I'm having a tough time trying to find clear and concise examples of how one would implement a service-based authentication scheme using tokens. As far as I can tell, the basic steps are as follows:
Client requests username/password from user
Client passes username/password to identity provider
Provider checks username/password and se...
Possible Duplicate:
What am I not understanding about REST?
What is REST? How does it relate to WCF? I have been asked to look into RESTful implementation of services. Can you please point me to links that would be helpful for beginners.
I am a .NET developer with a decent knowledge of ASP.NET
...
I'm looking for guidance on good practices when it comes to return errors from a REST API. I'm working on a new API so I can take it any direction right now. My content type is XML at the moment, but I plan to support JSON in future.
I am now adding some error cases, like for instance a client attempts to add a new resource but has exce...
The more I see and use REST, the more it seems to be a re-iteration of the ideas behind HTTP. There are many books that talk about REST - what about HTTP?
What's the best book on the ideas and technical details behind HTTP itself?
...
Background
I have created ASMX web services in the past and have been able to access the service from the web browser and Ajax GET requests using the address convention: MyService.asmx/MyMethod?Param=xxx
I just got started using WCF and created a new web service in my ASP.NET project. It creates a file with the .svc extension such as My...
Hello,
I've created a RESTful server app that sits and services requests at useful URLs such as www.site.com/get/someinfo. It's built in Spring.
However, these accesses are password protected. I'm now building a client app that will connect to this RESTful app and request data via a URL. How can I pass the credentials across? Currently...
I want to route request comming in by REST (WebHttp) to another service. The other service will listen via named pipes or REST. The router is a simple service which takes all requests as messages, routes them to the target and sends the answer from the target back to the client.
1) When I try to route REST to named pipes there is the en...
Hi,
I'm trying to get a simple REST service to work with Spring 3.0 but keep bumping into a blocking error:
No mapping found for HTTP request with URI [/travel/us/nyc/sfo/20091010/1122/true/] in DispatcherServlet with name 'dispatcher'*
However, in the log file it also states:
org.springframework.web.servlet.mvc.annotation.Def aultAn...
I am managing a RESTful JSON data API, which is growing in scope. Currently, we are returning all dates over the wire as strings "YYYY-MM-DD", but we also need to represent the concept of partial dates.
What I mean by a partial date is a date value that has unknown components, either a Year-Month, or just a Year. In our presentation lay...
I want my Rails 2.3.2 app to respond to and generate URLs like so:
/websites/asd.com
/websites/asd.com/dns_records/new
In my config/routes.rb, I have:
map.resources :websites, :has_many => :dns_records
map.resources :dns_records, :belongs_to => :website
I can then access resources such as:
/websites/1
/websites/1/dns_records
By ...
I'm been playing with calling my rails controller using an HTTP POST. I can get it to work with a curl command such as this, given a model named item and an attribute in that item called name:
curl -X POST -d "<item><name>myname</name></item>" -H "Content-Type: text/xml" http://localhost:3000/items.xml
What I'm curious about is how t...