102 lines
3.1 KiB
JSON
102 lines
3.1 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "Donate auth service docs.",
|
|
"title": "Donate Auth Documentation",
|
|
"contact": {},
|
|
"version": "3.0"
|
|
},
|
|
"basePath": "/api/donat-wiget",
|
|
"paths": {
|
|
"/donat-page": {
|
|
"patch": {
|
|
"description": "Update personal streamer donate page.",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Donate"
|
|
],
|
|
"summary": "Update personal streamer donate page.",
|
|
"parameters": [
|
|
{
|
|
"description": "Update fields",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/donat-widget_internal_model.UpdateDonatPage"
|
|
}
|
|
},
|
|
{
|
|
"type": "file",
|
|
"description": "Background image",
|
|
"name": "background",
|
|
"in": "formData"
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"donat-widget_internal_model.UpdateDonatPage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"pageBackground": {
|
|
"type": "string"
|
|
},
|
|
"profileAvatar": {
|
|
"type": "boolean"
|
|
},
|
|
"textAfterDonat": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"echo.HTTPError": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {}
|
|
}
|
|
}
|
|
},
|
|
"securityDefinitions": {
|
|
"BearerAuth": {
|
|
"type": "apiKey",
|
|
"name": "Authorization",
|
|
"in": "header"
|
|
}
|
|
}
|
|
} |