Brands
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
200
OK
application/json
404
Brand was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/brands/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"name": "text",
"active": true,
"images": [
{
"resource_file_id": "123e4567-e89b-12d3-a456-426614174000",
"main": true
}
]
}
Autorizações
Parâmetros de rota
idstringObrigatório
Corpo
namestringObrigatório
activebooleanObrigatório
Respostas
200
Brand updated successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
put
PUT /api/sales/brands/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 112
{
"name": "text",
"active": true,
"images": [
{
"resource_file_id": "123e4567-e89b-12d3-a456-426614174000",
"main": true
}
]
}
{
"id": "text",
"name": "text",
"active": true,
"image": [
{
"resource_file_id": "123e4567-e89b-12d3-a456-426614174000",
"main": true
}
]
}
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
204
Brand removed successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
DELETE /api/sales/brands/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text"
}
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
""
dirstringOpcionalDefault:
asc
Respostas
200
OK
application/json
404
Brand was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/brands HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"currentPage": 1,
"perPage": 1,
"total": 1,
"items": [
{
"id": "text",
"name": "text",
"resource_file_id": "text",
"active": true
}
]
}
Autorizações
Corpo
idstringOpcional
namestringObrigatório
activebooleanObrigatório
Respostas
201
Brand created successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post
POST /api/sales/brands HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"id": "text",
"name": "text",
"active": true,
"images": [
{
"resource_file_id": "123e4567-e89b-12d3-a456-426614174000",
"main": true
}
]
}
{
"id": "text",
"name": "text",
"active": true,
"images": [
{
"resource_file_id": "123e4567-e89b-12d3-a456-426614174000",
"main": true
}
]
}