Create a virtual environment for a project
$ cd my_project_folder
$ virtualenv -p python3 ENVname
Activate a virtual environment
$ source ENVname/bin/activate
Install packages
$ pip install -r requirements.txt
python manage.py runserver
Action | Endpoint | Method | Data |
---|---|---|---|
List | api/carplates/ | GET | |
Retrieve | api/carplates/<id>/ | GET | |
Create | api/carplates/ | POST | {'plate_number': 'PPP777', 'first_name': 'Kaliause', 'last_name': 'Bekepuris'} |
Update | api/carplates/<id>/ | PUT | {'first_name': 'Kaliause', 'last_name': 'Bekepuris'} |
Delete | api/carplates/<id>/ | DELETE |
python manage.py test