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 way of having a single resource based on authentication

I have an API that provides an Account resource based on the authentication (login) that is supplied. As a user can only have one account, and can only see it's own account and not those of others, this API will basically be a single resource API in…
gitaarik
  • 42,736
  • 12
  • 98
  • 105
0
votes
1 answer

Can asp.net mvc controller methods be considered restful?

If I perform all my operations (add item to cart, check out etc) by calls to controller methods that return JSON to my knockout.js presentation layer, can my application be considered restful?
Foo
  • 4,206
  • 10
  • 39
  • 54
0
votes
1 answer

How to integrate a C# server with C++ business logic

I am a C++ developer and want to develop a RESTful service. Since our business logic is in C++(boost) but want to like to develop server in C# due to easy deployment and enhancement.. My business logic is fetching data from Db and applying…
CrazyC
  • 1,840
  • 6
  • 39
  • 60
0
votes
1 answer

SSO using Apache Directory and Apache Camel

I implemented an Apache Camel based middleware application to manage authentication, authorization and also to dispatch the front end application calls to my several RESTful back end web services. I'm using Apache Directory as my Ldap server for…
0
votes
1 answer

Restful Class Thread

I am a java beginner, I met a problem in my Restful class, I just wonder when my code is working on the Restful Class, like the thread is still working on one url request, at the same time I send another request to invoke the same Restful Class,…
Dudu
  • 5
  • 1
0
votes
1 answer

Only Accept application/json

I am working on a backbone application that communicates with an express.js server. I'm think about securing the express.js server. Does it make sense to create a middleware that checks that any data sent to the server is in json form (so no…
Xerri
  • 4,916
  • 6
  • 45
  • 54
0
votes
1 answer

Where can / should data be prepaired for the output in a Zend Framework 2 RESTful application?

In a "common" application, the controller forwards the data in a ViewModel object to the view. There it can be prepaired for the output, e.g. `id` -> `/foo/bar/` . `$course->id` -> `link` `firstname` and…
0
votes
1 answer

Recommended strategy for emulating REST endpoints in command-line API?

Background I'm designing a command-line API to a HPC Cluster (it API might eventually be published over the web as well). The question I wonder what would be the be the recommended strategy for emulating REST "end-points" on the command-line. I can…
0
votes
1 answer

Restful Service and Generic Media Type Payload and stay HATEOAS

Forgive me as I am still new to this RESTFUL thing, I have been reading blogs etc... and they all have got different implementations/guidelines really, only real guideline is the Richardson Maturity Model that specifies what Hypermedia is. I know…
Joshscorp
  • 1,832
  • 4
  • 22
  • 42
0
votes
1 answer

Getting error while receiving Object in restful webservice

Code i used to convert my reg_be obj to is inputstream. ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(reg_be); oos.flush(); oos.close(); InputStream is…
sabarirajan
  • 177
  • 2
  • 3
  • 13
0
votes
1 answer

RESTFUL API retrieving elements collection

I am designing a RESTFUL API and I have a dude with one of my operations: The client app needs to make a request to the server to retrieve a JSON with available questions to the user (based on certain restrictions). The problem is that: Every user…
Antonio Acevedo
  • 1,480
  • 3
  • 21
  • 39
0
votes
1 answer

csv, xml, etc import in a restful way

We are in the proces of adding our data import functionality to our RESTful interface. We are trying to come up with a RESTful way to handle this proces. From a user perspective we have the following proces: (1) The user uploads a file (2) the user…
martijnve
  • 993
  • 2
  • 9
  • 23
0
votes
1 answer

restfull controller ignore update action

I can't update field in database table. Why, when I working in edit template(controller/id/edit), rails redirect me to CREATE action and create a new row in table? It must redirect me to update action and update only one field. Controller: def…
Johny Oggy
  • 61
  • 1
  • 2
  • 8
0
votes
0 answers

Handling connection from 3000 mobile clients

I have an iPad client application that are installed in around- 3000 - 4000 iPads. They are available in remote areas and are talking to a web service for submitting the data they collect. The data submission call from the iPads may happen together.…
0
votes
1 answer

Restful web service based on CXF

everyone! Something has confused me a lot. I make a Restful Web service based on CXF,but it does not work. My web.xml is as follows: contextConfigLocation
cjmandlulu
  • 163
  • 1
  • 2
  • 6