Skip to content

muskan2901/HackTest

 
 

Repository files navigation

Hack Test API

Hackathons + Contests => Hack Test

Website: https://hacktestapi.herokuapp.com/

Workspace:

Video:


REST API

  • Hackathons
  • Contests

Hack Test API - Schema

  • /hackathon

  • /contests

    • /codeforces

    • /codeforces_gym

    • /top_coder

    • /code_chef

    • /hacker_rank

    • /hacker_earth

    • /kick_start

    • /leetcode


⚒️ Tech Stack

JavaScript logoMongoDB logoNode.js logoHTML5 logoCSS3 logogit logoVisual Studio Code logoExpress.js logo


Schema - Hackathons

GET list of Hackathons

Request

GET /hackathon

Response (Example)

{

"\_id": "61f3a163107f3e6a55f8eb74",

"id": 13952,

"title": "Flutter Puzzle Hack ",

"open_state": "open",

"thumbnail_url": "//challengepost-s3-challengepost.
netdna-ssl.com/photos/production/challenge_thumbnails/001/783/623/datas/medium.png",

"analytics_identifier": "Flutter Puzzle Hack (13952)",

"url": "https://flutterhack.devpost.com/",

"time_left_to_submission": "about 1 month left",

"submission_period_dates": "Jan 06 - Feb 28, 2022",

"prize_amount": "$<span data-currency-value>51,046</span>",

"registrations_count": 4012,

"featured": false,

"organization_name": "Google",

"winners_announced": false,

"submission_gallery_url": "https://flutterhack.devpost.com/project-gallery",

"start_a_submission_url": "about 1 month left",
"invite_only": false,

"\_\_v": 0

}

POST a new Hackathon

Request

POST /hackathon

Response

{

"title": "Your Hackathon Title",

"open_state" : "Hackathon status",

"thumbnail_url": "images://hackathon_logo.png",

"analytics_identifier" : "Your Hackathon",

"url" : "https://yourhackathonurl.com/",

"time_left_to_submission" : "about 2 hrs left",

"prize_amount" : "$$$$$",

"registrations_count" : "150",

"featured" : "true/false",

"organization_name" : "Hosting Organisation (Postman)"

"winners_announced" : "true/false"

"submission_gallery_url" : "https://yourhackathonurl.com/submissions",

"start_a_submission_url" : about 30 mins left",

"invite_only" : "true/false",

"__v" : "0/1/2"

}

Get a specific Hackathon

Request

GET /hackathon/id

Response Example

{

"\_id": "61f3a163107f3e6a55f8eb74",

"id": 13952,

"title": "Flutter Puzzle Hack ",

"open_state": "open",

"thumbnail_url": "//challengepost-s3-challengepost.
netdna-ssl.com/photos/production/challenge_thumbnails/001/783/623/datas/medium.png",

"analytics_identifier": "Flutter Puzzle Hack (13952)",

"url": "https://flutterhack.devpost.com/",

"time_left_to_submission": "about 1 month left",

"submission_period_dates": "Jan 06 - Feb 28, 2022",

"prize_amount": "$<span data-currency-value>51,046</span>",

"registrations_count": 4012,

"featured": false,

"organization_name": "Google",

"winners_announced": false,

"submission_gallery_url": "https://flutterhack.devpost.com/project-gallery",

"start_a_submission_url": "about 1 month left",
"invite_only": false,

"\_\_v": 0

}

Change a Hackthon Status

Request

PUT /hackathon?id="id"/

Response

{

"featured": true,

}

Create another new Hackathon

Request

POST /hackathon?id="id"

Repsonse

{

"id" : "your_new_id"

}

Delete a Hackathon

Request

DELETE /hackaton?id="id"

Response

{

Item Deleted Successfully

}

Schema - Contests

GET list of Contests

Request

GET /contests

Response (Example)

{

"_id": "233fa6cd-787e-468f-90f6-693c4dede569",

"name": "ProjectEuler+",

"url": "https://hackerrank.com/contests/projecteuler",

"start_time": "2014-07-07T15:38:00.000Z",

"end_time": "2024-07-30T18:30:00.000Z",

"duration": "317616720.0",

"in_24_hours": "No",

"status": "CODING",

"__v": 0

}

POST a new Contest

Request

POST /contests

Response

{

"name": "your_contest_name",

"url": "https://contest.xyz/contests/your_contest_name",

"start_time": "20XX-XX-XXT00:00:00.000Z",

"end_time": "20XX-XX-XXT00:00:00.000Z",

"duration": "contes_time",

"in_24_hours": "Yes/No",

"status": "CODING",

"__v": 0/1/2

}

Get a specific Contest

Request

GET /contests/id

Response Example

{

"_id": "233fa6cd-787e-468f-90f6-693c4dede569",

"name": "ProjectEuler+",

"url": "https://hackerrank.com/contests/projecteuler",

"start_time": "2014-07-07T15:38:00.000Z",

"end_time": "2024-07-30T18:30:00.000Z",

"duration": "317616720.0",

"in_24_hours": "No",

"status": "CODING",

"__v": 0

}

Change a Contest Status

Request

PUT /contests?_id="id"/

Response

{

"featured": Yes,

}

Create another new Contest

Request

POST /contests?id="id"

Repsonse

{

"id" : "your_new_id"

}

Delete a Contest

Request

DELETE /contests?id="id"

Response

{

Item Deleted Successfully

}

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.6%
  • JavaScript 35.3%
  • Shell 0.1%