swagger

package
v0.0.0-...-c4d1aec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

README

swagger

This directory contains ("swaggers") abbreviated copies of the following repositories:

The swagger/OpenAPI directory contains HTML, Javascript, and CSS assets that dynamically generate Swagger documentation from a Swagger-compliant API definition in users.swagger.json file. That file is auto-generated by running make generate in the root of this repository. The static assets are copied from this dist folder of the OpenAPI-UI project. After copying, swagger-initializer.js is edited to load the swagger file from the local server instead of the default petstore.

The steps above can be done automatically by using make generate/swagger-ui which is executing ./scripts/generate-swagger-ui.sh. The script will clone the OpenAPI repo with specific version defined by $SWAGGER_UI_VERSION and cache it at ./.cache/swagger-ui/$SWAGGER_UI_VERSION so if the script is running twice using the same version it will use the cache right away.

See the respective LICENSE files for each project for the applicable license terms.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpenAPI embed.FS

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL