Skip to content

Commit

Permalink
move servers definition to path-level
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-rabello committed Feb 6, 2025
1 parent 169d824 commit 63abc0b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions VTEX - Ad Network API.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@
],
"paths": {
"/sponsored_products/{facets}": {
"servers": [
{
"url": "https://{accountName}.{environment}.com.br/api/io/_v/api/intelligent-search",
"description": "VTEX Ad Network server URL, integrated with Intelligent Search.",
"variables": {
"accountName": {
"default": "apiexamples",
"description": "Name of the VTEX account. Used as part of the URL."
},
"environment": {
"description": "Environment to use. Used as part of the URL.",
"enum": [
"vtexcommercestable"
],
"default": "vtexcommercestable"
}
}
}
],
"get": {
"summary": "Get sponsored products for a query",
"description": "Lists sponsored products for a given search query. This endpoint must be used when the merchant uses a third-party search engine.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [authentication](https:\/\/developers.vtex.com\/docs\/guides\/authentication) or [permissions](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).",
Expand Down Expand Up @@ -61,25 +80,6 @@
"$ref": "#/components/parameters/hideUnavailableItems"
}
],
"servers": [
{
"url": "https://{accountName}.{environment}.com.br/api/io/_v/api/intelligent-search",
"description": "VTEX Ad Network server URL, integrated with Intelligent Search.",
"variables": {
"accountName": {
"default": "apiexamples",
"description": "Name of the VTEX account. Used as part of the URL."
},
"environment": {
"description": "Environment to use. Used as part of the URL.",
"enum": [
"vtexcommercestable"
],
"default": "vtexcommercestable"
}
}
}
],
"responses": {
"200": {
"description": "OK",
Expand Down

0 comments on commit 63abc0b

Please sign in to comment.