- python 3.6
- psql 11
virtualenv venv
source venv/scripts/activate
pip install -r requirements.txt
DBname = students
username = postgres
password = admin1234
port = 5432
host = localhost
python manage.py makemigrations
python manage.py migrate
URL | METHODS | PARAMS |
---|---|---|
http://localhost:8000/api/v1/students/ | GET POST | name |
http://localhost:8000/api/v1/student/create/ | POST | name |
http://localhost:8000/api/v1/student/pk/ | GET | |
http://localhost:8000/api/v1/student/update/pk/ | PUT | name |
http://localhost:8000/api/v1/student/delete/pk/ | DELETE | |
http://localhost:8000/api/v1/students/?search=param | name pk | |
http://localhost:8000/api/v1/students/?ordering=param | name id |
URL | METHODS | PARAMS |
---|---|---|
http://localhost:8000/api/v1/professors/ | GET POST | name |
http://localhost:8000/api/v1/professor/create/ | POST | name |
http://localhost:8000/api/v1/professor/pk/ | GET | |
http://localhost:8000/api/v1/professor/update/pk/ | PUT | name |
http://localhost:8000/api/v1/professor/delete/pk/ | DELETE | |
http://localhost:8000/api/v1/professors/?search=param | name pk | |
http://localhost:8000/api/v1/professors/?ordering=param | name id |
URL | METHODS | PARAMS |
---|---|---|
http://localhost:8000/api/v1/scores/ | GET POST | name student professor value |
http://localhost:8000/api/v1/score/create/ | POST | name student professor value |
http://localhost:8000/api/v1/score/pk/ | GET | |
http://localhost:8000/api/v1/score/update/pk/ | PUT | name student professor value |
http://localhost:8000/api/v1/score/delete/pk/ | DELETE | |
http://localhost:8000/api/v1/scores/?search=param | name pk student(id name) professor(id name) value | |
http://localhost:8000/api/v1/scores/?ordering=param | name pk student(id name) professor(id name) value |