Skip to content

Search and filtering for endpoints #297

Open
@bartekpacia

Description

@bartekpacia

Is your feature request related to a problem?
I was making a write-up about best REST practices and something essential came to my mind. A functionality so common that it's surprising we don't have it - search.

Describe the solution you'd like
I'd like features listed above to be supported in all endpoints (if applicable). It could be done using BaseModel.filter() method that Flask-SQLAlchemy provides.

Search URL examples

/users?username=john
/users?location=us
/mentorship_relation/{request_id}/tasks?title=learn_react

Describe alternatives you've considered
We can do all this stuff on the client side and considering current scale of the project, it's not really a big deal. However, serious problems will arise if the number of users (or data in general) gets increased.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: CodingChanges to code base or refactored code that doesn't fix a bug.Open Source HackStatus: AvailableIssue was approved and available to claim or abandoned for over 3 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions