
Publishing OAS-Based API Doc on GitHub Pages
Environment Mac CPU: Apple M4 OS: Sequoia 15.1.1 Zsh Version: 5.9 cURL Version: 8.11.1 Docker Desktop Version : 4.37.2 GitHub API Version : 2022-11-28 Dir Structure . ├── docker │ ├── .env │ └── docker-compose.yml ├── index.html ├── nginx.conf └── openapi └── openapi.yml openapi/openapi.yml * Just a sample. openapi : 3.0.3 info : title : Sample API version : 1.0.0 paths : /hello : get : summary : Hello World Request responses : " 200" : description : OK content : text/plain : schema : type : string example : " Hello, World!" index.html Swagger UI Most of the content is the same as what is written here. <!DOCTYPE html> <html lang= "en" > <head> <meta charset= "utf-8" /> <meta name= "viewport" content= "width=device-width, initial-scale=1" /> <meta name= "description" content= "SwaggerUI" /> <title> SwaggerUI </title> <link rel= "stylesheet" href= "https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" /> </head> <body> <div id= "swagger-ui" ></div> <script src= "https://unpkg.com/
Continue reading on Dev.to
Opens in a new tab



