-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Cognitive Services] Update endpoint URL template for Face. #3490
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,15 @@ | |
"apim_key": [] | ||
} | ||
], | ||
"host": "api.cognitive.microsoft.com", | ||
"basePath": "/face/v1.0", | ||
"schemes": [ | ||
"https" | ||
], | ||
"x-ms-parameterized-host": { | ||
"hostTemplate": "{Endpoint}/face/v1.0", | ||
"useSchemePrefix": false, | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/Endpoint" | ||
} | ||
] | ||
}, | ||
"paths": { | ||
"/findsimilars": { | ||
"post": { | ||
|
@@ -2401,6 +2405,15 @@ | |
"format": "uuid", | ||
"x-ms-parameter-location": "method", | ||
"collectionFormat": "csv" | ||
}, | ||
"Endpoint": { | ||
"name": "Endpoint", | ||
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am a little concern about the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @huxuan, the decision is a compromise according to the feedback from multiple teams as well as the limitations of swagger. (In fact we have this change because we prefer consistency over back compatibility) In this PR we changed the definition of Endpoint, we are planning to update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @huxuan BTW feel free to bring up you concerns in the e-mail thread. |
||
"x-ms-parameter-location": "client", | ||
"required": true, | ||
"type": "string", | ||
"in": "path", | ||
"x-ms-skip-url-encoding": true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parameters": { | ||
"AzureRegion": "westus", | ||
"Endpoint": "{Endpoint}", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Nit] Indent |
||
"Content-Type": "application/json", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"body": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this as the class name now naturally ends with "Client"