diff options
author | 2021-07-31 17:49:59 +0200 | |
---|---|---|
committer | 2021-07-31 17:49:59 +0200 | |
commit | 58dddd86e0ddbb0c6aa54506dcef162321babfbb (patch) | |
tree | ee83cec11f05dfe1e397b9303fe5cd7c2273d4f3 /internal/api/model/tag.go | |
parent | Password change (#123) (diff) | |
download | gotosocial-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.go | 8 |
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"` } |