Skip to content

API Documentation

Anna edited this page Dec 18, 2018 · 6 revisions

API Documentation

Test

  • GET api/Test/LastNumber - returns new testing number;
  • GET api/Test/{id} - returns info about test by Id;
  • GET api/Test/All/{includeDeleted} - returns info about all tests. IncludeDeleted = {true, false}. It's unrequired parameter;
  • POST api/Test/Add - add new test;
  • PUT api/Test/Update - update test by testId from model in the request body.

Points

  • GET api/Point/All - returns all point,
  • GET api/Point/{testId}/{includeDeleted} - returns points by testId. IncludeDeleted = {true, false}. If IncludeDeleted = true,
  • POST api/Point/Add - add new point by testId from model in the request body;
  • PUT api/Point/Update - update point by pointId from model in the request body.

Results

  • GET api/Result/All - returns all results;
  • GET api/Result/{testId} - returns results by testId;
  • POST api/Result/Add - add new result by pointId from model in the request body
  • GET api/Result/Last - returns results by last testingNumber;
  • GET api/Result/AverageTime/{testId} - returns average time by testId or if testId isn't provided average time by all results.

Clone this wiki locally