- checkout postman documentation for detailed Description
Install with npm
To run server
npm i
npm run devAll API call(except Register and Login) should contain access token in headers with key "auth-token"
To run this project, you will need to add the following environment variables to your .env file
PORT- port number
ACCESS_TOKEN- Sphere engine API
ENDPOINT - sphere engine Endpoint
MONGO_URI - mongo db url
TOKEN_KEY - Secret Token key
POST /api/auth/register POST /api/auth/login POST /api/admin/problems GET /api/admin/problems?limit={n}| Parameter | Type | Description |
|---|---|---|
n |
int |
Required. no. of problem to be fetched in one call, can be used in pagination |
GET /api/admin/problems/{id}| Parameter | Type | Description |
|---|---|---|
id |
int |
Required. problem ID |
PUT /api/admin/problems/{id}| Parameter | Type | Description |
|---|---|---|
id |
int |
Required. problem ID |
DELETE /api/admin/problems/{id}| Parameter | Type | Description |
|---|---|---|
id |
int |
Required. problem ID |
POST /api/admin/testcase GET /api/admin/testcase/{id}| Parameter | Type | Description |
|---|---|---|
id |
int |
Required. problem ID |
POST /api/participant/submissions