Add documentation for VAPID public key in instance metadata (#1342)
* Add documentation for VAPID public key in instance metadata * Mark Application#vapid_key as deprecated
This commit is contained in:
parent
9340cb6a9f
commit
9b534bb024
|
@ -39,13 +39,6 @@ aliases: [
|
||||||
0.9.9 - added\
|
0.9.9 - added\
|
||||||
3.5.1 - this property is now nullable
|
3.5.1 - this property is now nullable
|
||||||
|
|
||||||
### `vapid_key` {#vapid_key}
|
|
||||||
|
|
||||||
**Description:** Used for Push Streaming API. Returned with [POST /api/v1/apps]({{< relref "methods/apps#create" >}}). Equivalent to [WebPushSubscription#server_key]({{< relref "entities/WebPushSubscription#server_key" >}})\
|
|
||||||
**Type:** String\
|
|
||||||
**Version history:**\
|
|
||||||
2.8.0 - added
|
|
||||||
|
|
||||||
### `client_id` {{%optional%}} {#client_id}
|
### `client_id` {{%optional%}} {#client_id}
|
||||||
|
|
||||||
**Description:** Client ID key, to be used for obtaining OAuth tokens\
|
**Description:** Client ID key, to be used for obtaining OAuth tokens\
|
||||||
|
@ -60,6 +53,16 @@ aliases: [
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
0.9.9 - added
|
0.9.9 - added
|
||||||
|
|
||||||
|
## Deprecated attributes
|
||||||
|
|
||||||
|
### `vapid_key` {#vapid_key}
|
||||||
|
|
||||||
|
**Description:** Used for Push Streaming API. Returned with [POST /api/v1/apps]({{< relref "methods/apps#create" >}}). Equivalent to [WebPushSubscription#server_key]({{< relref "entities/WebPushSubscription#server_key" >}}) and [Instance#vapid_public_key]({{< relref "entities/Instance#vapid_public_key" >}})\
|
||||||
|
**Type:** String\
|
||||||
|
**Version history:**\
|
||||||
|
2.8.0 - added
|
||||||
|
4.3.0 - deprecated pending removal
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
{{< page-relref ref="methods/apps" caption="apps API methods" >}}
|
{{< page-relref ref="methods/apps" caption="apps API methods" >}}
|
||||||
|
|
|
@ -41,6 +41,9 @@ aliases: [
|
||||||
"urls": {
|
"urls": {
|
||||||
"streaming": "wss://mastodon.social"
|
"streaming": "wss://mastodon.social"
|
||||||
},
|
},
|
||||||
|
"vapid": {
|
||||||
|
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
||||||
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"max_featured_tags": 10
|
"max_featured_tags": 10
|
||||||
},
|
},
|
||||||
|
@ -290,6 +293,12 @@ aliases: [
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
|
||||||
|
### `configuration[vapid][public_key]` (#vapid_public_key)
|
||||||
|
**Description:** The instances VAPID public key, used for push notifications, the same as [WebPushSubscription#server_key]({{< relref "entities/WebPushSubscription#server_key" >}}).\
|
||||||
|
**Type:** String\
|
||||||
|
**Version history:**\
|
||||||
|
4.3.0 - added
|
||||||
|
|
||||||
#### `configuration[accounts]` {#accounts}
|
#### `configuration[accounts]` {#accounts}
|
||||||
|
|
||||||
**Description:** Limits related to accounts.\
|
**Description:** Limits related to accounts.\
|
||||||
|
|
|
@ -61,6 +61,9 @@ Obtain general information about the server.
|
||||||
"urls": {
|
"urls": {
|
||||||
"streaming": "wss://mastodon.social"
|
"streaming": "wss://mastodon.social"
|
||||||
},
|
},
|
||||||
|
"vapid": {
|
||||||
|
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
||||||
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"max_featured_tags": 10
|
"max_featured_tags": 10
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue