-
Notifications
You must be signed in to change notification settings - Fork 4
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
enhance folder structure & apply API versioning #7
enhance folder structure & apply API versioning #7
Conversation
Interesting! |
bad46d2
to
4be3c6a
Compare
@IbraheemTuffaha please note i added the following lines to ignore flake errors
-WPS300: relative import is approved by Guido himself, i only use relative import in same folder files. I believe for now we can merge this PR and open an issue for |
Do you know why there's still a conflict? |
@IbraheemTuffaha hi, conflict resolved |
1323452
to
420a27c
Compare
@IbraheemTuffaha is the conflict still exists? |
Thank you @YousefAldabbas for your contribution here, I just got the chance to review the changes.. I like the idea of versioning, although not all projects needs versioning, but sure let's put it here as a best practice.. It's also interesting how you put both requests & responses in serializers, I'm wondering.. what if I have multiple endpoints in dummy router? I've made a few changes to the code, let me know what you think:
|
89c75ad
to
f475bc3
Compare
Hi @IbraheemTuffaha, sorry for the late response. "It's also interesting how you put both requests & responses in serializers. I'm wondering, what if I have multiple endpoints in a dummy router? Will that translate into multiple classes for each endpoint in the same APIs should return the same response schema for table CRUD operations. Of course, this depends on the purpose of your template. Is it for servers that only operate as gateways for other servers (or third parties) or is it going to handle DB operations and other logic For the other points it's your repository and you can do whatever you want. no hard feelings it's just personal preference. |
No, I actually like your input. |
Quality Gate passedIssues Measures |
Reopened in #8 |
It took a while 😅.. but now I've made some changes and pushed them Please @YousefAldabbas take a look at main branch now and let me know what you think.. I've found your inputs here very helpful, so thank you! I'll be working on adding another router that does operations and processing rather than CRUD, just as another example |
Hi @IbraheemTuffaha, 2- You created a user package inside the services folder that contains 3- I would move the code from if needed i will create a new branch contain all the changes that I'm thinking of. |
closes #6