Ambitiont109 / BookAppAPI

Kuprik Test with Django Rest Framework, Django-Filter, Django-MultipleChoiceField, Swagger Implemented.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run the project on the local machine

-run script

pip install -r requirements.txt
python manage.py makemigrations
python manage.py runserver

Filter Feature by genere

  • you have to provide the genere filter data on the query parameters
    for example: http://127.0.0.1:8000/api/books/?genere=Fantasy&genere=Horror&genere=LF
    then, by default, we list the book with "OR" operator for genere field. that is; list all the books whose genere is Fantasy or Horror or LF.
  • However, if you specify and query param as "true" ,
    It lists the books wit AND operator. example url: http://127.0.0.1:8000/api/books/?genere=Fantasy&genere=Horror&genere=LF&and=true`

About

Kuprik Test with Django Rest Framework, Django-Filter, Django-MultipleChoiceField, Swagger Implemented.


Languages

Language:Python 92.9%Language:HTML 7.1%