···21532153;[api]
21542154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
21552155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
21562156-;; Enables Swagger. True or false; default is true.
21562156+;; Enables the API documentation endpoints (/api/swagger, /api/v1/swagger, …). True or false.
21572157;ENABLE_SWAGGER = true
21582158;; Max number of items in a page
21592159;MAX_RESPONSE_ITEMS = 50
···21612161;DEFAULT_PAGING_NUM = 30
21622162;; Default and maximum number of items per page for git trees api
21632163;DEFAULT_GIT_TREES_PER_PAGE = 1000
21642164-;; Default size of a blob returned by the blobs API (default is 10MiB)
21642164+;; Default max size of a blob returned by the blobs API (default is 10MiB)
21652165;DEFAULT_MAX_BLOB_SIZE = 10485760
2166216621672167;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
···1015101510161016## API (`api`)
1017101710181018-- `ENABLE_SWAGGER`: **true**: Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.
10181018+- `ENABLE_SWAGGER`: **true**: Enables the API documentation endpoints (`/api/swagger`, `/api/v1/swagger`, …). True or false.
10191019- `MAX_RESPONSE_ITEMS`: **50**: Max number of items in a page.
10201020- `DEFAULT_PAGING_NUM`: **30**: Default paging number of API.
10211021- `DEFAULT_GIT_TREES_PER_PAGE`: **1000**: Default and maximum number of items per page for Git trees API.
10221022-- `DEFAULT_MAX_BLOB_SIZE`: **10485760**: Default max size of a blob that can be return by the blobs API.
10221022+- `DEFAULT_MAX_BLOB_SIZE`: **10485760** (10MiB): Default max size of a blob that can be returned by the blobs API.
1023102310241024## OAuth2 (`oauth2`)
10251025
···126126127127## What is Swagger?
128128129129-[Swagger](https://swagger.io/) is what Gitea uses for its API.
129129+[Swagger](https://swagger.io/) is what Gitea uses for its API documentation.
130130131131-All Gitea instances have the built-in API, though it can be disabled by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`
132132-133133-For more information, refer to Gitea's [API docs]({{< relref "doc/developers/api-usage.en-us.md" >}})
131131+All Gitea instances have the built-in API and there is no way to disable it completely.
132132+You can, however, disable showing its documentation by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`.
133133+For more information, refer to Gitea's [API docs]({{< relref "doc/developers/api-usage.en-us.md" >}}).
134134135135-[Swagger Example](https://try.gitea.io/api/swagger)
135135+You can see the latest API (for example) on <https://try.gitea.io/api/swagger>.
136136137137## Adjusting your server for public/private use
138138