mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-21 21:46:14 -06:00
refining some serialization
This commit is contained in:
parent
1025ac31aa
commit
9eb8878e94
4 changed files with 12 additions and 5 deletions
|
|
@ -67,7 +67,7 @@ type Account struct {
|
|||
// When a timed mute will expire, if applicable. (ISO 8601 Datetime)
|
||||
MuteExpiresAt string `json:"mute_expires_at,omitempty"`
|
||||
// An extra entity to be used with API methods to verify credentials and update credentials.
|
||||
Source *Source `json:"source"`
|
||||
Source *Source `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// AccountCreateRequest represents the form submitted during a POST request to /api/v1/accounts.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ type Application struct {
|
|||
// Client secret to use when obtaining an auth token for this application (ie., in client_secret parameter of https://docs.joinmastodon.org/methods/apps/)
|
||||
ClientSecret string `json:"client_secret,omitempty"`
|
||||
// Used for Push Streaming API. Returned with POST /api/v1/apps. Equivalent to https://docs.joinmastodon.org/entities/pushsubscription/#server_key
|
||||
VapidKey string `json:"vapid_key"`
|
||||
VapidKey string `json:"vapid_key,omitempty"`
|
||||
}
|
||||
|
||||
// ApplicationPOSTRequest represents a POST request to https://example.org/api/v1/apps.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue