File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
endpoints/getting-started Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 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]
1617swagger : " 2.0"
1718info :
2021 version : " 1.0.0"
2122host : " echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog"
2223# [END swagger]
24+ # [END endpoints_swagger_yaml_python]
2325consumes :
2426- " application/json"
2527produces :
@@ -103,6 +105,7 @@ definitions:
103105 type : " string"
104106 email :
105107 type : " string"
108+ # [START endpoints_security_definitions_yaml_python]
106109# [START securityDef]
107110securityDefinitions :
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/[email protected] " 172175 x-google-audiences : " YOUR-PROJECT-ID"
173- # [END firebaseAuth]
You can’t perform that action at this time.
0 commit comments