@plasma-platform/tm-service-navigations

Navigastions Service API

Usage no npm install needed!

<script type="module">
  import plasmaPlatformTmServiceNavigations from 'https://cdn.skypack.dev/@plasma-platform/tm-service-navigations';
</script>

README

Navigations Service API

Documentation

Table of Contents

NavigationsService

Navigations Micro Service API

Parameters

  • url string service url
  • token (string | null) user access tocken if available (optional, default null)

getNavigations

Get navigations list

Parameters

  • args Object options
    • args.tags string navigation tags
    • args.locale string navigation locale

Examples

Get all navigations

(async () => {
  const Navigations = new NavigationsService('//api.templatemonster.com/navigations/v1/');
  const navigation = await Navigations.getNavigations();
})();

getNavigationByCode

Get specific navigation by code

Parameters

  • args Object options
    • args.code string navigation code
    • args.locale string navigation locale

Examples

Get specific navigation by code

(async () => {
  const Navigations = new NavigationsService('//api.templatemonster.com/navigations/v1/');
  const navigation = await Navigations.getNavigationByCode('header_top');
})();