HackHive
HackHive copied to clipboard
RESTful API for Hackathons - fixes #11
This PR contains the creation of a restful API for Hackathons
✅the Hackathons route are conntected to '/api/v/hackathons'
The Schema designed for the Hackathon is
{
"name": "",
"description": "",
"startDate": "",
"endDate": "",
"location": {
"venue": "",
"address": "",
"city": "",
"state": "",
"country": ""
},
"participants": [
{
"name": "",
"email": "",
"role": ""
},
{
"name": "",
"email": "",
"role": ""
}
],
"sponsors": [
{
"name": "",
"level": ""
},
{
"name": "",
"level": ""
}
],
"prizes": [
{
"position": ,
"description": "",
"value":
},
{
"position": ,
"description": "",
"value":
},
{
"position": ,
"description": "",
"value":
}
],
"maxTeams": ,
"registrationDeadline": ""
}
Now this API is ready to handle any requests from the Frontend