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

What are restfull web service method types means?

I am not that new to web service but I am not able to understand use of http methods type in restful web service. I was referring to vogella tutorial here http://www.vogella.com/tutorials/REST/article.html#rest_httpmethods They have following…
commit
  • 4,777
  • 15
  • 43
  • 70
0
votes
0 answers

Matrix params for Spring RestTemplate

I can't find anywhere an information is RestTemplate support matrix params at all? Seams not. But maybe someone knows the answer for sure. I'm trying to write Rest Client using Spring RestTemplate.
barbara
  • 3,111
  • 6
  • 30
  • 58
0
votes
0 answers

I can't perform an update with a RESTful routing

I'm using the symfony component "HttpFoundation", and I'm trying to implement RESTful routing. But I can't perform an update, it's like the route does not exist while it did, here's my routes file : TaskHome: pattern: /tasks defaults: {…
teeyo
  • 3,665
  • 3
  • 22
  • 37
0
votes
2 answers

What is the best ERROR model for REST

Is there a standard error message model for REST services? I'm building a REST service, with Spring REST backend, and Backbone JS based frontend. On all projects, that I was there were some home made error messages mechanism, with home made client…
mavarazy
  • 7,562
  • 1
  • 34
  • 60
0
votes
1 answer

Is a Web API with customized verb/action RESTful?

I am designing a game server API that allows a player to spend some game currency to "explore" a region (randomly getting some resource from that region). As this API call deducts player's game currency, it's not idempotent and unsafe, so I can't…
0
votes
2 answers

What is the appropriate HTTP request to get a random resource and reduce player's money?

I have a API to allow players to "explore" a region, which randomly returns a resource. Such action would cost some game currency, so the player information is updated as a result. Because the client uses this API to "get" some resource, it's…
Zebra Propulsion Lab
  • 1,736
  • 1
  • 17
  • 28
0
votes
3 answers

Is better call a webservice or re-write code?

I have a web service that return an xml file. Now I want to create a new web service that uses a part of information that contains the output of first web service. My question is what is better solution: 1.call first web service and use result in…
Jimmysnn
  • 583
  • 4
  • 8
  • 30
0
votes
1 answer

How to add resource to relationship in RESTful API

When building a RESTful API over HTTP, what is considered to be correct when wanting to add resources to a nested relationship (e.g. a user with posts)? Post the new resource to: /users/$user_id/posts/ Or post the new resource to: /posts/ And…
Braek
  • 581
  • 5
  • 22
0
votes
0 answers

How to Generate HTML5 Markup from a RESTful Web Service?

I am somewhat new to javascript. Is there a common technique, best practice, javascript library/framework etc for converting JSON data from REST web services into HTML5 markup? I am building a web application that uses a HTML5/Javascript page to…
Fuzzy Analysis
  • 3,168
  • 2
  • 42
  • 66
0
votes
2 answers

What output structure for restful api?

What is the recommended and the best RESTful API result structure. Thats what i m doing right now: GET /api/v1/users { status: "success", result: [{...}, ...] }
Vinz243
  • 9,654
  • 10
  • 42
  • 86
0
votes
1 answer

Creating Data Objects (or Entities) for a Restful Webservice in java

I am trying to create a RESTful webservice in java, but , as I am new to this, I am not sure if there is a tool like wsimport (for SOAP based webservices) which can be used to create the Data objects or Entities (resources in REST world). I…
DntFrgtDSemiCln
  • 1,259
  • 2
  • 16
  • 35
0
votes
1 answer

Rails restful api with method that returns multiple resources

I'm doing an API in ruby on rails. I have 2 methods that returns resources in json. These 2 resources don't have any relation with each other. What I want to do is build a method to return these 2 resources in one request. What is the best way to do…
William Weckl
  • 2,435
  • 4
  • 26
  • 43
0
votes
1 answer

How to Create Simple RESTful Application in Zend Framework 2 using AbstractRestfulController?

I am new to Web service and i like to make a web service in Zend Framework 2 using AbstractRestfulController.. Can any one give me a simple example. May be with a single function. Thanks.
0
votes
1 answer

Design rest service for one to one

Scenario: We are creating/desiging a REST service to help us configure a system (and it's network, etc), but we run into some problems related to designing this API. We would like to configure the hostname of the system using a REST call/ Challenge:…
0
votes
2 answers

Does a SOA Services Box/ESB (API) can reside on the same server than my ERP system or it should reside on a separate infrastructure physically?

I want to build an API (services box/ESB) with the purpose of interacting with our internal systems. (ERPs, Product Information Management System, OMS, etc.) I have the opportunity to do it on the same architecture of one of ERPs. It's financially…