From 58dddd86e0ddbb0c6aa54506dcef162321babfbb Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 31 Jul 2021 17:49:59 +0200 Subject: Swagger (#124) * start experimenting with swagger documentation * further adventures in swagger * do a few more api paths * account paths documented * go fmt * fix up some models * bit o lintin' --- internal/api/model/tag.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/api/model/tag.go') diff --git a/internal/api/model/tag.go b/internal/api/model/tag.go index f009b4cef..951f07808 100644 --- a/internal/api/model/tag.go +++ b/internal/api/model/tag.go @@ -18,10 +18,14 @@ package model -// Tag represents a hashtag used within the content of a status. See https://docs.joinmastodon.org/entities/tag/ +// Tag represents a hashtag used within the content of a status. +// +// swagger:model tag type Tag struct { // The value of the hashtag after the # sign. + // example: helloworld Name string `json:"name"` - // A link to the hashtag on the instance. + // Web link to the hashtag. + // example: https://example.org/tags/helloworld URL string `json:"url"` } -- cgit v1.2.3