-
Notifications
You must be signed in to change notification settings - Fork 14
CLOUDP-319370: Add curl and atlascli samples to the OAS #722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 14fdfdc.
return codeSample{ | ||
Lang: "cURL", | ||
Label: "Atlas CLI", | ||
Source: "atlas api " + op.OperationID + " --help", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more of a q for @jeroenvervaeke or maybe @andreaangiolillo already checked this, are there any OperationIDs/apis not included in auto-gen that we should account for here and filter them out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since both my comments can be a follow-up. Awesome changes 🚀
Proposed changes
Jira ticket: CLOUDP-319370
This PR adds curl and Atlas CLI examples to our OpenAPI specification. You can view the generated OpenAPI spec at this link. If you compare it to the current MongoDB documentation, you’ll notice that the new version includes an additional Request Sample section with both a curl request and an Atlas CLI example.
Examples: