Generating REST API docs by Swagger

It’s exactly what you’re asking for: