application/xml
media type support for code generation.This package gather a set of tools for ObjectScript code generation from Swagger specification 3.0.
It includes :
The following features are available :
OpenAPI-suite can generate code :
zpm "install openapi-suite"
; optional
zpm "install swagger-ui"
git clone git@github.com:lscalese/openapi-suite.git
cd openapi-suite
# in case of permission issue with iris-main.log
# touch iris-main.log && chmod 777 iris-main.log
docker-compose up -d
Note:
It seems a problem could be occurs with BuildKit on Ubuntu.
In this case, you should use the compose plugin with the command docker compose up -d
plugin instead of docker-compose up -d
.
See the official documentation to instal compose plugin : Install the Compose plugin | Docker Documentation
The UI is available at this address(*) http://localhost:52796/openapisuite/ui/index.csp
By default the feature Install On Server
is disabled.
To enable, just :
Set ^openapisuite.config("web","enable-install-onserver") = 1
(*) Adapt the port number if needed
If you install swagger-ui, you can open http://localhost:52796/swagger-ui/index.html and explore http://localhost:52796/openapisuite/_spec to test REST services.
All code snipets are available in the class dc.openapi.suite.samples.PetStore
Set packageName = "petstoreclient"
Set features("simpleHttpClientOnly") = 1
Set sc = ##class(dc.openapi.client.Spec).generateApp(packageName, "https://petstore3.swagger.io/api/v3/openapi.json", .features)
Set packageName = "petstoreproduction"
Set sc = ##class(dc.openapi.client.Spec).generateApp(packageName, "https://petstore3.swagger.io/api/v3/openapi.json")
Set packageName = "petstoreserver", webApplication = "/petstore/api"
Set sc = ##class(dc.openapi.server.ServerAppGenerator).Generate("petstoreserver", "https://petstore3.swagger.io/api/v3/openapi.json", webApplication)
More information about OpenAPI-suite are available on this developer community article.
application/xml
media type support for code generation.io-redirect
dependency version to latest with *
openapi-client-gen
dependency version to latest fix version with 2.0.*
openapi-server-gen
dependency version to latest fix version with 0.0.*
Initial Release