Skip to content

MakarovS96/iris-web-swagger-ui

Repository files navigation

IRIS Swagger UI

Quality Gate Status

It is a tool to generate interactive documentation for your REST API.

Install

The tool is available as a ZPM module. You can install the tool easy:

USER> zpm
ZPM: USER> install swagger-ui

Getting started in 3 steps

  1. Create REST API
  2. Provide Swagger Spec url for your REST API
  3. Open browser and go to SwaggerUI page (http://localhost:52773/swagger-ui/index.html) and enter your Swagger Spec url

Demo

swagger-ui

## Making your url in swagger-ui deafault Assuming you've installed swagger-ui (e.g. via zpm as mentioned above) you may want to change the default endpoint to your one. In docker environment you can make it as follows. Add to Dockerfile after IRIS start new lines:

RUN old=http://localhost:52773/crud/_spec && \
	new=http://localhost:52773/your/api/_spec && \
	sed -i "s|$old|$new|g" /usr/irissys/csp/swagger-ui/swagger-initializer.js

That's it.

Contribute

Any contribution is welcome. To start you can clone the repository and up the project in Docker.

$ git clone https://github.com/atygaev/iris-web-swagger-ui.git
$ cd iris-web-swagger-ui
$ docker-compose up -d

For your convenience the project contains simple REST API (src/Sample/PersonREST.cls).

Swagger documentation for the REST API is available at http://localhost:52773/swagger-ui/index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6