FEAT: create get and post route to theme

This commit is contained in:
marcos-silva-rodrigues
2024-12-04 15:29:51 -03:00
parent ccdff58056
commit ae81816aa7
4 changed files with 263 additions and 7 deletions
+144 -1
View File
@@ -5371,6 +5371,92 @@
]
}
},
"/customers/{id}/theme": {
"post": {
"operationId": "CustomersController_saveCustomertheme",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerThemeRequest"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerThemeResponse"
}
}
}
},
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerThemeResponse"
}
}
}
}
},
"tags": [
"Customers"
],
"security": [
{
"access-token": []
},
{
"access-token": []
}
]
},
"get": {
"operationId": "CustomersController_getCustomerTheme",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomerThemeResponse"
}
}
}
}
},
"tags": [
"Customers"
]
}
},
"/customers/token": {
"get": {
"operationId": "CustomersController_getCustomerToken",
@@ -8221,6 +8307,63 @@
"links"
]
},
"CustomerThemeRequest": {
"type": "object",
"properties": {
"backgroundColor": {
"type": "string"
},
"textColor": {
"type": "string"
},
"logoWhite": {
"type": "string"
},
"logoBlack": {
"type": "string"
}
},
"required": [
"backgroundColor",
"textColor",
"logoWhite",
"logoBlack"
]
},
"CustomerTheme": {
"type": "object",
"properties": {
"backgroundColor": {
"type": "string"
},
"textColor": {
"type": "string"
},
"logoWhite": {
"type": "string"
},
"logoBlack": {
"type": "string"
}
},
"required": [
"backgroundColor",
"textColor",
"logoWhite",
"logoBlack"
]
},
"CustomerThemeResponse": {
"type": "object",
"properties": {
"theme": {
"$ref": "#/components/schemas/CustomerTheme"
}
},
"required": [
"theme"
]
},
"CustomerLinkRequest": {
"type": "object",
"properties": {
@@ -8238,4 +8381,4 @@
}
}
}
}
}