name('Project') ->model(Project::class) ->expectsJsonData() ->transformer(ModelTransformer::class) ->itemKey('project') ->collectionKey('projects') ->deny(AclRoles::UNAUTHORIZED) ->handler(CrudResourceController::class) ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) ->exampleRequest([ 'JSON data' => [ 'required' => [ "name" => "123", "ga_view_id" => "123", "user_id" => "1" ], 'optional' => [] ], ]) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()); } }