@octoguide/api-utils

<dl> <dt><a href="#endpoint">endpoint</a></dt> <dd><p>return the api config entries for the name passed</p> </dd> <dt><a href="#replaceEndpointPathParams">replaceEndpointPathParams</a></dt> <dd><p>replace all the endpoint path parameters with their corres

Usage no npm install needed!

<script type="module">
  import octoguideApiUtils from 'https://cdn.skypack.dev/@octoguide/api-utils';
</script>

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 *