ashutoshgithubs / iemhacks_DEV-G

https://edtech-dev-g-frontend.vercel.app/
MIT License
26 stars 43 forks source link

added new endpoint to get filtered courses according to price and category id #74

Open sumitt-kun opened 6 months ago

sumitt-kun commented 6 months ago

Issue Title: New Feature: New endpoint to get filtered courses according to price and category id.

resolve issue: #46

I have added a new endpoint to get filtered courses according to price and category id. Please note that if you don't add price in body while making http request then it will return all free courses(i.e price=0). Also if you don't add category id then it will return courses with any category.(i.e no filter on courses will be applied)

Type of change ☑️

What sort of change have you made:

Checklist: ☑️

Screenshot of the changes made in your work (if applicable):

Screenshot (3575) Screenshot (3576)

How Has This Been Tested? ⚙️

I've tested it on postman. Screenshot (3570) Screenshot (3574)

Screenshot (3573)

Screenshot (3572)

Screenshot (3571)

github-actions[bot] commented 6 months ago

Thank you for submitting this pull request. We will review the changes and get in contact with you as soon as possible.

sumitt-kun commented 6 months ago

hey @ashutoshgithubs , is it okay if I add the frontend part as a new issue since this is marked just a level 2? Other people are literally just changing little bit of styling/adding just 2-3 lines of code and getting 10 points(for a level 1 issue) :( Please let me know, if its fine. Otherwise I'll add the frontend part in this one only.

sumitt-kun commented 5 months ago

@ashutoshgithubs ?