Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 809 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 809 Bytes

thtr

cool weekend project with olivier desmoulin & jerome gangneux about theatre

setup

git clone https://github.com/adrienjoly/thtr.git
cd thtr
npm i
npm start
npm test # (to be run in another terminal)

Note: since september 26th, 2016, the landing page and API endpoints are published statically from the /docs directory, thanks to github pages. the web server's code was not changed accordingly.

api endpoints

  • GET / says hello
  • GET /api/plays returns the list of plays
  • GET /api/play/:play returns a play's metadata in JSON format (title and characters, as read from the act 1 of that play)
  • GET /api/play/:play/act/:act returns a play's act in JSON format, e.g. fourberies-acte1