This is a simple API that will let you GET, UPDATE, POST and DELETE songs and their singers to/from our API
To run the API make sure you have pipenv installed:
Then activate your virtual environment by running:
pipenv shell
Then install all the packages and/or dependencies needed from Pipfile by running:
pipenv install
Once it's done installing, run the API with this command:
pipenv run python app.py
where app.py is the name of the file
The API is only meant for educational purposes and requires information that already exists in the Internet
Here is the body to POST information about a SINGER in JSON format using /singers endpoint:
{
"ethnicity": "",
"first_name": "",
"last_name": "",
"race": "",
"religion": "",
"zodiac_sign": ""
}
Here is the body to POST information about a SONG in JSON format using /songs endpoint:
{
"album": "",
"date_released": "mm/dd/yyyy",
"lyrics": "",
"singer_id": #,
"song_name": ""
}
To GET information about posted singers and songs use the same endpoints
To UPDATE posted singers or songs use the same JSON body as shown above and use PUT method in POSTMAN using /singers/update-# or /songs/update-# endpoint, where you put your singer's or song's id instead of the #
To DELETE posted singers or songs use DELETE method in POSTMAN using /singers/delete-# or /songs/delete-# endpoint, where you put your singer's or song's id instead of the #