rest

Haskell as REST server

I would like to try Haskell on a smallish project which should be well suited to it. I would like to use it as a backend to a small ajax application. Haskell backend should be able to do authentication (basic, form, whatever, ...), keep track of user session (not much data there except for username) and to dispatch request to handlers b...

What is the current standard for authenticating Http requests (REST, Xml over Http)?

The standard should solve the following Authentication challenges like- Replay attacks Man in the Middle Plaintext attacks Dictionary attacks Brute force attacks Spoofing by counterfeit servers I have already looked at Amazon Web Services and that is one possibility. More importantly there seems to be two most common approaches: Use ...

What is the difference between a restful route method for getting an index vs. creating a new object?

According to rake routes, there's the same path for getting an index of objects as there is for creating a new object: cars GET /cars(.:format) {:controller=>"plugs", :what=>"car", :action=>"index"} POST /cars(.:format) {:controller=>"plugs", :what=>"car", :action=>"create"} Obviously, the HTTP verb is what distinguish...

how can i invoke facebook http rest api whitout facebook api lib's (java or C++)

Hi i like to preform simple facebook api call via http rest but whiteout using facebook java/c++ pre made lib plain http call i already done the authorization part and i have the session id and all that . i just like to see what i need to preform api call over http thanks ...

REST for ASP.NET MVC included in MVC 2?

Are the REST for ASP.NET MVC bits automatically included with MVC 2, or do you need to download/install/use the REST for ASP.NET MVC bits separately? Specifically, I'm referring to the REST for ASP.NET MVC download here: http://aspnet.codeplex.com/releases/view/24471#DownloadId=79561 I want to use REST for ASP.NET MVC for the automatic...

Does WCF make the consumption of Restful web services trivial?

I have an ASP.net application that currently consumes SOAP web services. This platform is targeted at .net 2.0 and I use Visual Studio Professional 2005 to maintain it. I now have a requirement to consume a number of restful web service within the same application. Is the consumption of Restful web services with WCF so trivial, compared...

MVC pass query strings

I am new to Microsoft.MVC, so sorry if this is a silly question. I have created a very simple forum, and I am now trying to create some tag functionality to it. I have a controller where the index retrieves the last 10 forum threads. I would like to pass a query string, or something a-like with the Id to the supplied tag to the forum, ...

RFC2616 : Do I really need to set WWW_Authenticate when returning 401?

According to RFC2616 if I return 401 in response to a request to my (Ruby) server, I "MUST include a WWW-Authenticate header field." Is this really true? Not setting the header seems to have no negative impact. I'm using Merb as a web framework and it doesn't force me to set the header. Am I missing something or is this a rule more hono...

Can Atom be used for things besides syndication feeds?

Purely in terms of its conceptual model, is the purpose of Atom (and RSS) only to provide a time-sequential series of frequently-updated items, such as "most recent blog posts" or "last twenty SVN commits," or can Atom be legitimately used to represent static and/or non-time-sequential listings/indices? As an example, "index of files un...

Black Magic in Grails Data Binding!?

As described in http://n4.nabble.com/Grails-Data-Binding-for-One-To-Many-Relationships-with-REST-tp1754571p1754571.html i'm trying to automatically bind my REST data. I understand now that for one-to-many associations the map that is required for the data binding must have a list of ids of the many side such as: [propName: propValue, m...

How to upload image on elgg using rest url?

hi, I am trying to athenticate from the elgg local server. by refering http://www.danielansari.com/wordpress/2008/12/how-to-use-the-rest-api-in-elgg-11/ I am getting following error: Status: **** ERROR (-1) **** Message: Method call 'login' has not been implemented. Result: exception 'APIException' with message 'Method call 'login'...

Is the WCF REST Starter Kit dead in the water... now?

Looking at an older stackoverflow post (back in June 2009, http://stackoverflow.com/questions/1006309/is-the-wcf-rest-starter-kit-dead-in-the-water), a Microsoft employee said they were pretty close to releasing the next version of the Starter Kit. That was a looong time ago and... they haven't released one. So I'm asking again, Micros...

REST API Best practice: How to accept as input a list of parameter values

Hi All, We are launching a new REST API and I wanted some community input on best practices around how we should have input parameters formatted: Right now, our API is very JSON-centric (only returns JSON). The debate of whether we want/need to return XML is a separate issue. As our API output is JSON centric, we have been going down...

How do you diagram Resource-Oriented Architecture (ROA)? What tools, conventions seem to work best.

I am interested in determining if there are any effective Resource-Oriented Architecture tools or diagramming conventions that help when defining a ROA. ...

How do I get the session_key for a permanent "offline_access" permission?

Hi all, I writing a server-side backend for a mobile app that will allow posting media to facebook. I need to post images to the user's profile. I get the user to add the application + the user allows me to "offline_access" From Facebook documentation I see that I need to pass the "session_key" on every api request I am doing (using ...

rails restful select_tag with :on_change

So I'm finally starting to use rest in rails. I want to have a select_tag with product categories and when one of the categories is selected I want it to update the products on change. I did this before with <% form_for :category, :url => { :action => "show" } do |f| %> <%= select_tag :id, options_from_collection_for_select(Category....

What to use for space in REST URI?

What should I use: /findby/name/{first}_{last} /findby/name/{first}-{last} /findby/name/{first};{last} /findby/name/first/{first}/last/{last} etc. The URI represents a Person resource with 1 name, but I need to logically separate the first from the last to identify each. I kind of like the last example because I can do: /findby/n...

What does using RESTful URLs buy me?

I've been reading up on REST, and I'm trying to figure out what the advantages to using it are. Specifically, what is the advantage to REST-style URLs that make them worth implementing over a more typical GET request with a query string? Why is this URL: http://www.parts-depot.com/parts/getPart?id=00345 Considered inferior to thi...

Amazon S3 Change file download name

I have files stored on S3 with a GUID as the key name. I am using a pre signed URL to download as per S3 REST API I store the original file name in my own Database. When a user clicks to download a file from my web application I want to return their original file name, but currently all they get is a GUID. How can I achieve this? My ...

"/#action" Route in Routes.rb in Ruby on Rails

How can I create a route of this format (in Ruby on Rails routes.rb file): /#action/id Specifically with the "#" character inserted before the action controller...for example, see http://lala.com/#album/some-album-id thanks! ...