Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upWIP - Test out using swagger client for cli #1708
Conversation
chrisgilmerproj
self-assigned this
Feb 6, 2019
chrisgilmerproj
requested a review
from
akostibas
Feb 6, 2019
This comment has been minimized.
This comment has been minimized.
From my own playing with using swagger from the CLI (via curl), I needed to auth via Login.gov, then take the JWT from my active browser session and plug it into the curl headers. This is obviously really cumbersome. Maybe there's a way to auth with Login.gov on the CLI in an easier way, or to get an active session some other way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
chrisgilmerproj commentedFeb 6, 2019
Description
Was thinking about using our swagger files to generate the client needed for a CLI tool as an easy way to get a full-featured tool out of the box. Found this documentation: https://goswagger.io/generate/client.html and started on the example.
Reviewer Notes
There is no pivotal story associated with this, I just had some time to try it out.
I can't seem to figure out how to authorize my tool and could use some help with it if you've got any spare cycles.
Setup
Add any steps or code to run in this section to help others prepare to run your code:
I currently get this output:
Code Review Verification Steps
References