Skip to content

claudusd-edu/licpro-js-2019-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

LicPro Project 2019

Structure

README.md
back
  package.json
  src
front
  package.json
.gitingore

API

This api should respect the lofic with http code status.

List All

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"
  }
]

List One

Request

GET /api/episodes/B

Reponse

{
  "id": "B",
  "name": "The 100",
  "grade": 10,
  "code": "S01E01"
}

Create en episode

Request

POST /api/episodes
{
  "name": "The 100",
  "grade": 10,
  "code": "S01E01"
}

Response

{"id": "C"}

Delete an episode

Request

DELETE /api/episodes/C

Update en episode

Request

PUT /api/episodes/A
{
  "name": "The 100",
  "grade": 10,
  "code": "S01E02"
}

Storage V1

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published