Skip to content

Commit

Permalink
edit sort + add 400 error response
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-rabello committed Aug 26, 2024
1 parent a9c0acb commit 9f12ded
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion VTEX - Intelligent Search API.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
{
"in": "query",
"name": "sort",
"description": "Defines the sort type. The possible values are: \r\n- `price:desc`: The results will be sorted by price in descending order, from highest to lowest.\r\n- `price:asc`: The results will be sorted by price in ascending order, from lowest to highest.\r\n- `orders:desc`: The results will be sorted by the amount of orders in the past 90 days, in descending order.\r\n- `name:desc`: The results will be sorted by name in descending alphabetical order.\r\n- `name:asc`: The results will be sorted by name in ascending alphabetical order.\r\n- `release:desc`: The results will be sorted by release date in descending order, from most recent to least recent.\r\n- `discount:desc`: The results will be sorted by discount percentage in descending order, from highest to lowest.\r\n\r\nIf `null`, the products will be sorted by relevance.",
"description": "Defines the sort type. The possible values are: \r\n- `price:desc`: The results will be sorted by price in descending order, from highest to lowest.\r\n- `price:asc`: The results will be sorted by price in ascending order, from lowest to highest.\r\n- `orders:desc`: The results will be sorted by the amount of orders in the past 90 days, in descending order.\r\n- `name:desc`: The results will be sorted by name in descending alphabetical order.\r\n- `name:asc`: The results will be sorted by name in ascending alphabetical order.\r\n- `release:desc`: The results will be sorted by release date in descending order, from most recent to least recent.\r\n- `discount:desc`: The results will be sorted by discount percentage in descending order, from highest to lowest.\r\n\r\nIf this query parameter is not used, the products will be sorted by relevance.",
"schema": {
"type": "string",
"nullable": true,
Expand Down Expand Up @@ -920,6 +920,54 @@
}
}
}
},
"400": {
"description": "Bad Request.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Error response information.",
"properties": {
"status": {
"type": "integer",
"description": "Status code."
},
"code": {
"type": "string",
"description": "Error code."
},
"name": {
"type": "string",
"description": "Error name."
},
"level": {
"type": "string",
"description": "Error severity level."
},
"response": {
"type": "object",
"description": "Response details.",
"properties": {
"data": {
"type": "string",
"description": "Error response message."
}
}
}
}
},
"example": {
"status": 400,
"code": "RESOLVER_WARNING",
"name": "ResolverWarning",
"level": "warn",
"response": {
"data": "Unsupported sort null"
}
}
}
}
}
}
}
Expand Down

0 comments on commit 9f12ded

Please sign in to comment.