Skip to content

Commit 3ef8bdc

Browse files
chore(endpoints): migrate regions step 1 - in openapi-appengine.yaml (#13016)
* chore(endpoints): add regions to openapi.yaml * chore(endpoints): remove region to openapi-appengine.yaml
1 parent 3983c07 commit 3ef8bdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

endpoints/getting-started/openapi.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# [START endpoints_swagger_yaml_python]
1516
# [START swagger]
1617
swagger: "2.0"
1718
info:
@@ -20,6 +21,7 @@ info:
2021
version: "1.0.0"
2122
host: "echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog"
2223
# [END swagger]
24+
# [END endpoints_swagger_yaml_python]
2325
consumes:
2426
- "application/json"
2527
produces:
@@ -103,6 +105,7 @@ definitions:
103105
type: "string"
104106
email:
105107
type: "string"
108+
# [START endpoints_security_definitions_yaml_python]
106109
# [START securityDef]
107110
securityDefinitions:
108111
# This section configures basic authentication with an API key.
@@ -111,6 +114,7 @@ securityDefinitions:
111114
name: "key"
112115
in: "query"
113116
# [END securityDef]
117+
# [END endpoints_security_definitions_yaml_python]
114118
# This section configures authentication using Google API Service Accounts
115119
# to sign a json web token. This is mostly used for server-to-server
116120
# communication.
@@ -162,12 +166,10 @@ securityDefinitions:
162166
# Your OAuth2 client's Client ID must be added here. You can add multiple client IDs to accept tokens form multiple clients.
163167
x-google-audiences: "YOUR-CLIENT-ID"
164168
# This section configures authentication using Firebase Auth.
165-
# [START firebaseAuth]
166169
firebase:
167170
authorizationUrl: ""
168171
flow: "implicit"
169172
type: "oauth2"
170173
x-google-issuer: "https://securetoken.google.com/YOUR-PROJECT-ID"
171174
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com"
172175
x-google-audiences: "YOUR-PROJECT-ID"
173-
# [END firebaseAuth]

0 commit comments

Comments
 (0)