From 47e8af0f4dd15f43b7780b9c6f03a3aba24e68a5 Mon Sep 17 00:00:00 2001 From: tobi Date: Sun, 8 Dec 2024 13:17:22 +0100 Subject: [PATCH] fix swagger parsing issue --- docs/api/swagger.yaml | 8 +++++++- internal/api/client/accounts/featuredtags.go | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index ab24ed5f3..169e08fde 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -3642,6 +3642,12 @@ paths: get: description: 'THIS ENDPOINT IS CURRENTLY NOT FULLY IMPLEMENTED: it will always return an empty array.' operationId: accountsFeaturedTags + parameters: + - description: The id of the account. + in: path + name: id + required: true + type: string produces: - application/json responses: @@ -3664,7 +3670,7 @@ paths: security: - OAuth2 Bearer: - read:accounts - summary: Get an array of a user's featured tags. + summary: Get an array of target account's featured tags. tags: - accounts /api/v1/accounts/{id}/follow: diff --git a/internal/api/client/accounts/featuredtags.go b/internal/api/client/accounts/featuredtags.go index d5508201d..312a92bcc 100644 --- a/internal/api/client/accounts/featuredtags.go +++ b/internal/api/client/accounts/featuredtags.go @@ -28,7 +28,7 @@ import ( // AccountFeaturedTagsGETHandler swagger:operation GET /api/v1/accounts/{id}/featured_tags accountsFeaturedTags // -// Get an array of a user's featured tags. +// Get an array of target account's featured tags. // // THIS ENDPOINT IS CURRENTLY NOT FULLY IMPLEMENTED: it will always return an empty array. // @@ -39,6 +39,14 @@ import ( // produces: // - application/json // +// parameters: +// - +// name: id +// type: string +// description: The id of the account. +// in: path +// required: true +// // security: // - OAuth2 Bearer: // - read:accounts