When providing a Restful web service (in java), is there a way to expose what are the methods and their parameters inside the service like in soap service wsdl ?
How does the consuming side of the web-service knows what are the available methods that can be used ? (I want to consume a web service only through it's URL).
I'm using NetBeans 8.0.2 with Apache Tomcat.
Thank's In Advanced.
Looking at the Richardson Maturity Model,
RESTis all aboutResources, on whichHTTP Verbs(and not "methods") can be applied, discovered/exposed throughLinks. For example, from the top level of your API, a client could notice aproducts-queryrelationship, which would retrieve a list of product resource after being accessed through aGETrequest - and so on.Another way of achieving that is wiring up Swagger on top of your API.