An API for register and consult vehicles.
Create and active your virtual environment using the command bellow:
python3 -m venv .venvpython3 source .venv/bin/activateif you are using windows, maybe the alias for your interpreter is different, try trade python3 for python only.
Create your db.sqlite3 and all tables necessary with one commmand bellow:
python3 manage.py migrateRun your api for listen by default in localhost:8000.
python3 manage.py runserverGET http://localhost:8000/api/vehicles/POST http://localhost:8000/api/vehicles/| Parameter | Type | Description |
| name | string | Required |
| model | string | Required |
| price | float | Required |
| speed | int | Required |
| passengers | int | Required |
| year | int | Required |
GET http://localhost:8000/api/vehicles/${id}/PUT http://localhost:8000/api/vehicles/${id}/| Parameter | Type | Description |
| name | string | Required |
| model | string | Required |
| price | float | Required |
| speed | int | Required |
| passengers | int | Required |
| year | int | Required |
DELETE http://localhost:8000/api/vehicles/${id}/Keep in mind to change
${id}for correspondent object what you want to play.