username | password | role |
---|---|---|
employee | employee123 | superadmin |
user1 | bigpassword123 | user |
restaurant/views.py
contains all the view sets
/restaurant/menu/items <== GET , POST
/restaurant/menu/int:pk <== GET , PUT , DELETE
/restaurant/booking/tables <== Get , PUT , POST , DELETE
/auth/users <== Djoser Urls
/auth/users/me
/auth/token/login
/api-token-auth <== rest-framework token auth
test_models.py
contains test for models
test_views.py
contains tests for views
run python manage.py test
to run them