-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: generate openapi specs for organization endpoint for v1 and v2 #5648
chore: generate openapi specs for organization endpoint for v1 and v2 #5648
Conversation
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.
can you try to render the openapi locally and check if the endpoints are rendered?
You can follow the steps mentioned here https://mintlify.com/docs/development
@@ -69,6 +69,11 @@ Never share your secret api keys. Keep them guarded and secure. | |||
), | |||
// The paths will be displayed in the same order as they are registered here | |||
paths( | |||
// Routes for Organization | |||
routes::organization::organization_create, |
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.
in order to add these endpoints to mintlify you will have to run this command, run it separately for both v1 and v2 folders
npx @mintlify/scraping@latest openapi-file openapi_spec.json -o api-reference
@@ -0,0 +1,3 @@ | |||
--- | |||
openapi: post /organization |
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.
V2 will have v2 prefix
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.
In other places too
…s-for-organization-endpoint
8d34d96
Type of Change
Description
generated openapi specs for organization endpoint for v1 and v2
Additional Changes
Motivation and Context
How did you test it?
verified that the generated open_api_spec file is valid by running
swagger-cli validate ./api-reference/openapi_spec.json
Checked if new endpoints are being rendered in mintlify
v2
v1
Checklist
cargo +nightly fmt --all
cargo clippy