Search code examples
phprestler

How to set an API operation as deprecated with Restler?


I am using Restler to provide a REST API in a code written in PHP and I would like to set an operation as deprecated in the API. I use the Restler API Explorer for documenting/browsing the API.

The Restler API Explorer is based on Swagger UI and it looks that Swagger UI supports that:

Is it possible to do the same thing with Restler? How? Or do I need to open an issue to request this feature?


Solution

  • For now you have to use the description to mark a an api as deprecated. When we complete the swagger2.0 implementation you will have a better way to deal with this