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

use api generated docs instead of comments #92

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

arcan1s
Copy link
Owner

@arcan1s arcan1s commented Apr 1, 2023

Summary

Instead of taking documenting HTTP in docstrings, lets try to use decorators as it is in normal languages. Currently there is only one library which provides descent support for documenting by decorators: https://github.com/maximdanilchenko/aiohttp-apispec

However, as we are using 3+ OpenAPI, support of it is still incomplete (see maximdanilchenko/aiohttp-apispec#46), but with some minor tweaks it works.

This MR implements OpenAPI and drops method descriptions from comments

Checklist

  • Tests to cover new code
  • make check passed
  • make tests passed

@arcan1s arcan1s self-assigned this Apr 1, 2023
@arcan1s arcan1s force-pushed the feature/api-docs branch 10 times, most recently from fde738b to c89b7f1 Compare April 2, 2023 22:19
@arcan1s arcan1s added this to the 2.8.0 milestone Apr 2, 2023
@arcan1s arcan1s force-pushed the feature/api-docs branch 6 times, most recently from 93b1541 to 5cfd8af Compare April 3, 2023 21:41
@arcan1s arcan1s force-pushed the feature/api-docs branch from 5cfd8af to 5feaf0d Compare April 3, 2023 22:45
@arcan1s arcan1s merged commit 208138e into master Apr 3, 2023
@arcan1s arcan1s deleted the feature/api-docs branch April 3, 2023 22:53
arcan1s added a commit that referenced this pull request Apr 5, 2023
arcan1s added a commit that referenced this pull request Apr 5, 2023
@arcan1s arcan1s added documentation Improvements or additions to documentation enhancement New feature or request and removed enhancement New feature or request labels May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant