HackHive icon indicating copy to clipboard operation
HackHive copied to clipboard

RESTful API for Hackathons - fixes #11

Open neelamnagarajgithub opened this issue 9 months ago • 1 comments

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

neelamnagarajgithub avatar May 12 '24 15:05 neelamnagarajgithub