metadatacenter / cedar-swagger-ui

Swagger UI Distribution
Other
0 stars 0 forks source link

Version the Swagger documentation #1

Open martinjoconnor opened 7 years ago

martinjoconnor commented 7 years ago

Currently version 1.0.0 is hard coded into the Swagger documentation. Update the release script to put the current release version into the documentation.

martinjoconnor commented 7 years ago

Each server has a file swagger.json that has a version variable inside of the following:

{
  "swagger": "2.0",
  "info": {
    "title": "CEDAR Terminology Server API",
    "description": "CEDAR Terminology Server API",
    "version": "1.0.6"
  }
martinjoconnor commented 7 years ago

Rather than release script sed malarkey it might be possible to set the version via annotations. See:

https://stackoverflow.com/questions/35783349/setting-the-api-version-with-swagger-ui

martinjoconnor commented 7 years ago

Also swagger.yml.