Getting Started with GYAT
To get started with GYAT
, you'll need two simple things:
- An OpenAPI specification file: This describes the API you’re working with. For beginners, you can use the Petstore example API from the Pet Store repository.
- GYAT Configuration:
GYAT
uses the same configuration format askubectl
(i.e., thekubeconfig
file). This keeps the learning curve minimal and makes configuration easier.
Example GYAT Commands
warning
gyat
is at an early stage of development. There may be breaking changes in the future to the command usage, flags, and configuration file formats. If something doesn't work as expected, please let us know by opening an issue, or contribute to its development with your feedback. 🤓
Here are some useful GYAT
commands to get you started:
# Display help and list available APIs
gyat info
# List available operations for a specific API
gyat petstore info -v
# Retrieve a resource (e.g., pet) by ID
gyat petstore get pet 10
# Retrieve a resource (e.g., pet) by ID and output it in JSON format
gyat petstore get pet 10 --o=json
# Retrieve a resource (e.g., pet) with verbose output
gyat petstore get pet 10 --o=json --v
# Pipe output to jq for further processing
gyat petstore get pet 10 --o=json | jq .
# Retrieve a resource (e.g., pet) by operation ID with query parameters and output in YAML format
gyat petstore get pet --operationId=findPetsByStatus --status=available --o=yaml
For more information, check out the GYAT documentation.
- Download: You can download the latest version of
GYAT
from the GitHub releases page.