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
2 answers

RESTful service: PUT or DELETE

When implementing soft row deletion by setting its status to deleted which method is appropriate? Should it be DELETE for we are not passing that row to GET anymore or should it be PUT for we are updating the row's status to deleted?
banzsh
  • 540
  • 1
  • 4
  • 18
0
votes
1 answer

jersey 2.11 view all Resources

I am using the framework jersey 2.11 for practicing with REST webservice. This is my simple class that works correctly: @Path("/simple") public class Service{ @GET @Path("method1") @Produces(MediaType.TEXT_HTML) public String…
Diego
  • 2,395
  • 2
  • 21
  • 27
0
votes
1 answer

backbone restful api server return

I have been trying to look for more information about the restful api, I have found many places talk about what request (method and data) to make for retrieve, create, update object in server, but I couldn't find a place that explains what the…
0
votes
1 answer

RESTful form, get action design

Following the restful design, an url, where I handle a search query, should look like this: /car/search/Audi and the /car/search should display the search form. I think the form should use GET method, but If I set the method to get (method="get"),…
szab.kel
  • 2,356
  • 5
  • 40
  • 74
0
votes
1 answer

Inject @Context HttpRequest

I am working on RESTFul (JAX-RS) application and will be having a java class file in a jar file separated from war file which needs to access Headers from HttpServletRequest. If the java class is in war file, i know i can access HttpHeaders using…
user923499
  • 305
  • 1
  • 6
  • 18
0
votes
1 answer

Dynamically attach properties to an instance of ndb.Model and have them in the to_dict() representation

I'm writing a REST api over Google App Engine NDB I excluded existing libraries because I need control over transactions and caching. I excluded Google Endpoints for a similar reason and also because I don't want to use the javascript client they…
0
votes
1 answer

REST API - Best Practice for Multiple GetByX in Controller

So this should be a pretty easy one. In fact I've read lots of Q&A's on much more complicated Restful Design problems out there and I did not find the answer to this simple one... So if I have the following entity: public class Guest { public…
0
votes
1 answer

PHP - setrawcookie() returns false

I'm currently trying to connect with my project's RESTful API, using it's SignIn function, which returns an authorization token to use as a cookie. Most of our project is written in C#, but I'm trying to create a SignIn method in PHP and have been…
Zerkeras
  • 327
  • 1
  • 2
  • 13
0
votes
0 answers

RESTful Web API using Session

On my server side the User Session is stored, so this information is shared among web api calls. Since the RESTful model should be 'stateless', does this mean my web api is not RESTful anymore? EDIT: Would this mean it's not taking full advantage of…
Rafael
  • 1,099
  • 5
  • 23
  • 47
0
votes
1 answer

Restful context or entity?

What's the best approach to bring information about an object in a Rest API? All the entire object always: Request: GET /user/{idUser} Response: { id, name, birthday, street, city, state, country } Part that matters in an object, identified by…
Sergio Pantano
  • 111
  • 1
  • 10
0
votes
2 answers

Restful Webservices Caching Data

Want to know where exactly data will be cached in Restful Webservices? Please avoid saying browsers cache Restful webservices data.
kumar
  • 691
  • 1
  • 7
  • 16
0
votes
2 answers

Unable to connect to omniture rest API 1.4

We are trying to connect to omniture rest API 1.4 using Java for report.Get. We are unable to create connection. The user id and password are working fine on UI but while making HTTP connection we are getting 400 bad request. Same code works fine…
Tanveer
  • 890
  • 12
  • 22
0
votes
1 answer

JavaScript API call for IE8 compatibility

I can't find documentation on this anywhere since IE8 is so old. I'm simply trying to use JavaScript to make a Google API call. Something in python would look like this: page= urlopen("http://example.com") response = page.read() I found…
0
votes
1 answer

PHP RESTful API Difficulties

Greetings, I would really love to hear about your broad knowledge about application design on this one! I'm new to Phalcon, and now building my first MySQL & RESTful-API based application with it, but encountering some challenges along the…
FMA
  • 164
  • 1
  • 13
0
votes
2 answers

Ruby - RESTful API

I'm trying to build a RESTful API using ruby and its RESTful routes. I am completely new to ruby (this is my first project) and am finding it has a very steep learning curve. I have tried to generate a simple user model and am attempting to create…
ScottOBot
  • 839
  • 3
  • 16
  • 37