bounswe / 2021SpringGroup4

This is the project repository of Group 4 for Boğaziçi University's Fundamentals of Software Engineering course.
2 stars 1 forks source link

Backend: Implement search functionalities for events #240

Closed kerimoglutolga closed 2 years ago

kerimoglutolga commented 2 years ago

Description

Searching for events is one of the core functionalities of our application. Users should be able to search for events using various parameters to find what they are looking for easier. That being said, in this issue I will develop the search functionality to the extent that the frontend/android teams are able to implement as we are restricted in time.

Files Search engine lives under /api/search/.

kerimoglutolga commented 2 years ago

Done! Relevant pull request: https://github.com/bounswe/2021SpringGroup4/pull/214

Three search endpoints have been implemented for searching by skill level, creator and sport type. Find example request below.

/api/search/event/sport/ [POST]

{
    "sportType": "Soccer";
}

/api/search/event/skill/ [POST]

{
    "skill_level": "Beginner";
}

/api/search/event/owner/ [POST]

{
    "owner": "tolga";
}