anitab-org / anitab-org/mentorship-backend

Search and filtering for endpoints

Ouverte
#297 8 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Category: Coding Open Source Hack Status: Available
Langage dominant
Python
Étoiles
200
Forks
449
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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()`](https://flask-sqlalchemy.palletsprojects.com/en/2.x/queries/#querying-records) 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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.