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.
endpointPath(api.files.content, { id: 'report 1' }) Copy
endpointPath(api.files.content, { id: 'report 1' })
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.