Web service for handling course peer reviews. The first version is done with only one course in mind. Allthough it will have abstractions for data sources it will require some work to be more general solution.
This project requires following tools:
stack
docker
(this can be avoided by installing dependencies locally)
First enable scripts:
chmod +x script/*
Then run the setup:
script/setup
script/run
script/test
For test coverage run:
stack clean
stack test --docker --coverage
More detailed documentation for the API will be available separately.
GET /
- Show API documentation OR return web client for the API.
GET /api/peer-reviews
- gets all peer reviews
Accepts the following filters:
filter[task]=:taskId
- filters reviews by taskfilter[reviewer]=:email
- filters reviews in which user is the reviewer.filter[reviewee]=:email
- filters peer reviews in which user is the reviewee.
GET /api/peer-reviews/:id
- finds review by id
POST /api/peer-reviews/create
- creates a new empty peer review for user
PUT /api/peer-reviews/:id
- updates a peer review