generated from scale-tone/react-ts-basic
-
Notifications
You must be signed in to change notification settings - Fork 30
/
proxies.json
56 lines (56 loc) · 2.51 KB
/
proxies.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"searchEndpoint": {
"matchCondition": {
"methods": [
"GET"
],
"route": "/api/search"
},
"backendUri": "https://%SearchServiceName%.search.windows.net/indexes/%SearchIndexName%/docs",
"requestOverrides": {
"backend.request.headers.api-key": "%SearchApiKey%",
"backend.request.querystring.api-version": "2019-05-06"
}
},
"lookupEndpoint": {
"matchCondition": {
"methods": [
"GET"
],
"route": "/api/lookup/{key}"
},
"backendUri": "https://%SearchServiceName%.search.windows.net/indexes/%SearchIndexName%/docs/{key}",
"requestOverrides": {
"backend.request.headers.api-key": "%SearchApiKey%",
"backend.request.querystring.api-version": "2019-05-06"
}
},
"autocompleteEndpoint": {
"matchCondition": {
"methods": [
"GET"
],
"route": "/api/autocomplete"
},
"backendUri": "https://%SearchServiceName%.search.windows.net/indexes/%SearchIndexName%/docs/autocomplete",
"requestOverrides": {
"backend.request.headers.api-key": "%SearchApiKey%",
"backend.request.querystring.api-version": "2019-05-06"
}
},
"configScript": {
"matchCondition": {
"methods": [
"GET"
],
"route": "/api/config-script"
},
"responseOverrides": {
"response.body": "const ServerSideConfig = { SearchServiceName: '%SearchServiceName%', SearchIndexName: '%SearchIndexName%', AzureMapSubscriptionKey: '%AzureMapSubscriptionKey%', CognitiveSearchKeyField: '%CognitiveSearchKeyField%', CognitiveSearchNameField: '%CognitiveSearchNameField%', CognitiveSearchGeoLocationField: '%CognitiveSearchGeoLocationField%', CognitiveSearchOtherFields: '%CognitiveSearchOtherFields%', CognitiveSearchTranscriptFields: '%CognitiveSearchTranscriptFields%', CognitiveSearchFacetFields: '%CognitiveSearchFacetFields%', CognitiveSearchSuggesterName: '%CognitiveSearchSuggesterName%' }",
"response.headers.Content-Type": "application/javascript; charset=UTF-8"
}
}
}
}