Admin UI
Routes and Actions

Routes and Actions

Actions

Based on conventions the Admin UI offers views for

actionviewurl
indexlist or table of entity data/[prefix]/[entity-path]
showdetail view of entity data/[prefix]/[entity-path]/show/[entity-id]
editedit view of entity data/[prefix]/[entity-path]/edit/[entity-id]
createcreate view of entity data/[prefix]/[entity-path]/new

The placeholders are resolved as

placeholderconfigurationdefault value
prefixadminConfig.adminLinkPrefixadmin
pathEntityConfig.pathplural of entity-name, lower-letters, dasherized
e.g. entity: VehicleFleet path: vehicle-fleets

Entity Relations

assocTo

actiondisplay
indexcolumn with the indication data as link to the show view of the related entity item
showrow with the indication data as link to the show view of the related entity item
editdropdown with the indication data of all items of the related entity
createdropdown with the indication data of all items of the related entity

assocToMany

actiondisplay
indexcolumn with comma-separated indication datas as link to the show view of the related entity item(s)
showrow with the indication data as link to the show view of the related entity item(s)
editmultiselect with the indication data of all items of the related entity
createmultiselect with the indication data of all items of the related entity

assocFrom

actiondisplay
indexnot shown
showtable with all related entity items, link to child-items
editnot shown
createnot shown

Parent - Child

When you follow an assocFrom relationship from the show view of an entity - the selected entity item is shown as the child of the origin entity item.

The urls will look like

actionviewurl
indexwithout the assocTo column/[prefix]/[parent-entity-path]/[parent-entity-id]/[entity-path]
showwithout the assocTo row/[prefix]/[parent-entity-path]/[parent-entity-id]/[entity-path]/show/[entity-id]
editwith disabled assocTo/[prefix]/[parent-entity-path]/[parent-entity-id]/[entity-path]/edit/[entity-id]
createwith disabled assocTo/[prefix]/[parent-entity-path]/[parent-entity-id]/[entity-path]/new

The breadcrumb navigation will also include the path to the parent item.

Example

Given this assocTo - assocFrom relationship between two entities

entity:
  VehiceFleet: 
    attributes:
      name: Key
    assocFrom: Car
 
  Car: 
    attribute:
      license: Key
      brand: String
    assocTo: VehiceFleet

At the action

/admin/vehicle-fleets/show/12345

will be (besides the values of the VehiceFleet item with the id 12345) a table with all Car entity items of the VehiceFleet. If you click on a car item (e.g. 67890), the detail show view of that car item will be shown. But the action will include the VehicleFleet item from which this car was selected as parent.

The URL will be

/admin/vehicle-fleets/12345/cars/show/67890