I have a Restful web service API, that is being used by different 3rd parties. Part of that API is restricted (you need username/password to access it). I was wondering what would be the best way of implementing authentication?
I'm using https, so communication is encrypted. I have two ideas:
Before user starts using (restricted) serv...
Hi, I'm building a self-hosting WCF service, which exposes 2 end-points for each service
SOAP
REST
the SOAP uses WS-* SOAP authentication (authentication header)
How can i go about implementing REST authentication?
I thought about some sort of login method which will return a cookie of some sort, but i cant think of how to make th...
Hi Every,
How can i consume the restful api(like the basecamp)from my .Net applications.
...
Hello!!
I am a newbie to Android and playing around with the UI and SQLLite for a while and it looks pretty good to me . We have a requirement that for the App that all the questions would be coming from the server through REST / Web service which would be displayed on the App..
say for e.g if there are 4 questions
1) Enter your Name ...
Hi Everyone,
While I implement apache wink for retriving a list I got the following error. Plz. help me
14882592 [http-8080-1] ERROR org.apache.wink.common.internal.providers.entity.xml.AbstractJAXBCollectionProvider - Failed to marshal java.util.ArrayList
javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBE...
Is there any 3th party service (no MS) similar to skydrive (CRUD files in the cloud) free to use and with an official API (REST could be perfect but even SOAP can be ok)?
I don't need 100Gb, just few megs are ok, but accessible via API (I'm planning to develop a smarphone application...)
thanks!
...
Is this possible? Is there a programme that will allow this to happen? I have a program that needs to access a lot of data from a central storage, but the likes of Amazon S3 only allows access via RESTful API which is no good for this program. Only UNC or drive letters are acceptable...
Help!
Bernard
...
I have a WCF REST service built with C# and it returns an image as part of a CPU intensive operation. The client is running on Android (Java) By default, it will return a text JSON object that looks something like this:
{"d",[9,0,77,12,11,...]}
Those are they bytes of the image. Fine. However, all the solutions for decoding this JSON...
I would like to create an API. I would like it to be a REST API. However, I don't know the first thing about creating an API. Especially one that involves authentication. I'm looking for a guide that can help me understand how and why I should build my API a certain way.
...
Hello All,
I have a concern in passing complex objects/any other types: because I always get a bad request...Code snippet below:
Service:
[OperationContract]
[WebInvoke(UriTemplate = "saveXML/", Method="POST", BodyStyle= WebMessageBodyStyle.Bare)]
bool saveXML(XElement xmlString)
{
return true;
}
=========
Client:
private H...
I am implementing a RESTful web service that accesses a database. Entities in the database are versioned to detect multiple updates. For instance if the current value is {"name":"Bill", "comment":"tinker", "version":3}, if one user does a PUT of {"name":"Bill", "comment":"tailor", "version":3}, the request will succeed (200 OK) and the...
Hi all,
As we' re designing our brand new social media platform, we' ve decided to construct our site on a Restful interface. Later on, this restful interface will be used as a public API by our visitors.
I heard several rest frameworks like Restsharp, Hammock etc.
Which one is best? Do you have any experiences with any of these? What...
I have successfully created a WCF service using the webHttpBinding with no authentication or security. I can call my function over and over and it returns the value as expected.
Now I created a custom IAuthorizationPolicy, UserNamePasswordValidator and IPrincipal. I went back to wsHttpBinding (default) and did a normal service refer...
What is the best REST API documentation that you've come across?
What did you really like about it? HOWTOs? Videos? Code snippets? Browser based API explorer?
For example, I quite like the Flikr API documentation - http://www.flickr.com/services/api/flickr.photos.search.html, especially the API explorer.
The SOAPI-Explorer is also...
I have looked at nearly every single WCF Rest PUT/POST issues on SO here and have still been unable to determine why I am unable to PUT or POST to my web service but am able to call a test GetTime method via GET.
This particular service exchanges custom credential information (username, password and some other information) for a token. ...
If I'm using a 3-tier app with a RESTful resource orientated service in the middle tier accessed via HTTP, what is the best way to provide orthogonal resources to the UI tier?
An example of this would be a 'User' resource which has a field/property for a Country, now in the UI tier when editing the User I want to be able to pick from a ...
I'm using Rails script/console to learn REST routes. It is very handful!
In order to do that I need to paste these two lines every time I run console:
include ActionController::UrlWriter
default_url_options[:host] = 'whatever'
If there is any way to make a script which will add this automatically every time I run console?
...
Hi,
is it possible to configure GET method to read variable number of URI parameters and interpret them either as variable argument (array) or collection? I know query parameters can be read as list/set but I can't go for them in my case.
E.g.:
@GET
@Produces("text/xml")
@Path("list/{taskId}")
public String getTaskCheckLists(@PathPara...
OK, I am trying to understand the best practices for the CREATE and UPDATE methods for both HTML and XML formats. The default code for a controller that the rails generator generates is a little unclear to me.
For the CREATE method, given a good save, the generator says to "redirect_to(@whatever)" for HTML and "render :xml => @whatever...
I find a common issue in my RESTful Rails apps controllers that respond to multiple formats (HTML, XML, etc). The issue is that, for any given method (INDEX, CREATE, NEW, EDIT, SHOW, UPDATE, or DESTROY) I want to restrict access to admin users for 1 format, but not others. Of course I already have a "before_filter :admin_required" for ...