Libraries v5.2.0
    Preparing search index...

    Function endpointPath

    • Build a relative pathname from an endpoint's contract. Parameters are validated and encoded individually, so reserved characters cannot introduce URL syntax. Query strings and origins belong to the caller. Throws for invalid parameters.

      Type Parameters

      • E extends AnyEndpoint

      Parameters

      Returns string

      endpointPath(api.files.content, { id: 'report 1' })