Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the prefered method for a 'WSDL' for REST webservice?

I have build plenty of SOAP webservices, but am building a REST webservice for a specific project, and I was wondering what people used for a 'WSDL' for REST services or if it is even needed.

like image 728
danielrsmith Avatar asked Nov 12 '08 17:11

danielrsmith


2 Answers

You can try Swagger(now OpenAPI) which allows to describe REST services using a JSON open standard.

like image 198
Yann Avatar answered Oct 06 '22 19:10

Yann


REST really only uses the HTTP verbs (GET,PUT,POST,DELETE) on a resource. All operations on a resource are supposed to be represented that way. POST is used as a catch all for when you can't express your business logic in a way that fits into the other three. That is why there isn't really a WSDL for a REST service since you only ever have 4 methods on the resource. Note that the Zend Framework REST library isn't really RESTful and is more of a plain old XML (POX) service.

like image 45
Sam Corder Avatar answered Oct 06 '22 21:10

Sam Corder