Skip to content

TheGlitchCat/BasicCRUD-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up

  • python 3.6
  • psql 11

Create venv

virtualenv venv
source venv/scripts/activate

Install requirements

pip install -r requirements.txt

DB Settings

DBname = students
username = postgres
password = admin1234
port = 5432
host = localhost

Migrations

python manage.py makemigrations
python manage.py migrate

URLS - Students

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

URLS - Professors

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

URLS - Scores

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

About

Basic CRUD Django 2.2 With REST Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy