
openapi.yml files, and populates service/version dropdown menusShould have a bucket on AWS S3 with the following structure:
[BUCKET]
|__[STAGE]
|__[SERVICE]
|__[TIMESTAMP-VERSION] || [VERSION-TIMESTAMP] || [TIMESTAMP] || [VERSION]
|__openapi.yml
BUCKET - bucket for documentation;STAGE - application development stage (example: dev, stage, prod);SERVICE - service name;VERSION - version;TIMESTAMP - timestamp;openapi.yml - .yml document;For example:
bucket-api-documentation
|___dev
| |___mobileApp
| | |___1572347149-v1.0.0
| | | |___openapi.yml
| | |___1573159917
| | |___openapi.yml
| |
| |___backendApp
| |___v1.0.0-1572347149
| | |___openapi.yml
| |___v1.0.0
| |___openapi.yml
|
|___stage
|___mobileApp
| |___v1.0.0-1572347149
| |___openapi.yml
|
|___frontendApp
|___v1.0.1
| |___openapi.yml
|___v1.0.0
|___openapi.yml
Express-basic-auth - built-in middleware for authorization. You can specify environment variables:
If you don't specify environment variables then authorization will be missing
npm installcp .env.sample .envnpm startDEBUG=openapi-renderer:* npm start
localhost:3000
docker pull velmie/openapi-renderer:1.2.1
docker run -p 3000:80 -e S3_AWS_ACCESS_KEY_ID="" -e S3_AWS_SECRET_ACCESS_KEY="" -e S3_BUCKET="" velmie/openapi-renderer:1.2.1
Content type
Image
Digest
Size
62.8 MB
Last updated
over 4 years ago
docker pull velmie/openapi-renderer