Swagger generation for REST api
Hi, I am considering making my own swagger json generation based on my rest api implementing the %CSP.REST class.
Before I begin, I was wondering if there is already some kind of support, perhaps in IRIS already, or some tools that might help me.
Product version: IRIS 2024.2
Calling @Stefan Wittmann, @Timothy Leavitt and @Pravin Barton
If you can move to isc.rest, I know it takes care of OpenAPI (aka Swagger) spec generation automatically.
Not much to add other than the same pointer.
simply search
I think you mean something like this:
https://docs.intersystems.com/iris20241/csp/docbook/DocBook.UI.Page.cls?...
Hello @Martin Nielsen
Quick note, You can get the manually created web applications via /v1/{namespace}/restapps in the web application "/api/mgmnt" ex: http://localhost:52773/api/mgmnt/v1/learning/restapps. This will list down all the v1 applications and from that you can use the web app name to get the openAPI(swagger 2.0) by using the the url /v1/{namespace}/spec/{web app name} ex: http://localhost:52773/api/mgmnt/v1/learning/spec/dc/samprest