API: Add Swagger annotations #2132

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-07-16 12:05:55 +02:00
parent f1f4853190
commit 428d57e71e
26 changed files with 100 additions and 52 deletions

View File

@@ -21,7 +21,8 @@ import (
// OAuthToken creates a new access token for clients that authenticate with valid OAuth2 client credentials.
//
// POST /api/v1/oauth/token
// @Tags Authentication
// @Router /api/v1/oauth/token [post]
func OAuthToken(router *gin.RouterGroup) {
router.POST("/oauth/token", func(c *gin.Context) {
// Prevent CDNs from caching this endpoint.