Skip to content

Commit 95459ab

Browse files
navingerbshaffer
authored andcommitted
Updates for the Developer Portal (GoogleCloudPlatform#589)
Updates so the sample API can be used easily in the Developer Portal. -- In schemes, it has to be "http" so that you can test the echo API in the Developer Portal. -- In the echoMessage definition, adding type: "object" provides a better user experience in the Developer Portal.
1 parent 0097bf4 commit 95459ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

endpoints/getting-started/openapi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ consumes:
1111
produces:
1212
- "application/json"
1313
schemes:
14-
- "https"
14+
# Uncomment the next line if you configure SSL for this API.
15+
#- "https"
16+
- "http"
1517
paths:
1618
"/echo":
1719
post:
@@ -62,6 +64,7 @@ paths:
6264

6365
definitions:
6466
echoMessage:
67+
type: "object"
6568
properties:
6669
message:
6770
type: "string"

0 commit comments

Comments
 (0)