* 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'
This commit is contained in:
Tobi Smethurst 2021-07-31 17:49:59 +02:00 committed by GitHub
commit 58dddd86e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 2355 additions and 169 deletions

View file

@ -18,14 +18,19 @@
package model
// Mention represents the mastodon-api mention type, as documented here: https://docs.joinmastodon.org/entities/mention/
// Mention represents a mention of another account.
type Mention struct {
// The account id of the mentioned user.
// The ID of the mentioned account.
// example: 01FBYJHQWQZAVWFRK9PDYTKGMB
ID string `json:"id"`
// The username of the mentioned user.
// The username of the mentioned account.
// example: some_user
Username string `json:"username"`
// The location of the mentioned user's profile.
// The web URL of the mentioned account's profile.
// example: https://example.org/@some_user
URL string `json:"url"`
// The webfinger acct: URI of the mentioned user. Equivalent to username for local users, or username@domain for remote users.
// The account URI as discovered via webfinger.
// Equal to username for local users, or username@domain for remote users.
// example: some_user@example.org
Acct string `json:"acct"`
}