Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CognitiveServices] enable Bing Search/CustomSearch products to specify Endpoint #4401

Merged
merged 1 commit into from Nov 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "AutoSuggest Search API",
"title": "AutoSuggest Client",
"description": "The AutoSuggest Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for AutoSuggest](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference).",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
},
"paths": {},
"parameters": {
"GlobalEndpoint": {
"name": "Endpoint",
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example: \"https://westus.api.cognitive.microsoft.com\", \"https://api.cognitive.microsoft.com\").",
"x-ms-parameter-location": "client",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true,
"default": "https://api.cognitive.microsoft.com"
},
"ImageStream": {
"name": "Image",
"in": "body",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bingcustomsearch/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"schemes": [
"https"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Entity Search API",
"title": "Entity Search Client",
"description": "The Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"schemes": [
"https"
Expand Down Expand Up @@ -210,9 +219,9 @@
}
},
"x-ms-examples": {
"Successful query": {
"$ref": "./examples//SuccessfulQueryRequest.json"
}
"Successful query": {
"$ref": "./examples//SuccessfulQueryRequest.json"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Image Search API",
"title": "Image Search Client",
"description": "The Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "News Search API",
"title": "News Search Client",
"description": "The News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down Expand Up @@ -241,9 +250,9 @@
}
},
"x-ms-examples": {
"Successful query": {
"$ref": "./examples//SuccessfulNewsSearchRequest.json"
}
"Successful query": {
"$ref": "./examples//SuccessfulNewsSearchRequest.json"
}
}
}
},
Expand Down Expand Up @@ -429,9 +438,9 @@
}
},
"x-ms-examples": {
"Successful query": {
"$ref": "./examples//SuccessfulNewsCategoryRequest.json"
}
"Successful query": {
"$ref": "./examples//SuccessfulNewsCategoryRequest.json"
}
}
}
},
Expand Down Expand Up @@ -609,9 +618,9 @@
}
},
"x-ms-examples": {
"Successful query": {
"$ref": "./examples//SuccessfulNewsTrendingRequest.json"
}
"Successful query": {
"$ref": "./examples//SuccessfulNewsTrendingRequest.json"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Video Search API",
"title": "Video Search Client",
"description": "The Video Search API lets you search on Bing for video that are relevant to the user's search query, for insights about a video or for videos that are trending based on search requests made by others. This section provides technical details about the query parameters and headers that you use to request videos and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Videos](https://docs.microsoft.com/azure/cognitive-services/bing-video-search/search-the-web).",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Visual Search API",
"title": "Visual Search Client",
"description": "Visual Search API lets you discover insights about an image such as visually similar images, shopping sources, and related searches. The API can also perform text recognition, identify entities (people, places, things), return other topical content for the user to explore, and more. For more information, see [Visual Search Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Web Search API",
"title": "Web Search Client",
"description": "The Web Search API lets you send a search query to Bing and get back search results that include links to webpages, images, and more.",
"version": "1.0"
},
Expand All @@ -22,6 +22,15 @@
]
}
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "../../../Common/Parameters.json#/parameters/GlobalEndpoint"
}
]
},
"host": "api.cognitive.microsoft.com",
"basePath": "/bing/v7.0",
"schemes": [
Expand Down Expand Up @@ -294,9 +303,9 @@
}
},
"x-ms-examples": {
"Successful query": {
"$ref": "./examples//SuccessfulQueryRequest.json"
}
"Successful query": {
"$ref": "./examples//SuccessfulQueryRequest.json"
}
}
}
}
Expand Down