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

(php) REST : What URIs for the pages that enables to create new ressoruces ? (eg: subcription)

I am a beginner with the RESTful architecture and I have some questions about it. I have understood the main ideas : Verbs & Ressources. But I don't really know what URIs I should use for my Web-application project. -> What URI should I use to get…
0
votes
1 answer

What is the proper RESTful way to handle a variable response for an endpoint that is based on the type of user that accesses it?

I have resource endpoints that I would like to respond differently to the user that tries to access the endpoint. Scenario Let us say that I have a resource endpoint /users, and the following UserTypes: GirlUser BoyUser Admin When a GirlUser…
Manuel Zubieta
  • 582
  • 1
  • 6
  • 13
0
votes
1 answer

Need to send data in PDF,CSV and HTML format from REST API. Should I send files Or send JSON?

I am creating REST Api for a project using Spring MVC. On front end some reports are needed to be displayed in PDF, CSV and HTML format. Should I send JSON data to the front end for those reports and display the reports using some builtin plugins or…
Bilal Nasir
  • 65
  • 1
  • 7
0
votes
1 answer

Spring MVC RESTful multiple view - 404 Not Found

I have a web app which has JSPs as a view. But now I am trying to implement a RESTful in the same web app. I created a new controller, where will be my RESTful(I am not sure if it makes sense yet). I have found some examples by internet and I have…
Thiago C. S Ventura
  • 2,448
  • 1
  • 29
  • 43
0
votes
2 answers

Android - writing data to database using RESTful api

I'm a beginner Android programmer and I am working on a program that reads Contacts from native device phonebook and writes them to database ( ). I can get and read the contacts from my mobile phone, but I'm stuck at the "writing contacts to…
EdvardsMC
  • 1
  • 1
0
votes
1 answer

proper data exchange in RESTful way

On server side (RESTful server) what criteria should be the main to decide how to read input arguments, data? Accept or Content-Type If 'client' (JS) sends to my RESTful service POST request and data (what should be saved) encoded as usual form…
user1016265
  • 2,307
  • 3
  • 32
  • 49
0
votes
2 answers

RESTful services - how to design a URL with many parameters

I've developed REST services, but now I realized that I'm doing something wrong. For example, I have a service which retrieves information about a specific device. Each device has an address: sector.room.group.id. The URI I did for this GET method…
user2144555
  • 1,315
  • 11
  • 34
  • 55
0
votes
1 answer

Building A Backbone.js User Model, Collection and View For A RESTful JSON API

So I just finished making a fully RESTful JSON API for a User in node. When you visit http://localhost:8080/user/create you get what you would normally expect- a new User which is then stored in a database, in my case mongoDB. { "createdAt":…
Connor Black
  • 6,921
  • 12
  • 39
  • 70
0
votes
2 answers

Implementing RESTful service and consume xml at the service and map it to a bean class

Can anyone please explain hot to implement RESTful service and post data in an xml and cnsume the xml at the service and map it to a java bean class? It would be better if an example can be posted. I have tried it using a json object using this…
0
votes
1 answer

Rails and factory patterns

Imagine a Rails project that looks up animal celeberties based on their names. This Rails app is backed by an external service that does the actual lookup. The service returns back results based on a key. For example, if I make a request to this…
0
votes
1 answer

Building a RESTful API in ASP.NET

I have seen a ton of sites on tutorials and how-to's for building your own RESTFul API using ASP.NET. All of them seem to use MVC though. Is it possible to build my own RESTFul API using ASP.NET and WebForms, without using MVC? If anyone has links…
Icemanind
  • 47,519
  • 50
  • 171
  • 296
0
votes
2 answers

Which HTTP Method should I use for my REST Service method doing READ & WRITE?

As per RESTful services guidelines we should use GET for reading a resource, POST for creating a new resource, DELETE for deleting an existing resource etc. But assume I am developing a RESTFul webservice, say OrderProcessing. In placeOrder(Order)…
K. Siva Prasad Reddy
  • 11,786
  • 12
  • 68
  • 95
0
votes
1 answer

Api and consumer flow

I am developing an API for a social network website. This API will basically get all the requests from the users (get friend list, post a status update etc) and reply back if necessary. We will implement OAuth 2.0 protocol for authentication.…
0
votes
2 answers

REST Routing fails in ZF2 Rest Skeleton

I configured the Resftul module (https://github.com/scaraveos/ZF2-Restful-Module-Skeleton) with the following module.config.php . But as I want to access "public/rest/article.json" the routing fails. Does someone have a clue for me? Controller is…
LeMike
  • 3,195
  • 5
  • 25
  • 35
0
votes
1 answer

Create Bot to play a game defined through a RESTful interface

I'm wondering about how to get started in building a bot to play a board game that's defined through a RESTful interface that has methods such as... joining a game, retrieving game state, checking turns, retrieving player state, and making actions.…
Rohan Agarwal
  • 2,167
  • 1
  • 24
  • 34