API: Add missing Swagger endpoint annotations and update swagger.json

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-22 04:12:02 +02:00
parent c8964fdc6b
commit 578fbe4d10
17 changed files with 2394 additions and 86 deletions

View File

@@ -12,10 +12,14 @@ import (
"github.com/photoprism/photoprism/pkg/service/http/header"
)
// OAuthAuthorize should gather consent and authorization from resource owners when using the
// Authorization Code Grant flow, see https://github.com/photoprism/photoprism/issues/4368.
// OAuthAuthorize (placeholder) for Authorization Code Grant consent.
//
// GET /api/v1/oauth/authorize
// @Summary OAuth2 authorization endpoint (not implemented)
// @Id OAuthAuthorize
// @Tags Authentication
// @Produce json
// @Failure 405 {object} i18n.Response
// @Router /api/v1/oauth/authorize [get]
func OAuthAuthorize(router *gin.RouterGroup) {
router.GET("/oauth/authorize", func(c *gin.Context) {
// Prevent CDNs from caching this endpoint.