Skip to content

dyte-submissions/vit-hiring-2023-phase1-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing tool

This is a tool to help applicants test their own APIs before submission.

Usage

Make sure you have python installed.

  1. 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
  1. Set up a virtual environment
python3 -m venv venv
source ./venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. 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'
  1. Run the test tool
python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages