![CI](https://github.com/Cividati/api-musica/actions/workflows/ci.yml/badge.svg)
Api feita em nodejs capaz de realizar um CRUD de super herois no banco de dados firebase
Parâmetro |
Obrigatório |
Tipo |
name |
sim |
String |
author |
não |
String |
duration |
não |
String |
year |
não |
String |
localhost:80/create?name=Imagine&author=John Lennon&duration=3:45&year=1988
{
"name": "Imagine",
"author": "John Lennon",
"duration": "3:45",
"year": "1988",
"class_name": "music"
}
Parâmetro |
Obrigatório |
Tipo |
name |
sim |
String |
localhost:80/read?name=Imagine
{
"name": "Imagine",
"author": "undefined",
"duration": "undefined",
"year": "undefined",
"class_name": "music"
}
Parâmetro |
Obrigatório |
Tipo |
name |
sim |
String |
author |
não |
String |
duration |
não |
String |
year |
não |
String |
localhost:80/update?name=Imagine&year=1998
{
"name": "Imagine",
"author": "undefined",
"duration": "undefined",
"year": "1998",
"class_name": "music"
}
Parâmetro |
Obrigatório |
Tipo |
name |
sim |
String |
http://localhost/delete?name=Imagine
{
"name": "Imagine",
"status": "deleted"
}