SciCatProject / scicat-backend-next

SciCat Data Catalogue Backend
https://scicatproject.github.io/documentation/
BSD 3-Clause "New" or "Revised" License
20 stars 24 forks source link

feat: allow the swagger path to be configurable #1425

Closed Junjiequan closed 1 month ago

Junjiequan commented 2 months ago

Description

This PR makes the Swagger path configurable by allowing it to be set through the SWAGGER_PATH environment variable. If not provided, it defaults to “explorer.”

Motivation

Making the Swagger path configurable improves flexibility, allowing different paths for different environments

Fixes:

Please provide a list of the fixes implemented by this PR

Changes:

Please provide a list of the changes implemented by this PR

Tests included

Documentation

official documentation info

If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included