diff options
author | Piotr Orzechowski <piotr@orzechowski.tech> | 2018-02-14 05:46:00 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-02-14 06:46:00 +0200 |
commit | b104ab3ca1690f35d0674d3807681390e640e5c8 (patch) | |
tree | dcc2018a27fbc6e6455abafe632660c2a6289137 /custom | |
parent | 4c9d9c221a0628753f3dc16b469330ee096cbf18 (diff) | |
download | gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.tar.gz gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.zip |
Add option to enable or disable swagger endpoints (#3502)
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 57fa5ec3d7..7876f0a7b6 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -553,6 +553,8 @@ DEFAULT_INTERVAL = 8h MIN_INTERVAL = 10m [api] +; Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true. +ENABLE_SWAGGER_ENDPOINT = true ; Max number of items will response in a page MAX_RESPONSE_ITEMS = 50 |