# README
urlshortener sample client
Steps to run:
-
Generate the OpenAPI 3.0 description using
disco
(in thegnostic/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
# Packages
Package urlshortener exists to allow this repo to work with recursive go get.