Skip to content

add a method to get the task endpoint #729

Open
@tacman

Description

@tacman

There is a method in the client index that returns the index endpoint.

I would like a similar method for the task endpoint, although I'd prefer that the method name be more explicit. But I'd be okay with just having access to it.

$taskApi = $client->getTasksEndpoint();
$taskApi->get($taskUid);

In short, I'd like a way to access Tasks in the HandlesTasks trait.

    protected Tasks $tasks; /* access this from the application */

    public function getTask($uid): array
    {
        return $this->tasks->get($uid);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions