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

best practice handling multiple selector

I'm creating a restful api for the first time. Let's start with an example: I have a product, that can be linked to multiple categories. On the client side I want just one form where I can fill in the product details, and I have a multiple selector…
Wim
  • 41
  • 3
0
votes
2 answers

Is RESTful server and use of socket.io contradictory?

I am developing a node/express RESTful server with normal routes and HTTP request and response. Now I am asked to extend the server to provide near real time data to clients using socket.io or some such thing. I feel like the real time update…
reza
  • 5,972
  • 15
  • 84
  • 126
0
votes
1 answer

Can't access Intellij auto created RestFul web service server

After creating RestFul Web service (let's say helloworld) using Intellij Idea, When I run the server, it runs correctly(it says Server is running). But when I try to access it using my web browser, it says "the web page you are requested is not…
prime
  • 14,464
  • 14
  • 99
  • 131
0
votes
1 answer

Spring 3: Content Negotiation

I have a REST endpoint which currently returns JSON output. I would like to modify the same endpoint to return plain text output, basically differentiate between generating application/json and text/plain Accept headers. Here's my current…
devang
  • 5,376
  • 7
  • 34
  • 49
0
votes
2 answers

REST different use cases for updating a resource

I want to know whats right in the RESTful prespective when i want to update a resource but there are multiple operations, each one with a different flow in the business layer for example, there is 3 cases to change the task status (all of them will…
Nadeem Khedr
  • 5,273
  • 3
  • 30
  • 37
0
votes
2 answers

What design pattern is this web application using, if any? MVC and/or SPA?

I'm trying to figure out what design pattern this web application would be described as using, if any: https://dl.dropboxusercontent.com/u/37346336/design-pattern.png It seems MVC-ish to me, with the Model being the top three sections, the View…
0
votes
1 answer

Laravel 4 - New and I'm stuck already

I'm new to Laravel 4 and I'm stuck already... I can't seem to get my head around routes. I keep getting this error, when I go to the following URL account/welcome/Scott/UK: Missing argument 2 for…
WebDevB
  • 492
  • 2
  • 7
  • 25
0
votes
1 answer

how to use one apache camel context object in each java Restful services

i need to perform the all operation like the creating the quartz-2 scheduler and deleting on only one Apache camel context using restful service. when i try using following code .each time its creating the new context object. i do not know how to…
ishwar
  • 444
  • 7
  • 20
0
votes
1 answer

Extra curly braket in JSON & Parsing

I'm using rest ful service and it adds extra auto-numbered curly brackets as shown: { "budgets": [ { "id": "1", "balance": "0", "addedBy": "Jhon", "NameBD": "Camping", "limitBD": "0", "DateBD":…
Disputed
  • 80
  • 8
0
votes
1 answer

How to pass superclass object to restful service (jersey)

I have two POJOs @XmlRootElement public class PojoBase { } @XmlRootElement public class PojoRequest extends PojoBase { private String strTemplate; public void setTemplate(String strTemplate) { this.strTemplate = strTemplate; } …
0
votes
1 answer

Serialize objects to complete JSON, not only URI

is it possible to enumerate all instances of a resource without voilating rest principles in a single call. Say I want to enumerate all the student information using one call. GET /students With REST principles this call is returning: "students":…
rawjean
  • 51
  • 4
0
votes
1 answer

Nesting resources in AngularJS

I'm creating the "Discussions" module of my website with AngularJS. I've actually two types of resources for client<->server communication : Discussion $resource (used to retrieve Discussion-related infos, like 'title', 'status', etc. Discussions…
Neozaru
  • 1,109
  • 1
  • 10
  • 25
0
votes
4 answers

Which URL pattern is more RESTful for the resource below?

I have a resource Customer: { "active": true, "addresses": [...], "company_name": "My Products", "customer_account": "MMM474", "customer_id": 6163, "emails": [...], "phones": [...], "website": "" } and a related resource Address. Which url for…
Elvin R.
  • 852
  • 1
  • 10
  • 20
0
votes
2 answers

Building restful urls

Let's say I have dogs and cats, they have color, weight and name. Each of the animal can be identified using only color, weight and name together and, of course, their colors, weights and names are not unique, meaning can have the same values.…
user266003
0
votes
1 answer

REST JSON API design

For a Order Management Application, i need to design RESTful APIs which works with JSON. I would prefer my APIs are like these, whereby request/response contains JSON: Order Search API API: /orders/search { custname:…
Jasper
  • 8,440
  • 31
  • 92
  • 133