mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 23:27:29 -06:00
Update Swagger
This commit is contained in:
parent
2cb7a8bf2a
commit
26d99209a9
4 changed files with 397 additions and 12 deletions
|
|
@ -43,10 +43,9 @@ import (
|
|||
//
|
||||
// responses:
|
||||
// '200':
|
||||
// name: pushSubscription
|
||||
// description: Push subscription for current access token.
|
||||
// description: Web Push subscription for current access token.
|
||||
// schema:
|
||||
// "$ref": "#/definitions/pushSubscription"
|
||||
// "$ref": "#/definitions/webPushSubscription"
|
||||
// '400':
|
||||
// description: bad request
|
||||
// '401':
|
||||
|
|
|
|||
|
|
@ -32,11 +32,9 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
)
|
||||
|
||||
// TODO: (Vyr) real parameters
|
||||
|
||||
// PushSubscriptionPOSTHandler swagger:operation POST /api/v1/push/subscription pushSubscriptionPost
|
||||
//
|
||||
// Get the push subscription
|
||||
// Create a new Web Push subscription for the current access token, or replace the existing one.
|
||||
//
|
||||
// ---
|
||||
// tags:
|
||||
|
|
@ -156,10 +154,9 @@ import (
|
|||
//
|
||||
// responses:
|
||||
// '200':
|
||||
// name: pushSubscription
|
||||
// description: Push subscription for current auth token.
|
||||
// description: Web Push subscription for current access token.
|
||||
// schema:
|
||||
// "$ref": "#/definitions/pushSubscription"
|
||||
// "$ref": "#/definitions/webPushSubscription"
|
||||
// '400':
|
||||
// description: bad request
|
||||
// '401':
|
||||
|
|
|
|||
|
|
@ -129,10 +129,9 @@ import (
|
|||
//
|
||||
// responses:
|
||||
// '200':
|
||||
// name: pushSubscription
|
||||
// description: Push subscription for current auth token.
|
||||
// description: Web Push subscription for current access token.
|
||||
// schema:
|
||||
// "$ref": "#/definitions/pushSubscription"
|
||||
// "$ref": "#/definitions/webPushSubscription"
|
||||
// '400':
|
||||
// description: bad request
|
||||
// '401':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue