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

feat: improve api-docs #40

Merged
merged 2 commits into from
Feb 12, 2024
Merged

feat: improve api-docs #40

merged 2 commits into from
Feb 12, 2024

Conversation

rawongithub
Copy link
Member

Due to lack of examples provided for swagger module some tools may later generate incorrect sample data.
This PR adds some missing properties for some decorators to resolve this issue.

@rawongithub rawongithub force-pushed the revise-some-api-docs-decorators branch from 35da7fc to 56416cb Compare February 9, 2024 13:34
Copy link
Contributor

@wrola wrola left a comment

Choose a reason for hiding this comment

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

LGMT :)

description:
'Use only allowed properties separated by semicolon; default is ascending created_at; prefix name with hyphen/minus sign to get descending order',
'Only whitelisted properties separated by semicolon; prefix with -/+ for DESC/ASC order',
example: '-created_at;filename',
Copy link
Contributor

Choose a reason for hiding this comment

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

this example doesn't work, and when using endpoints we need to remove this string in swagger, should it still be added to documentantion?

Copy link
Member Author

Choose a reason for hiding this comment

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

This example shows just the format for the filter. As described above - only whitelisted properties are allowed for filtering. If proper ones used it does work.

@espresse espresse merged commit 433ddeb into main Feb 12, 2024
1 check passed
@espresse espresse deleted the revise-some-api-docs-decorators branch February 12, 2024 09:57
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.

4 participants