Skip to content
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

API spec cleanup: consistently use reusable path params and fix security scheme key #293

Merged
merged 6 commits into from
Dec 26, 2023

Conversation

alexmojaki
Copy link
Collaborator

This is mainly about replacing repeated redefinitions of the orgId, workspaceId, and docId path params with refs to a single definition under components. As well as just making the spec shorter and cleaner, it makes it easier to build the customized API console.

In the params I've touched, I've moved the description from the schema up to the path definition because that's where it's actually supposed to be, otherwise it doesn't show in the Swagger UI. This should be done to all params, but I'll leave that to another PR.

Also I've fixed the API Key security scheme to not have a space because apparently that's bad.

Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for grist-help-preview ready!

Name Link
🔨 Latest commit 118715c
🔍 Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/658051dd2f5e7b0008c99247
😎 Deploy Preview https://deploy-preview-293--grist-help-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@paulfitz paulfitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean-up @alexmojaki, good catch on the descriptions.

@alexmojaki alexmojaki merged commit 03f8af4 into master Dec 26, 2023
4 checks passed
fflorent pushed a commit to fflorent/grist-help that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants