Skip to content

Sebastien-Ahkrin/licpro-2019-manga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Project Manga

"Database" (files in json) in /back/db

Functionnal with node 10.x

How to run the tests

npm run test

How to run the back

Go to the back folder and run npm run start

How to run the front

Go to the /front folder and run npm run start

Don't forget ro run npm install command

[ Specs ]

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