Yet Another Mongoose-based Stateless API Test, is a simple backend for storing information about various sports players.
Note: A mongodb server is required. It will use the collection playerInfo
.
Use config/generalConfig.js
to provide any configuration required.
It is recommended to start the database fresh.
npm i
# other config
npm start
- GET - Get links
- GET : Get list of players
- POST : Insert new player
- PUT : Modify/update player with id
- DELETE : Remove player with id
{
"playerName":"<String>",
"age": "<Number>",
"skill": "<[String]>"
}
{
"college":"<String>",
"sport":"<String>",
"player":{
//Refer to above PUT request
}
}
Dependencies: mongoose express body-parser