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'); } // 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'); // JWT $app->get('/jwt', GenerateJWTAction::class)->setName('jwt.generate'); };