Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RESTful service contract

Tags:

java

rest

wsdl

like WSDL what is the contract for RESTful service it exposes to client. Are there any java frameworks to create the client automatically for consuming RESTful Services ?

like image 901
Laxmikanth Samudrala Avatar asked Sep 16 '25 10:09

Laxmikanth Samudrala


2 Answers

In REST your media types and your link relations are your contracts. It is possible you use WADL as a runtime discovery mechanism, but it is far less flexible than using hypermedia based representations.

REST systems should never use something like WADL to generate client proxy classes.

like image 129
Darrel Miller Avatar answered Sep 18 '25 08:09

Darrel Miller


Jersey is probably the most popular REST library for Java on the server. They also have client libraries that allow you to consume RESTful services with an example

like image 34
Rob Di Marco Avatar answered Sep 18 '25 10:09

Rob Di Marco