Existing Controller Contexts
As explained in the Context section, contexts are used to execute your business logic and validations rules.
Typically, each context is associated with an action/endpoint and can be used by certain types of controllers.
See bellow the existing contexts, as well as the types of controllers, validations and business rules allowed for each one.
Create
It is used to create a new record in the database. Related to the POST HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: EntityValidation; BlankValidation Applicable Rule Types: EntityRule; WriteOperationRule; BlankRule
Update
It is used to update all the properties of an entity in the database. Related to the PUT HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: EntityValidation; BlankValidation Applicable Rule Types: EntityRule; WriteOperationRule; BlankRule
UpdatePartial
It is used to update specifics properties of an entity in the database. Related to the PATCH HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: EntityValidation; BlankValidation Applicable Rule Types: EntityRule; WriteOperationRule; BlankRule
Delete
It is used to remove one record from the database. Related to the DELETE HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: BlankValidation Applicable Rule Types: WriteOperationRule; BlankRule
ReadAll
It is used to retrieve all records of an entity in the database. Related to the GET HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: BlankValidation Applicable Rule Types: ReadOperationRule; BlankRule
ReadByKey
It is used retrieve one record in the database using an identifier (id). Related to the GET HTTP verb.
Applicable Controller Types: CRUD Applicable Validation Types: BlankValidation Applicable Rule Types: ReadOperationRule; BlankRule