summaryrefslogtreecommitdiff
path: root/internal/api/model/tag.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-31 17:49:59 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-31 17:49:59 +0200
commit58dddd86e0ddbb0c6aa54506dcef162321babfbb (patch)
treeee83cec11f05dfe1e397b9303fe5cd7c2273d4f3 /internal/api/model/tag.go
parentPassword change (#123) (diff)
downloadgotosocial-58dddd86e0ddbb0c6aa54506dcef162321babfbb.tar.xz
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'
Diffstat (limited to 'internal/api/model/tag.go')
-rw-r--r--internal/api/model/tag.go8
1 files changed, 6 insertions, 2 deletions
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"`
}