forgejo/routers/api
Gusted d847469ea2
[GITEA] Make HTTPS schema default for Swagger
- Switch the supported schemas for the Swagger API around, such that
https is the first one listed. This ensures that when the Swagger API is
used it will default to the https schema, which is likely the schema you
want to use in the majority of the cases.
- Resolves #1895

BREAKING CHANGE NOTICE:
If you are using the Swagger API JSON directly to communicate with the
Forgejo API, the library you are using may be using the first schema
defined in the JSON file (e.g. https://code.forgejo.org/swagger.v1.json)
to construct the request url, this used to be `http` but has now changed
to `https`. This can cause failures if you want to send the swagger
request over `http` (and there is no HTTPS redirection configured).

(cherry picked from commit 81e5f43886)
2023-12-11 16:08:43 +01:00
..
actions Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
forgejo/v1 [CLEANUP] Reuse ForgejoVersion variable 2023-12-11 14:48:37 +01:00
packages [GITEA] Drop sha256-simd in favor of stdlib 2023-12-11 15:46:55 +01:00
v1 [GITEA] Make HTTPS schema default for Swagger 2023-12-11 16:08:43 +01:00