This thread is to be used for scholarX backend development discussions.
Github repository for backend:
This thread is to be used for scholarX backend development discussions.
Github repository for backend:
I’m working on “Adding JPA annotations to generate mysql tables”.
Issue: https://github.com/sef-global/scholarx/issues/15
Deadline: 2020-08-19T18:29:00Z
Hi @piumal1999 Thanks for working on the feature .Can you please create an issue for this.
I am working on Admin APIs of ScholarX. I have sent a draft pull request for following tasks.
I’m not sure whether this is the most suitable way to complete the issue.
@YohanAvishke could you please check it and let me know.
Please review and merge
I have checked it using Swagger UI. Btw I think we need to disable CSRF to make the APIs functional. @YohanAvishke is it okay if I add the security config file to my PR and disable csrf?
Sure @piumal1999, add a file named SecurityConfig
in the config
directory with the changes.
Make sure to create a different commit without squashing.
Updated the PR. Please review and merge. https://github.com/sef-global/scholarx/pull/25
@piumal1999 please add test cases to your PR. You can find examples in the above PR. Please ping me if you need any help.
Updated the PR with requested changes
Added unit tests for 3 new admin APIs
Created issues for common and user APIs
Ps: Created issues for other APIs also
Found a bug in this PR. (An infinite loop in GET mentors endpoint)
Fixed the bug with PR#49
Please review and merge
Created User APIs. Please review and merge
I created the mentor APIs with unit tests
But i couldn’t test the changes with a real database
curl --location --request PUT 'program/{programId}/mentees/{menteeId}/status'
In requests similar to above which require programId
to identify an element, wouldn’t it be better to add the programId
as a query param? Following are some points to support the statement,
curl --location --request PUT 'mentees/{menteeId}/status?programId='
WDYT?
Yeah. That’s good. So, shall i update the backend?
Yeah update your PR with the change also change the directory structure accordingly
Do we need to add the requested change to the user APIs also?
Pull request for USER API: