Update Swagger

This commit is contained in:
Vyr Cossont 2024-11-30 20:20:26 -08:00
commit 26d99209a9
4 changed files with 397 additions and 12 deletions

View file

@ -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':

View file

@ -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':

View file

@ -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':