tpapibuilder

An Api Url Builder for TargetProcess

Usage no npm install needed!

<script type="module">
  import tpapibuilder from 'https://cdn.skypack.dev/tpapibuilder';
</script>

README

TpApiBuilder

An Api Url Builder for TargetProcess

Usage

var bugApiUrl = new TPApiBuilder
                .bug()
                .take(10)
                .where('Team.id == 11388')
                .andWhere('EntityState.IsFinal != true')
                .select('id,name')
                .render();
                

Methods

constructor

For privates instances you might pass the domain as parameter

var bugApiModel = new TPApiBuilder(domain);

render

Renders the api to string

var apiUrl = new TPApiBuilder(domain).render();

where andWhere

select

take orderby