This project provides a restful api for the Collaborative Incident Threat Evaluator.
By default, msel.api is available at localhost:4724, with the swagger page at localhost:4724/api/index.html.
When the data model is changed, a new database migration must be created. From the Blueprint.Api directory, run this command to create the new migration:
dotnet ef migrations add <new_migration_name> --project ../Blueprint.Api.Migrations.PostgreSQL/Blueprint.Api.Migrations.PostgreSQL.csproj
Running the app will automatically migrate the database. To Roll back a migration, first update the database to the previous migration
dotnet ef database update <previous_migration_name> --project ../Blueprint.Api.Migrations.PostgreSQL/Blueprint.Api.Migrations.PostgreSQL.csproj
Then remove the migration
dotnet ef migrations remove --project ../Blueprint.Api.Migrations.PostgreSQL/Blueprint.Api.Migrations.PostgreSQL.csproj
SystemAdmin permission required for:
- User admin
- Msel create/delete
Content Developer permission required for:
- ScoringModel create/update/delete
- Msel update
CanIncrementMove required for:
- Msel update
CanSubmit permission required for:
- Submission update for a team
CanModify permission required for:
- Setting SubmissionOption value for a team
Authenticated user has permission to:
- Create a Submission