Hi,
we are developing a website that also have smart phone (starting with iphone but possibly adding android and blackberry later) counterparts (a subset of functions like Yelp or Urbanspoon for example) and we are thinking about following REST paradigm using ASP.NET MVC. Our team is fairly new to this area of software development and w...
We have a custom action (:register) for our Location model. The supporting code is very similar to a standard :update. Since inherited_resources provided a "template" for us, we copied the update code from actions.rb, changing 'update_attributes' to 'register' and the flash message reflects the different action.
This doesn't feel very ...
For instance, on the following CURL snippet:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); //set target URL
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// allow redirects
curl_setopt($ch, CURLOPT_POST, $usePost); // set POST method
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //set headers
curl_seto...
I'm trying to use CouchDB with HTML/standalone REST architecture. That is, no other app server other than CouchDB and ajax style javascript calling CouchDB.
It looks like cross scripting is a problem. I was using Cloudkit/Tokyo Cabinet before and it seems like the needed callback function was screwing it up in the URL.
Now I'm trying ...
Is there an ASP.NET MVC controller or helper class that can automatically return the proper HTTP response based on the HTTP request header? I'd like it to be able to return JSON, XML, or a View based on the request's content type, with the only thing I have to do is populate some global Model object with data from the database.
...
I'd like to query a MySQL database via a RESTful service with the middleware being PHP. I'd like the output to be JSON. I'm a beginner in those areas. Are there any frameworks or scripts that can do this without requiring you to be an expert? I don't have a problem stringing a few scripts together if they can work.
Or, if it can be don...
There is one controversy I see in using Web APIs (RESTful service) to access remote infrastracture. I would be grateful, if you could comment it. The recommendation coming from the article "RESTful Web Services vs. "Big" Web Services: Making the Right Architectural Decision" [1] is to use Web APIs rather for ad hoc integration (a la' mas...
What Python frameworks/libraries you would use to create a data centric REST application. The application will have the following traits:
read-biased in terms of number of individual ad-hoc requests
write-biased in number of records added in batch feeds
scalable (think virtual appliance, cloud)
variety of data formats such as csv files...
I'm writing a RESTful Java server with CXF framework.
How do I can write a @Path Regular Expression in order to obtain any URI finished in "/action" value?
...
This may be a stupid question, but anyway... I have an MVC site and a legacy ASP.net web forms site. I have a controller action on my MVC site that I would like to (programatically) POST to from my web forms site.
I can find lots of information describing RESTful services etc., but I can't seem to find a resource that explains how to d...
Hi,
I've been looking for list of types of queries that geocoder supports beyond regular address geocoding. At this time I need to query google for airport locations. I have sumbled upon this document: http://www.ibm.com/developerworks/java/library/j-grails05208/index.html but it mentions no place where I can get up-to-date list of allow...
Minfying your stylesheets and script files improves your site's performance.
However, sometimes you might want to make the non-minified versions of the files available - perhaps to comply with the GPL or to implement the optional code-on-demand REST constraint.
Is there a standardised way of doing this? The only way I can think of is t...
I'm writing a paper about implementing a REST service for a university's research papers and I have a small problem understanding the relationship between URIs and Resources.
It says, that a resource may have one URI or many. So here is my problem. I want to make this service very easy to use and to get around the information: a resourc...
I'm not really sure how to express this, but one pattern I often see in RoR apps is something like this:
/Post/postid/Comment/commentid
or
/Project/projectid/Tasks/taskid
Essentially in the model since a Project has Tasks you can access the TaskController from within a project resource.
Now I have started using the SimplyRestfulRout...
I've built a RESTful service for the Data Access Layer (DAL) of my architecture:
POST http://example.com/data/User
GET|PUT|DELETE http://example.com/data/User/{UserId}
However, for the Business Logic Layer (BLL), a second non-RESTful service is used:
POST http://example.com/accountapi/register
POST http://example.com/accountapi/login...
I'm using Struts 2 and the REST plugin. Validation in Struts 2 is ClassName-actionAlias-validation.xml. However, using the REST plugin the action alias is always /. For example OrdersController -> /orders -> OrdersController-orders-validation.xml.
How can I get different validations depending on the REST method? Mainly, I want one type o...
My team has been asked to offer AMF output from our web service to decrease the time spent parsing XML or JSON for Flash modules on the front end.
As we have an existing application architecture that we must continue to support in terms of request structure etc, I am not interested in using one of the preexisting AMF RPC frameworks (eg:...
As a long-time Ruby and Rails user, it never struck me until today to really think about the get-and-redirect pattern in Rails. The typical example of this would be calling a create() action, and then redirecting the user to a show() action to display the newly-created item:
class JournalEntries
def index
@entries = JournalEntr...
Short version of the question:
Does "GET" at a particular URI need to match what was "PUT" to that URI?
I think not. Here's why:
Given that a resource is an abstract thing that is theoretically unknowable by the client, when we do a PUT, we must be only sending a representation. Based on combing over RFC2616, it doesn't seem entirely...
Does struts2 rest plugin support nested resources like rails?
...