swagger

command module
v0.0.0-...-a967eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

swagger

A service that provides Swagger UI parsing, supporting openapi.yaml files.

通用的swagger解析服务,用于解析openapi.yaml文件,生成swagger ui页面。

特性

  1. 通用服务,使用docker部署一个即可访问其他服务的openapi文件。
  2. 支持openapi中多个请求源切换。
  3. 支持url中指定host,方便分发。
  4. 支持跨域访问。

本地测试

  • make run
  • 访问 http://127.0.0.1:8081/swagger-ui/ 使用
  • 指定openapi.yaml文件的host,访问 http://127.0.0.1:8081/swagger-ui/${YAML_HOST}/ ,注意/结尾

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated for package swagger by go-bindata DO NOT EDIT.
Code generated for package swagger by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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