| 1 | # urlshortener sample client |
| 2 | |
| 3 | ## Steps to run: |
| 4 | |
| 5 | 1. Generate the OpenAPI 3.0 description using `disco` (in the `gnostic/apps` directory). |
| 6 | |
| 7 | disco get urlshortener --openapi3 |
| 8 | |
| 9 | 2. (optional) View the JSON OpenAPI 3.0 description. |
| 10 | |
| 11 | gnostic openapi3-urlshortener-v1.pb --json-out=- |
| 12 | |
| 13 | 3. Generate the urlshortener client. |
| 14 | |
| 15 | gnostic openapi3-urlshortener-v1.pb --go-client-out=urlshortener |
| 16 | |
| 17 | 4. Build the client. |
| 18 | |
| 19 | go install |
| 20 | |
| 21 | 5. Download `client_secrets.json` from the Google Cloud Developer Console. |
| 22 | |
| 23 | 6. Run the client |
| 24 | |
| 25 | urlshortener |
| 26 |