public static function crud($prefix, $name = null)
    {
        return self::factory($prefix, $name)
            ->endpoint(ApiEndpoint::all())
            ->endpoint(ApiEndpoint::find())
            ->endpoint(ApiEndpoint::create())
            ->endpoint(ApiEndpoint::update())
            ->endpoint(ApiEndpoint::remove());
    }
public static function crud($prefix, $name = null)
    {
        return self::factory($prefix, $name)
            ->endpoint(ApiEndpoint::all())
            ->endpoint(ApiEndpoint::find())
            ->endpoint(ApiEndpoint::create())
            ->endpoint(ApiEndpoint::update())
            ->endpoint(ApiEndpoint::remove());
    }
public static function crud ( $ prefix , $ name = null ) { return self :: factory ( $ prefix , $ name ) -> endpoint ( ApiEndpoint :: all ( ) ) -> endpoint ( ApiEndpoint :: find ( ) ) -> endpoint ( ApiEndpoint :: create ( ) ) -> endpoint ( ApiEndpoint :: update ( ) ) -> endpoint ( ApiEndpoint :: remove ( ) ) ; }
Returns resource with default values & all, find, create, update and delete endpoints pre-configured

@param string $prefix Prefix for the resource (e.g. /user)
@param string $name Name for the resource (e.g. users) (optional)

@return static
Returns resource with default values & all find create update and delete endpoints pre - configured