Skip to content

Files

Latest commit

May 20, 2025
2213f81 · May 20, 2025

History

History
executable file
·
49 lines (26 loc) · 1.43 KB
·

README.md

File metadata and controls

executable file
·
49 lines (26 loc) · 1.43 KB
·

Blueprint.Api

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.

Database Migrations

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

Permissions

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