This is a tool to help applicants test their own APIs before submission.
Make sure you have python installed.
- Clone the repository onto your machine.
git clone https://github.com/dyte-submissions/vit-hiring-2023-phase1-test.git
cd vit-hiring-2023-phase1-test
- Set up a virtual environment
python3 -m venv venv
source ./venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Replace base URL in
main.py
with your own
import requests
from data import SLOTS, FACULTIES, COURSES, REGISTER_COURSES
-API_BASE = 'http://localhost:3000'
+API_BASE = 'http://localhost:4000/api/v1'
STUDENT_AUTH_TOKEN = 'ENTER STUDENT AUTH TOKEN HERE'
ADMIN_AUTH_TOKEN = 'ENTER ADMIN AUTH TOKEN HERE'
- Run the test tool
python main.py