Thinking about REST, it's relatively easy to map HTTP methods to CRUD actions: POST for create, GET for read, etc. But what about "fire and forget" actions? What HTTP method would best represent a fire and forget action such as triggering a batch job (in which no response is sent back to the caller)?
POST would spring to mind, but I th...
Well, the title more or less says it all. I sort of understand what REST is - the use of existing HTTP procedures (POST, GET, etc.) to facilitate the creation/use of web services. I'm more confused on what defines what a web service is and how REST is actually used to make/expose a service.
For example, Twitter, from what I've read, i...
Hi all
I am making heavy use of async requests by Javascript to the webserver. Since I am building a multitenant application, I want to restrict access to the json services on the user level.
I read a lot about OAuth being recommended for consumer authentification. In my scenario, would the Javascript (client) side be regarded as the c...
I have a RESTful server and need to create the client in a Cocoa app.
I have a model called Resource. When I GET /resources, my server returns all resources in JSON.
I have a model called Client that owns many resources.
The Client has an instance method -(NSMutableArray*)resources
An NSArrayController manages the resources. The firs...
Can someone give an example of how to do Oauth authentication for the myspace REST API. I have the description here but would like to have some sample code:
http://developerwiki.myspace.com/index.php?title=OAuth_REST_API_Usage_-_Authentication_Process
...
I am writing a REST API where some resources are only available to specific users. What is the generally accepted mechanism for this? Amazon appears to use the Authorization header. Twitter uses Basic Auth, i believe.
what are the benefits and drawbacks?
...
Here's what I'm trying to do.
We have a SSO authentication service that other externally facing web pages and services use to authenticate users. A user tries to reach a service, if no cookie is found containing an authentication token, they are redirected to the SingleSignOn authentication service. The auth service does it's work, and ...
Hello there,
Is it possible to create a http response for requests associated with a different PHP session? If so, how to do that?
I'm creating a script language to make it easier for PHP developers to handle phone interactions. My application receives phone calls and then activates the user scripts associated with those calls.
Scrip...
Is there a way to redirect the user-agent in a Jersey Resource?
in Spring MVC there's the "redirect:"-Syntax but I didn't find anything comparable in jersey's Viewable class. The only method i found working was using HttpServletResponse.sendRedirect().
Thanks!
...
Hi,
I am trying to consume a RESTFul WCF service's Method through a POST request.
Following is Webservice's method signature
[DataContract(Namespace = "")]
public class CompositeType
{
bool boolValue = true;
string stringValue = "Hello ";
[DataMember]
public string StringValue
{
...
If a clients sends data in an unsupported media type to a HTTP server, the server answers with status "415 unsupported media type". But how to tell the client what media types are supported? Is there a standard or at least a recommended way to do so? Or would it just be written to the response body as text?
...
I have a self-hosted WCF REST application which is designed to accept and return JSON as a Stream with WebMessageBodyStyle.Bare. I am bypassing the DataContractSerializer using WebContentTypeMapper and WebContentFormat.Raw.
It works fine locally via WebHttpBinding, and also works fine when I use WebHttpRelayBinding and Content-Type: tex...
With WCF, we can create services that can accept leverage HTTP POST and simple accept an XElement as it's parameter. I'd like to do something similar with a workflow service so that I can use jQuery to post an xml infoset to a service, have it run through a bunch of rules and then return an xml infoset.
With a WCF service, I can simply ...
Hi guys, I'm writing a location base client and would love to integrate Panoramio with my client, now the problem is that I can't find a way to interact with the Panoramio using a ~REST-like service.
I know they do have an API but it's mostly for embedding the content into a website and not as to interact thru me code (at least from doc...
Hi
I am succesfully calling a REST API with the following code
$client = new Zend_Http_Client();
$client->setMethod(Zend_Http_Client::POST);
$client->setUri('http://www.example.com/api/type/');
$client->setParameterPost(array(
'useremail' => '******@*****.***',
'apikey' => 'secretkey',
'description' => 'TEST WEB API',
...
Hello,
I want to build a RESTful Web Service in Java, deployed using Jetty and developed usng Eclipse as IDE.
I was wondering if anyone could post or link me to a beginner tutorial (even a "hello world!" would be good, for starters).
Thanks in advance!
...
Hello,
in liftbook, there's an example of creating of a Req instance by using apply :
case Req(List("api", "expense", eid), "", GetRequest) =>
() => showExpense(eid)
but when I look into api documentation, there are two apply() methods, but I don't know which one and how is ran in this example.
Also, is there a way, how to include /a...
As I review more code and blog posts from lots of MVC sources, I still haven't wrapped my mind around what is "posted" when a request is made. I realize MVC doesn't support post, but I'm having trouble finding resources that can explain it well enough to understand.
Inside the controller's public ActionResult nameOfAction(what the heck...
Hi
Am trying to update my record via the PUT method
$client = new Zend_Http_Client();
$client->setMethod(Zend_Http_Client::PUT);
$client->setUri('http://example.com/api/type/');
$client->setParameterPost(array(
'useremail' => '*****@****.***',
'apikey' => 'secretkey',
'expenseid' => '4',
'description...
I am new to this but I will try my best to explain what I am trying to do.
I have a catalog of products and various private information that my users want to be able to access via their website.
For example:
User-a has an e-commerce site and they want to sell my merchandise. They will be able to access a certain products details via...