This is a Django Rest API Project In this Project I have Implemented CRUD operation in Rest API.
- C- Create- POST
- R- Read or Retrive - GET
- U- Update- PUT
- D- Delete or Remove- DELETE
2. Open CMD in the folder where you cloned this project and switch to restapi folder by cd Django-Rest-API-CRUD
pip install djangorestframework
pip install psycopg2
- Now Open settings.py folder and update
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': # YOUR_DATABASE_NAME,
'USER':'postgres',
'PASSWORD':# POSTGRESS PASSWORD,
'HOST':'localhost'
}
}
python manage.py migrate
python manage.py runserver
http://127.0.0.1:8000/api/employee/