68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
basePath: /api/donat-wiget
|
|
definitions:
|
|
donat-widget_internal_model.UpdateDonatPage:
|
|
properties:
|
|
description:
|
|
type: string
|
|
pageBackground:
|
|
type: string
|
|
profileAvatar:
|
|
type: boolean
|
|
textAfterDonat:
|
|
type: string
|
|
type: object
|
|
echo.HTTPError:
|
|
properties:
|
|
message: {}
|
|
type: object
|
|
info:
|
|
contact: {}
|
|
description: Donate auth service docs.
|
|
title: Donate Auth Documentation
|
|
version: "3.0"
|
|
paths:
|
|
/donat-page:
|
|
patch:
|
|
consumes:
|
|
- application/json
|
|
description: Update personal streamer donate page.
|
|
parameters:
|
|
- description: Update fields
|
|
in: body
|
|
name: request
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/donat-widget_internal_model.UpdateDonatPage'
|
|
- description: Background image
|
|
in: formData
|
|
name: background
|
|
type: file
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: Donat page updated successfully
|
|
schema:
|
|
type: string
|
|
"400":
|
|
description: Bad request
|
|
schema:
|
|
$ref: '#/definitions/echo.HTTPError'
|
|
"401":
|
|
description: Unauthorized or expired token
|
|
schema:
|
|
$ref: '#/definitions/echo.HTTPError'
|
|
"422":
|
|
description: Validation error
|
|
schema:
|
|
$ref: '#/definitions/echo.HTTPError'
|
|
summary: Update personal streamer donate page.
|
|
tags:
|
|
- Donate
|
|
securityDefinitions:
|
|
BearerAuth:
|
|
in: header
|
|
name: Authorization
|
|
type: apiKey
|
|
swagger: "2.0"
|