Generate the OpenAPI 3.0 description using disco
(in the gnostic/apps
directory).
disco get urlshortener --openapi3
(optional) View the JSON OpenAPI 3.0 description.
gnostic openapi3-urlshortener-v1.pb --json-out=-
Generate the urlshortener client.
gnostic openapi3-urlshortener-v1.pb --go-client-out=urlshortener
Build the client.
go install
Download client_secrets.json
from the Google Cloud Developer Console.
Run the client
urlshortener