get('/Users', ListUsersAction::class)->setName('users.list'); $app->get('/Users/{id}', GetUserAction::class)->setName('users.get'); $app->post('/Users', CreateUserAction::class)->setName('users.create'); $app->put('/Users/{id}', UpdateUserAction::class)->setName('users.update'); $app->delete('/Users/{id}', DeleteUserAction::class)->setName('users.delete'); } // Group routes if (in_array('Group', $supportedResourceTypes)) { $app->get('/Groups', ListGroupsAction::class)->setName('groups.list'); $app->get('/Groups/{id}', GetGroupAction::class)->setName('groups.get'); $app->post('/Groups', CreateGroupAction::class)->setName('groups.create'); $app->put('/Groups/{id}', UpdateGroupAction::class)->setName('groups.update'); $app->delete('/Groups/{id}', DeleteGroupAction::class)->setName('groups.delete'); } if (in_array('Domain', $supportedResourceTypes)) { $app->get('/Domains', ListDomainsAction::class)->setName('domains.list'); $app->get('/Domains/{id}', GetDomainAction::class)->setName('domains.get'); $app->post('/Domains', CreateDomainAction::class)->setName('domains.create'); $app->put('/Domains/{id}', UpdateDomainAction::class)->setName('domains.update'); $app->delete('/Domains/{id}', DeleteDomainAction::class)->setName('domains.delete'); } // ServiceProvider routes $app->get('/ResourceTypes', ListResourceTypesAction::class)->setName('resourceTypes.list'); $app->get('/Schemas', ListSchemasAction::class)->setName('schemas.list'); $app->get( '/ServiceProviderConfig', ListServiceProviderConfigurationsAction::class )->setName('serviceProviderConfigs.list'); };