README.md
back
package.json
src
front
package.json
.gitingore
This api should respect the lofic with http code status.
Request
GET /api/episodes
Response
[
{
"id": "A",
"name": "The Big Bang Theory",
"grade": 8,
"code": "S01E01"
},
{
"id": "B",
"name": "The 100",
"grade": 10,
"code": "S01E01"
}
]
Request
GET /api/episodes/B
Reponse
{
"id": "B",
"name": "The 100",
"grade": 10,
"code": "S01E01"
}
Request
POST /api/episodes
{
"name": "The 100",
"grade": 10,
"code": "S01E01"
}
Response
{"id": "C"}
Request
DELETE /api/episodes/C
Request
PUT /api/episodes/A
{
"name": "The 100",
"grade": 10,
"code": "S01E02"
}
When i watch an episode i make the HTTP Request POST /api/episodes/
. The system create a file in the dir back/data/
. The file name is {id}.json
.