Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@octoguide/api-utils

cpsolutions286UNLICENSED1.0.9TypeScript support: included

endpoint

return the api config entries for the name passed

replaceEndpointPathParams

replace all the endpoint path parameters with their corres

readme

Constants

endpoint

return the api config entries for the name passed

replaceEndpointPathParams

replace all the endpoint path parameters with their corresponding path parameter values

endpoint

return the api config entries for the name passed

Kind: global constant

Param Type Description
name string the api config entry to retrieve
config Object the object that contains {apiEndpoints: {endpoints: {apiname: {method: .., name: .., url: ..}} }}

replaceEndpointPathParams

replace all the endpoint path parameters with their corresponding path parameter values

Kind: global constant

Param Type
endpoint *
pathParams *
pathParamValues *