-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore(endpoints): migrate regions step 1 - in openapi-appengine.yaml #13016
Changes from all commits
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 | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -12,6 +12,7 @@ | |||||||
# See the License for the specific language governing permissions and | ||||||||
# limitations under the License. | ||||||||
|
||||||||
# [START endpoints_swagger_yaml_python] | ||||||||
# [START swagger] | ||||||||
swagger: "2.0" | ||||||||
info: | ||||||||
|
@@ -20,6 +21,7 @@ info: | |||||||
version: "1.0.0" | ||||||||
host: "echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog" | ||||||||
# [END swagger] | ||||||||
# [END endpoints_swagger_yaml_python] | ||||||||
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. Per the AUTHORING_GUIDE.md, region tags should be placed after the license header but before imports and global configurations. In this case, the
Suggested change
|
||||||||
consumes: | ||||||||
- "application/json" | ||||||||
produces: | ||||||||
|
@@ -103,6 +105,7 @@ definitions: | |||||||
type: "string" | ||||||||
email: | ||||||||
type: "string" | ||||||||
# [START endpoints_security_definitions_yaml_python] | ||||||||
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. Per the AUTHORING_GUIDE.md, region tags should be placed after the license header but before imports and global configurations. In this case, the
Suggested change
|
||||||||
# [START securityDef] | ||||||||
securityDefinitions: | ||||||||
# This section configures basic authentication with an API key. | ||||||||
|
@@ -111,6 +114,7 @@ securityDefinitions: | |||||||
name: "key" | ||||||||
in: "query" | ||||||||
# [END securityDef] | ||||||||
# [END endpoints_security_definitions_yaml_python] | ||||||||
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. Per the AUTHORING_GUIDE.md, region tags should be placed after the license header but before imports and global configurations. In this case, the
Suggested change
|
||||||||
# This section configures authentication using Google API Service Accounts | ||||||||
# to sign a json web token. This is mostly used for server-to-server | ||||||||
# communication. | ||||||||
|
@@ -162,12 +166,10 @@ securityDefinitions: | |||||||
# Your OAuth2 client's Client ID must be added here. You can add multiple client IDs to accept tokens form multiple clients. | ||||||||
x-google-audiences: "YOUR-CLIENT-ID" | ||||||||
# This section configures authentication using Firebase Auth. | ||||||||
# [START firebaseAuth] | ||||||||
firebase: | ||||||||
authorizationUrl: "" | ||||||||
flow: "implicit" | ||||||||
type: "oauth2" | ||||||||
x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID" | ||||||||
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]" | ||||||||
x-google-audiences: "YOUR-PROJECT-ID" | ||||||||
Comment on lines
169
to
175
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. |
||||||||
# [END firebaseAuth] |
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.
Per the AUTHORING_GUIDE.md, region tags should be placed after the license header but before imports and global configurations. In this case, the
endpoints_swagger_yaml_python
region tag should be placed before theswagger
tag. It's important to maintain consistency and clarity in region tag placement for documentation generation.