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 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # [START endpoints_swagger_yaml_python]
15
16
# [START swagger]
16
17
swagger : " 2.0"
17
18
info :
20
21
version : " 1.0.0"
21
22
host : " echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog"
22
23
# [END swagger]
24
+ # [END endpoints_swagger_yaml_python]
23
25
consumes :
24
26
- " application/json"
25
27
produces :
@@ -103,6 +105,7 @@ definitions:
103
105
type : " string"
104
106
email :
105
107
type : " string"
108
+ # [START endpoints_security_definitions_yaml_python]
106
109
# [START securityDef]
107
110
securityDefinitions :
108
111
# This section configures basic authentication with an API key.
@@ -111,6 +114,7 @@ securityDefinitions:
111
114
name : " key"
112
115
in : " query"
113
116
# [END securityDef]
117
+ # [END endpoints_security_definitions_yaml_python]
114
118
# This section configures authentication using Google API Service Accounts
115
119
# to sign a json web token. This is mostly used for server-to-server
116
120
# communication.
@@ -162,12 +166,10 @@ securityDefinitions:
162
166
# Your OAuth2 client's Client ID must be added here. You can add multiple client IDs to accept tokens form multiple clients.
163
167
x-google-audiences : " YOUR-CLIENT-ID"
164
168
# This section configures authentication using Firebase Auth.
165
- # [START firebaseAuth]
166
169
firebase :
167
170
authorizationUrl : " "
168
171
flow : " implicit"
169
172
type : " oauth2"
170
173
x-google-issuer : " https://securetoken.google.com/YOUR-PROJECT-ID"
171
174
x-google-jwks_uri : " https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com"
172
175
x-google-audiences : " YOUR-PROJECT-ID"
173
- # [END firebaseAuth]
You can’t perform that action at this time.
0 commit comments