Update URLs to be more consistent

GET  /report?entity=<ref>

POST /report?entity=<ref>&coverageType=<cobertura|jacoco>

GET  /history?entity=<ref>

GET  /file-content?entity=<ref>&path=<filepath>

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
alde
2021-04-19 11:36:19 -04:00
committed by Fredrik Adelöw
parent e7d2fb93f0
commit 0e57ec3f91
7 changed files with 105 additions and 101 deletions
@@ -27,9 +27,7 @@ exports.up = async function up(knex) {
.primary()
.notNullable()
.comment('The ID of the code coverage');
table.text('entity_name').notNullable().comment('entity name');
table.text('entity_kind').notNullable().comment('entity kind');
table.text('entity_namespace').notNullable().comment('entity namespace');
table.text('entity').notNullable().comment('entity string reference');
table
.text('coverage')
.notNullable()