- pact.HasAdminRecordActions with AdminRecordAction (Applies, Run)
- config_form.yaml recordActions, compiled fail-loud
- show response meta.actions lists the permitted actions that apply
- POST .../{controller}/{id}/actions/{action}: record loaded and locked
through the form scope; 404 out of scope, 409 when it does not apply
- RecordActions.vue with confirm and request flow (mounted by plan 02)
- roster fixture, smoke tests, OpenAPI, TS types, READMEs, docs
11 lines
283 B
JSON
11 lines
283 B
JSON
{
|
|
"data": { "id": 1, "name": "Ada Lovelace", "email": "ada@example.test" },
|
|
"meta": {
|
|
"labels": {},
|
|
"actions": [
|
|
{ "name": "activate", "label": "Activate" },
|
|
{ "name": "reinstate", "label": "Reinstate", "confirm": "Lift the ban on this person?" }
|
|
]
|
|
}
|
|
}
|