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

How to implement RESTful services over SSL?

When I am Running my RESTful client in Eclipse, getting the following error: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown…
0
votes
2 answers

Authorization(not authentication) in SOA and RESTful Architecture

I am working on a small web app. It automates one accounting process. I drafted a business requirements and a SOA structure, but due to my limitation, I can't go further, especially the authorization part. One thing confuses me is should I use…
Nicolas S.Xu
  • 13,794
  • 31
  • 84
  • 129
0
votes
1 answer

Java: Get response from POST

I'm developing an application. I'm using spring and RESTful webservices. I send JSON to the webservice and I receive one. I tested the webservice with the firefox RESTClient plugin. But now I am developing the client (part that sends the json to the…
Charel
  • 1
0
votes
0 answers

How to create/generate WCF RESTful webservice client in Netbeans

I have a RESTful webservice in WCF. How can I create/generate a RESTful webservice client for it in Netbeans? Ultimately, I would like to use it in a JSF web application.
Marshall
  • 1,195
  • 6
  • 30
  • 47
0
votes
2 answers

How to get schema information from a RESTful uri?

Is there a way to get schema information from a RESTful web service? For example, a soap service has WSDL that we can look at and create any proxy classes. I was wondering if there is a way to get that information from a restful web service.
Skadoosh
  • 2,575
  • 8
  • 40
  • 53
0
votes
2 answers

easiest way to develop a demo restful web service

I'm preparing a workshop on single web page development (you know, javascript, jquery, backbone) for beginner, and I though it would be nice to develop a basic restful web service, but I'd like something quick and basic to get started Ideally, I'm…
opensas
  • 60,462
  • 79
  • 252
  • 386
0
votes
1 answer

Show REST documentation if Content-Type differs application/json

Is it a good idea to show documentation of a particular REST resource if clients Content-Type is other than application/json? I mean, if a developer tries to fetch a REST resource URL in browser he gets something like this.
speechkey
  • 625
  • 2
  • 10
  • 16
0
votes
2 answers

Designing a basic Restful API in PHP

This is a Homework task. It involves creating a simple DB and making CURL calls to the server to get results from the DB, accordingly I have a DBClass file with the required methods. I understand what REST architecture is in general, but I am kind…
Parijat Kalia
  • 4,929
  • 10
  • 50
  • 77
0
votes
2 answers

calling rest ful web service in java using a given end point which takes xml as an put?

I am new to webservices. i am working on a project. i am asked to call a rest ful webservice which takes xml as in put. below is the end point. https://api-something.com/someLocation/status HTTP method is POST How can i pass the xml and call the…
user1016403
  • 12,151
  • 35
  • 108
  • 137
0
votes
1 answer

REST web services for aggregate hierarchy

I have a REST service for Company/Department. Company which contains departments. I have written CRUD service for company and department but when I retrieve a company with an id, I want Company object should make a nested REST API call and show all…
Sunil
  • 170
  • 1
  • 3
  • 11
0
votes
2 answers

RESTful API Design OR Predicates

I'm designing a RESTful API and I'm trying to work out how I could represent a predicate with OR an operator when querying for a resource. For example if I had a resource Foo with a property Name, how would you search for all Foo resources with a…
0
votes
1 answer

Handle relationships in REST

I'm learning how to make a good REST API. So, suppose I have the following models: Post has title, body, publish_date has_many comments, authors Comment has author, publish_date So, if I call GET /post, to get all posts, how it's…
Lucas Sampaio
  • 1,568
  • 2
  • 18
  • 36
0
votes
2 answers

Changing/appending request headers in RESTful API in c#

I have a really weird situation (may be its for me only). I developed a RESTful API. By default it returns the result as JSON/XML/TEXT as per the Content Type sent by the client in headers. Now client is saying that he wants to set the response as…
Deepak Kumar
  • 672
  • 4
  • 15
  • 31
0
votes
1 answer

RESTful approach for updating resource and creating associated objects

I'm designing a REST-style API for a service that provides analysis of clinical data. The API allows a user to create a Patient resource. This resource provides input data to the server-side analysis. Creation of a Patient is neither safe nor…
Alistair77
  • 1,208
  • 3
  • 14
  • 19
0
votes
1 answer

Glassfish built in RESTful EJB interface in addition to SOAP

I am currently learning Glassfish and I see that it is possible to add the annotation @WebService (javax.jws.WebService) and the container will automatically enable a SOAP web service for the particular bean. Since I am not really interested in…
amphibient
  • 29,770
  • 54
  • 146
  • 240