Files
Gumble-Backend/api/paths/push.yml
Zane Walker 7e940c83a7
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
(Feat): Initial Commit
2026-07-03 19:41:31 +05:30

34 lines
1.0 KiB
YAML

swagger: "2.0"
info:
title: allaboutapps.dev/aw/go-starter
version: 0.1.0
paths:
/api/v1/push/token:
put:
security:
- Bearer: []
description: |-
Adds a push token for the given provider to the current user.
If the oldToken is present it will be deleted.
Currently only the provider 'fcm' is supported.
tags:
- push
summary: Adds a push token to the user
operationId: PutUpdatePushTokenRoute
parameters:
- name: Payload
in: body
schema:
"$ref": "../definitions/push.yml#/definitions/PutUpdatePushTokenPayload"
responses:
"200":
description: OK
"404":
description: PublicHTTPError, type `OLD_PUSH_TOKEN_NOT_FOUND`
schema:
"$ref": "../definitions/errors.yml#/definitions/PublicHTTPError"
"409":
description: PublicHTTPError, type `PUSH_TOKEN_ALREADY_EXISTS`
schema:
"$ref": "../definitions/errors.yml#/definitions/PublicHTTPError"