Skip to content

Provide an AbstractApiProvider to clean up paths #68

@JasonTheAdams

Description

@JasonTheAdams

There are many places where a provider/model sets the various API endpoint paths. Each places concatenates the path and uses things like ltrim(). It's redundant and opens up for simple mistakes. It would be great to have an AbstractApiProvider class (and likely a corresponding provider interface) that is aware of a base URL and has an AbstractApiProvider::url($path) counterpart, which cleans this up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions