This is a simple Django project demonstrating CRUD (Create, Read, Update, Delete) operations using Django Rest Framework. The project provides a RESTful API for managing items and includes CORS (Cross-Origin Resource Sharing) support for easy integration with frontend applications.
-
Clone the repository:
git clone https://github.com/warrenshiv/-Django-REST-CRUD.git
-
Navigate to the project directory:
cd Django-REST-CRUD
-
Install dependencies:
-
Run migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
The app will be accessible at http://localhost:8000/.
-
List and create items:
- Endpoint: http://localhost:8000/api/items/
- Methods: GET, POST
-
Retrieve, update, and delete items:
- Endpoint: http://localhost:8000/api/items/<item_id>/
- Methods: GET, PUT, DELETE
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.