-
Notifications
You must be signed in to change notification settings - Fork 136
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
[NEED HELP] 📃 Update docs #265
Comments
Hello. Is this for the case where you want to do perform get request that returns list of data so you cut the data in certain size and return to the user? like.. the pagination in API request? |
I was considering using this lib. Since it really lacks documentation, I can't make the decision. I'm not sure if it'd have a really big impact on my project. I think I'll wait until there is more documentation in place. |
Hey @uriyyo, |
@HDM007 Thanks for your help. I hope to cover:
|
Sure thing! I've already begun using the items transformer, so I can tackle that in my free time. The way I understand it, the items transformer allows us to pass a function to format the paginated response;
I will go deeper into the package to understand more about the Transformer. Are there any critical details you'd like to point out/focus on? |
I guess it will be enough just to add usage examples with minimal implementation details so users will know how to use this feature. |
strangly this will work: but the version in the version in the Readme.md
I could fix it by defining the response_type as above, but maybe someone should fix the docs here. |
@leosok Both definitions are correct in terms of FastAPI. This feature was added in FastAPI version async def get_conversations_by_session(*, session: Session = Depends(get_session), session_id: str) -> Page[LogEntryResponseDTO]:
... Thanks for pointing it, I will update README.md. |
@uriyyo Really love this package, great work! I also (strangely) love writing technical documentation. Personally, I've found the docs to be sufficient for my current usage of the tool, but would love to help fill in the gaps as needed. I saw that the three related issues you tagged in this were all closed. Is there another section of the codebase you think could benefit from additional documentation? |
@widal001 I would love it if you could help me with documentation. I feel like there is a lot of functionality that is not covered in the documentation. For instance, here is the functionality from https://github.com/uriyyo/fastapi-pagination/blob/main/fastapi_pagination/api.py that is not covered at all:
These are the first things that come to my mind, I am sure that there is more to cover. It will be also great to improve existing docs. |
@uriyyo Thanks for flagging these items! I'll take a closer look at that section of the code base, create the corresponding ticket(s), link them here for awareness, and aim to open up a PR in the next 1-2 weeks. |
I've been using the repo for my work involving PyMongo. I can help with some PyMongo examples similar to the code snippet shown for SQLAlchemy in the docs. |
@Lord-V15 It will be really great, cause I'm not working with Mongo at all( |
Yup, please follow |
I had problem testing if my queries were ok (using pytest). I was getting After a long time looking at the source code I discovered about It would be nice to have something about testing in the docs |
Hi @djeni98, Thanks for your feedback, I'm currently working on rewriting docs, so it should be better in future 🙏 |
I'm closing this issue as far as docs were fully rewritten, I would love to hear your feedback guys! |
Documentation should be updated.
Topics that should be covered:
Missed features docs:
Related issue:
#273
#269
#264
Library has bad documentation and I am not good at documentation writing. It will be great if somebody can help to improve documentation.
The text was updated successfully, but these errors were encountered: