This is a simple REST API project for managing university students using Django.
university-api
├── university_api
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
├── students
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── serializers.py
│ ├── tests.py
│ └── views.py
├── manage.py
└── README.md
-
Clone the repository:
git clone <repository-url> cd university-api -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install the required packages:
pip install -r requirements.txt
-
Run the migrations:
python manage.py migrate -
Start the development server:
python manage.py runserver -
Access the API at
http://127.0.0.1:8000/.
/students/- List all students or create a new student./students/<id>/- Retrieve, update, or delete a student by ID.
Feel free to submit issues or pull requests for improvements or bug fixes.
This project is licensed under the MIT License.