Consulta de Produtos
Endpoint
Consulta de paginada de produtos por descrição
Authorizations
Query parameters
searchstringOptional
Parâmetro de texto para a busca
perPagenumberRequired
Número de registros por página
pagenumberRequired
Página de resultados a ser recuperada (0..N)
Responses
200Success
application/json
Responseall of
and
404
Não encontrado
get
GET /api/product/pager/query/search HTTP/1.1
Host: apim.niiw.io
Authorization: Bearer JWT
Accept: */*
{
"page": 1,
"perPage": 1,
"total": 1,
"list": [
{
"_id": "text",
"brand": {
"name": "text",
"picture": "text"
},
"description": "text",
"thumbnail": "text",
"price": "text",
"max_price": 1,
"min_price": 1,
"avg_price": 1,
"category": "text",
"category_level_0": "text",
"category_level_1": "text",
"category_level_2": "text",
"category_level_3": "text",
"category_level_4": "text",
"gtin": "text",
"gpc": {
"code": "text",
"description": "text"
},
"ncm": {
"code": "text",
"description": "text",
"full_description": "text"
},
"cest": {
"id": 1,
"code": "text",
"description": "text",
"parent_id": 1
},
"payload": {}
}
]
}
Exemplo cURL
curl -X 'GET' \
'https://apim.niiw.io/api/product/pager/query/search?perPage=1&page=1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhb......................'
Exemplo Request Body
{
"page": 0,
"perPage": 0,
"total": 0,
"list": [
{
"_id": "string",
"brand": {
"name": "string",
"picture": "string"
},
"description": "string",
"thumbnail": "string",
"price": "string",
"max_price": 0,
"min_price": 0,
"avg_price": 0,
"category": "string",
"category_level_0": "string",
"category_level_1": "string",
"category_level_2": "string",
"category_level_3": "string",
"category_level_4": "string",
"gtin": "string",
"gpc": {
"code": "string",
"description": "string"
},
"ncm": {
"code": "string",
"description": "string",
"full_description": "string"
},
"cest": {
"id": 0,
"code": "string",
"description": "string",
"parent_id": 0
},
"payload": {}
}
]
}
Last updated