Questions tagged [restful-architecture]

RESTful, or representational state transfer, is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

REST attempts to describe architectures that use HTTP or similar protocols by constraining the interface to a set of well-known, standard operations (like GET, POST, PUT, DELETE for HTTP). Here, the focus is on interacting with stateless resources, rather than messages or operations.

1187 questions
0
votes
1 answer

WinJS.xhr blob image doesn't show in php server?

Uploading an Image from win 8.1 tablet using winRT, winJS, javaScript & html 5. I generating a blob from an image in pictures and sending it to server via winJS.xhr on RESTful api I have a function that captures the post and saves it to location on…
0
votes
0 answers

No object available for injection

I'm having serious problems by trying to run this template project for setting up RESTful web services. I constantly get the exception org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at…
splinter123
  • 1,183
  • 1
  • 14
  • 34
0
votes
2 answers

406 Error when consuming restFul webService in Spring MVC project. The webService works when returning a String but fails for other data types

This is a snippet my spring servlet. My pom file has the jackson dependencies added as well but I just can't figure out why I'm getting this 406. ...
0
votes
0 answers

Jersey 2.2 not getting initialized

Im using Eclipse Kepler and Tomcat 7.0.x. I have created a Maven project with the following specification. http://maven.apache.org/maven-v4_0_0.xsd"> But when starting the project.I dont get the logger info that says "Initializing Jersey…
0
votes
3 answers

SVC Web service consuming from code behind but not from javascript

I want to call web service in project (but in same solution) from myClient project. I have added service reference in myClient project. When I call scf from code behind it, works but when I try to call it from JavaScript using JSON, I am unable to…
AK47
  • 3,707
  • 3
  • 17
  • 36
0
votes
3 answers

In REST how do you retrieve resources identified by 2 attributes?

In REST, if you want to retrieve a resource, you use something like: http://www.blabla.com/api/movies/1234 where 1234 is the unique identifier of the movie in the database. The question I have how do you retrieve entities from the database that are…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
0
votes
1 answer

$this->response($data, 200); to a specific view from the controller gives exceptions

I am new to CodeIgniter and specially RESTful services. I am using Phil Sturgeon's RESTful API Server. Now in examples there are no models and the response is shown on the initial view where all the links are. But what I want is that I want to log…
0
votes
1 answer

WebService Provider trust worthiness in absence of UDDI registry (RESTful webservices or old ones)

I am new to WebServices and RESTful web services. QUESTION: How can one quickly discover trust worthy web-service providers in absence of UDDI registry? I am asking from a network/systems/soa security-reliability perspective.
0
votes
1 answer

asp.net web api controllers accept POCO or generic data

I am new with ASP.NET Web API and have been researching this for some time now. Admittedly, I have decision paralysis. I want to make a REST-like API for a system with about 250 tables in the database. It's basically a 2 tier system with a UI and a…
0
votes
1 answer

XML formatted fileDataBodyPart not uploading via ApacheHttpClient to CherryPy

Please excuse my probably inaccurate vocabulary. I am using an ApacheHttpClient, through Jersey, to send a file over to our Berkeley DBXML server, handled by CherryPy. The transmission is sent via Chunked and not streaming encoding - because we…
tenwest
  • 2,058
  • 1
  • 13
  • 16
0
votes
1 answer

REST API design with async (polling) operations and errors that are found "later"

Given this resource representation: Request/id/Resource which is made to support async Resource creation (you submit a Request first, then use the id to poll for Resource until you get 200 OK), what would be a good status code to return when errors…
Denis Biondic
  • 7,943
  • 5
  • 48
  • 79
0
votes
2 answers

What is the correct way to process nested resources in a RESTful API?

Consider that I'm using the following RESTful API endpoints: /users/: show all users /users/$user_id/: show specific user /users/$user_id/posts/: show all posts by user /users/$user_id/posts/$post_id/: show specific post by user Constraint in this…
Braek
  • 581
  • 5
  • 22
0
votes
1 answer

The best way to transfer data from mobile

I want to develop client - server system (client is mobile). What the best way to transfer the data from server and to server? Using RESTful-architecture? HTTP requests? use JSON or XML? If there isn't best way what is the advantages and…
user3543119
  • 1
  • 1
  • 6
0
votes
0 answers

Restful service issue on free hosting server using PHP

I am using chrome extension for restful service testing. It is giving me status 200 OK but redirecting me to free hosting server error page. I don't know where i am doing mistake. Please help me out for this, below is there redirecting error and…
Kashif Ali
  • 147
  • 1
  • 2
  • 10
0
votes
0 answers

How do I update a web API resource by request while also reacting with backend?

How do you update (RESTful) resources in a web API from the client, when you also need the backend to take actions regarding these changes? Let's say I have a RESTful web API with the following resources: Worker - id, first_name, last_name,…
mllm
  • 17,068
  • 15
  • 53
  • 64