Skip to content

Commit 27329b6

Browse files
navingerandrewsg
authored andcommitted
Updates for the Developer Portal (GoogleCloudPlatform#1438)
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 986e56b commit 27329b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

endpoints/getting-started/openapi.yaml

+4-1
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:
@@ -77,6 +79,7 @@ paths:
7779

7880
definitions:
7981
echoMessage:
82+
type: "object"
8083
properties:
8184
message:
8285
type: "string"

0 commit comments

Comments
 (0)