This repository covers all the source code as part of the Rapid Innovation Assignment.
- NodeJS and the web framework ExpressJS
- Postgres as database
- Clone the repository
cd rapid-innov
npm i
nodemon index.js
- The above steps will get the server up and running
- GET -
/admin/{fname}/{lname}/{sport}
----->> Allows admin to search players across all the teams with given fname, lname and sport which they play. - GET -
/admin/
----->> Allows admin to get a list of all the players. - GET -
/coach/{coachId}/{fname}/{lname}/{sport}
----->> Allows a coach to search for players which he trained with their fname, lname and sport. - GET -
/coach/{coachId}
----->> Allows a coach to view list of all players whom he coached irrespective of their sport. - POST -
/coach/{coachId}
----->> Allows a coach to save a player which he trained into the database.