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

Restfull service : status code return

I am writing restfull ws and confused about what status code I should return. Does it depends on business logic . 1) client call my ws and ws is successfully called. From business logic perspective it is a success case. So in this case I am sending…
VJS
  • 2,891
  • 7
  • 38
  • 70
0
votes
1 answer

What is the best way to implement a service operation that returns places sorted by distance to the current user?

let's say a service operation like this api/places/?category=entertainment&geo=123,456&area=30&orderBy=distance so the user is searching for places of entertainment near the geo location (123,456), no further than 30 kms boundary, and want the…
sowen
  • 1,090
  • 9
  • 28
0
votes
1 answer

Error handling in Rest

There are many ways to handle errors in RESTful api:s. Simplifying a solution is sometimes a need becase of system requirements and domain policys. Stack Overflow is doing a simplification with their own api using the http status code 400 for all…
Flatron
  • 687
  • 6
  • 18
0
votes
0 answers

RESTful NodeJs express server takes long to respond

I have a RESTful NodeJS express server. When I make an API call the api retrieves data from a mongodb server hosted on modulus. While running the server from localhost sometimes it stops responding. When i query the database using robomongo it…
Sanjit Roy
  • 177
  • 1
  • 2
  • 11
0
votes
1 answer

Different resource for the same URI REST

I have a problem to represent correctly and efficiently the resources in a rest api. I have in my database two tables products and categories, the categories are stored in hierarchy way: id_category and parent_id and the "leafs" categories "contain"…
0
votes
0 answers

Default / standard ReST web service path / method

I was wondering if there is a default path / method for ReST services? There is probably no defined standard method but is there something like a de facto standard? Usage scenarios for that would be for testing availability, connectability, correct…
Lonzak
  • 9,334
  • 5
  • 57
  • 88
0
votes
1 answer

RESTful API development guide for mobile application in Linux

I am new for RESTful API Protocol and want to create that protocol for generic mobile application under Linux System with help of http server. Does any one has idea or document to start RESTful API Protocol development for mobile application? Please…
Ritesh Prajapati
  • 953
  • 2
  • 13
  • 22
0
votes
1 answer

Architecture tips for multi-platform software / API

I'm creating a multi-platform app, mostly for web interface, mobile and a windows application. The app will manage user task lists and sync them to the server, but also store them locally for processing data faster. My idea of architecture until now…
sigmaxf
  • 7,998
  • 15
  • 65
  • 125
0
votes
1 answer

Is it okay for a RESTful service to return a serialized object for "Not found"?

For a successful RESTful HTTP request, we can return an object that is serialized. But in case of an error, for example when a resource is not found (404), should this return a HTTP response with error code 404, or can it alternatively return an…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
0
votes
1 answer

Clarification on REST

I am a newbie to REST However, I plan to develop a web application with REST and started with the following code, $app->get('/users', 'getUsers'); $app->get('/users/:id', 'getUser'); $app->get('/users/search/:query',…
AngularAngularAngular
  • 3,589
  • 5
  • 25
  • 41
0
votes
1 answer

send data through URI datastore

I'm using restful to send my data with HTTP GET POST etc. I want to use the data store on Google App Engine. Can someone explain where is URI located for the data store on Google App Engine so I can send data to it?
0
votes
1 answer

Validate UUID before insertion?

My application has the following structure - A user belongs to a deployment and he has a role(read, full etc) in that deployment. Each deployment then belongs to an organization. I'm writing an API that will allow users to be added to an existing…
Abijeet Patro
  • 2,842
  • 4
  • 37
  • 64
0
votes
3 answers

Statelessness of REST

I am creating a REST service that has two methods one is GetAll and other is GetById.In my scenario, database request is very costly so i want to store output of GetAll somewhere (Cache) and use it for subsequent request GetById. One of the…
F11
  • 3,703
  • 12
  • 49
  • 83
0
votes
1 answer

What is the python library used to write rest service in python?

Openstack has several services written in python . I want to know what is the python library used to write those services . Further , I also would like to know are there any tutorials to write such kind of services .
0
votes
0 answers

Why does WCF bear the complexity of client proxies when in restful environment it can be much simpler?

I have not configured an environment before. However, I have worked in an environment which is restful and basically calling the service was as bare-bone as calling the service URL using AJAX calls from the javascript. Now, I am in a WCF environment…
Lost
  • 12,007
  • 32
  • 121
  • 193