GYAT v0.1.0 - info and get command - MVP #1
adrianescutia
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Installation
/usr/local/bin
).Usage
You can go to the documentation page for more details on the commands.
Features:
InfoCommand with list
gyat info list
- List all the available commands based on the specs directory - for more details check the docsgyat info list -o yaml
- List all the available commands based on the specs directory in yaml formatgyat info list -v
- List all the available commands based on the specs directory with additional details about the resourcesGetCommand
Get a resource based on the specs file - for more details check the docs
The get command can be compared with the
kubectl get
command where you can get the resources defined in the specs file. We encorage to use the the Swagger tags to group the resources and use thegyat info list
to get the list of resources.The
operationId
is a unique identifier for resources and operations, hence it is used to invoke the resources.gyat petstore get pet 10
- Example from the petstore specs file, we get the pet with the id 10.gyat petstore get pet --id 10
- Example from the petstore specs file, we get the pet with the id 10.Adding query params in URL
gyat petstore get pet --operationId=findPetsByStatus --status=available --o=json
- Example from the petstore specs file, we get the pets with thestatus
available
in json format.Supported formats for output: yaml|json|details
This discussion was created from the release GYAT v0.1.0 - info and get command - MVP.
Beta Was this translation helpful? Give feedback.
All reactions