-
Notifications
You must be signed in to change notification settings - Fork 0
[Documentação] API de Produtos
Eugenio Sales Siqueira edited this page Oct 18, 2022
·
5 revisions
https://i7k75lnyzb.execute-api.us-east-1.amazonaws.com/dev/api/v1/sbf
Definição
GET /products
Params
-
"category": string
categoria do produto (Ex.: shoes, soccer) -
"baseCurrency": string
moeda de referência do preço produto (Ex.: BRL) -
"targetCurrency": string
moeda para qual deve ser realizado o câmbio do preço do produto (Ex.: USD, EUR, INR)
Resposta
-
200 success.
em caso de sucesso
{
"products": [
{
"promotionalPrice": 529.99,
"currency": "BRL",
"imageUrl": "https://imgcentauro-a.akamaihd.net/500x500/5351432Y/tenis-nike-shox-r4-masculino-img.jpg",
"colors": [
"red",
"pink",
"gray"
],
"rating": 4.2,
"updatedAt": "1970-01-20T06:45:43.378Z",
"category": "shoes",
"createdAt": "1970-01-20T06:45:43.378Z",
"price": 749.99,
"id": "e3f43c83-3310-40c5-9b56-1b366e605ea4",
"name": "Tenis Nike Shox"
},
{
"promotionalPrice": 649.99,
"currency": "BRL",
"imageUrl": "https://imgcentauro-a.akamaihd.net/1300x1300/96946451A1/tenis-adidas-streetcheck-feminino-img.jpg",
"colors": [
"red",
"blue"
],
"rating": 4.8,
"updatedAt": "1970-01-20T06:45:43.378Z",
"category": "shoes",
"createdAt": "1970-01-20T06:45:43.378Z",
"price": 849.99,
"id": "e3f43c83-3310-40c5-9b56-2b366e605ea4",
"name": "Tenis Adidas"
}
],
"message": "success."
}
- Collection no postman: Collection