rest

What's the best RESTful method to return total number of items in an object?

I'm developing a REST API service for a large social networking website I'm involved in. So far, it's working great. I can issue GET, POST, PUT and DELETE requests to object URLs and affect my data. However, this data is paged (limited to 30 results at a time). However, what would be the best RESTful way to get the total number of say, ...

WCF REST throws HTTP 400 error maxstringcontentlength quota (8192) exceeded

Based on this post http://stackoverflow.com/questions/2257808/error-calling-a-wcf-rest-service-using-json-length-quota-8192-exceeded I experienced the same problem when calling my WCF REST Service (hosted on IIS 7) from a console application (using Microsoft.HttpClient library). I have increased the maxStringContentLength="2147483647" o...

which language to use for creating a RESTFul web service?

I will have to create API calls for my system to be exposed to the outside world. Which language would be the best fit? I will have to create proper authentication (OAuth) and I am looking to build in such a way that it is very reusable and extensible. If I had to choose between Python and Ruby, which one should I and why? (considerin...

cakePHP + extjs row editor and REST

I've implemented REST routing in cakePHP to properly route REST style requests to the proper methods in my controller. This is what I've added to my routes.php Router::mapResources(array('object_fields')); This properly routes the REST requests to my index/add/edit/delete methods inside my controller. In my EXTJS grid I am using the...

How can I get more detail on why this REST service request is not working?

My goal was to create a REST service that will allow me to POST and GET images. I've got the GET portion working, however I'm having difficulty posting an image to the service I created. Using the WCF REST Service Template 40 (CS) template I created the following method to handle my POST. [WebInvoke(Method = "POST", UriTemplate = "upl...

Accessing REST Web Services through JavaScript

Hello Everybody. First of all. I want to say that i've acctualy read the other posts (like this) but, i don't think it's a good answer. I mean, what about all the status codes, and HyperMedia, etc. What about caching? What do you think? ...

what are the SOA most common techniques?

I'm studiyng the SOA concept and found out the techniques (should i call it like that?) SOAP and REST (only these ones). I want to know if there are any other techniques (?) that coexist in this context and what do they represent. are they better in something? does many people use them? etc. thanks (: ...

Developing Restful Web Service with JAX-WS/Axis2

Hello, I'm new with Restful Web Services and got some questions about some of the requirements needed to create one. 1) I got only Apache2 installed on machine and I can't install any EE Server. Is it possible in this circumstances create Restful Web Service? What is better in my case Axis2 or JAX-WS? 2) I want to make the content of ...

jersey: composite resource

How can I have a resource that is a composite so that a GET to it returns a list of GET to all its subresources so that they can accept a GET also? Having two methods like @Path("students") and @Path("student") with @QueryParam doesn't fit what I'm looking for, which is that the composite resource is just a dumb container for heterogene...

Posting to Facebook feed from Android app

Hi all, I am trying to enable users who have linked their Facebook account to be able to post to their wall with one button press as detailed in their docs. Specifically, I do not want to use the .dialog methods provided in the Facebook for Android library, as I want the Publish process to be as seamless as possible. The specific call ...

What data/functionality would you want to have available through a web API that isn't available today?

Have you ever looked for a web API for certain data or functionality, only to find that there isn't an API available to meet your needs, or that the APIs that are available are inadequate for some reason? I am really interested in collecting such experiences. Please note that I am not asking about specific sites / web apps (so, for exam...

What's so RESTful about ASP.NET MVC?

REST has been such a popular buzzword for the last couple of years (or so) and when ASP.NET MVC was rolled out, everyone was relating REST with ASP.NET MVC. I also fell for the buzz and from the lack of my knowledge, my understanding of REST was simply just: REST = SEO/User friendly URLs But it's so much more. And the more I learn abou...

Issue with Cross Domain Ajax call using Jquery WCF REST Starter Kit Preview 2

I have created and hosted my WCF REST API Using WCF REST Starter Kit preview2. Which supports Dynamic Response and Request format type (XML and JSON).Everything is working fine if I consume the service in same domain through Jquery, Microsoft.Http. My cs code is as following: private void GetData() { string url = string.For...

Why would I use WCF instead of MVC when building a RESTful api?

Possible Duplicate: Which to choose: ASP.NET MVC or RESTful WCF? I'm trying to figure out when I would ever want to use WCF to build restful services instead of something much less complex like ASP.Net MVC? With MVC I can easily control the urls and the output. With WCF there's an increadible amount of know-how and complexity ...

Communicate with a REST service inside a REST service

Hi, i use the following code to communicate with a REST service: [ServiceContract()] interface ISomeService { [OperationContract()] [WebGet()] bool DoSomething(); } WebHttpBinding binding = new WebHttpBinding(); ChannelFactory<ISomeService> channelFactory = new ChannelFactory<ISomeService>(binding, "http://localhost:12000"...

Can I use an object in UriTemplate?

I tried the following code: [OperationContract] [WebInvoke(UriTemplate="/Users/Register/{user}")] void Register(User user); But when I Try to run this, it tells me the UriTemplate must only contain strings. What if I need to pass in an object to my method as in this case, a User object to my Register method. If I change the WebIn...

REST Zend Framework, How to routing module based versioning & Api Key

I am building a RESTful API services with ZF 1.10.8 as am newbie its a little bit confusing when dealing with ZF routing. I need to have versioning, api_key, and response format in url, something like: /:version/:response_format/:api_key/:controller ... /1.0/json/1234567890/articles/ The version is module based with the latest versio...

Flash Player 9 vs Flash Player 10 with FLEX 3, ?_method=PUT/DELETE not working???

I have a FLEX 3 frontend that worked fine in FlashPlayer 9. But now that I've upgraded to FlashPlayer10, the ?_method=PUT/DELETE hack is not working anymore. All those requests show up as a POST on the backend now. I did some reading and it sounds like I need to use as3httpclientlib AND run a socket policy server to give access to po...

Supporting Multiple Data Formats in WCF

Hello, I have two dumb/rookie questions. My problem is, I have NO idea where to begin learning this stuff. Traditionally, I am an ASP.NET developer. I am familiar with creating and consuming traditional web services (.asmx) in ASP.NET. Now, I want to create some REST based services that adhere to the HTTP verbs approach. I intend to u...

How do I determine the on-the-wire size of my batch before I submit it to Azure Table?

I understand that Azure Table will allow me to post up to 100 items at a time within the same partition. My question is how to I determine that the n-th object added to my batch will cause the maximum on-the-wire size to be exceeded? If this is about to occur, I'll simply save the current batch as-is, and append the new data. On a rel...