Skip to content

keveri/peer-review-service

Repository files navigation

Build Status Coverage Status BSD3 License

Peer review service

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.

Development

This project requires following tools:

  • stack
  • docker (this can be avoided by installing dependencies locally)

Setup

First enable scripts:

chmod +x script/*

Then run the setup:

script/setup

Running the app

script/run

Running tests

script/test

For test coverage run:

stack clean
stack test --docker --coverage

API endpoints

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 task
  • filter[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

About

Simple JSON API for handling course peer reviews.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published