@plasma-platform/tm-service-navigations

2.0.1 • Public • Published

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');
})();

Package Sidebar

Install

npm i @plasma-platform/tm-service-navigations

Weekly Downloads

0

Version

2.0.1

License

CC-BY-4.0

Unpacked Size

20.3 kB

Total Files

4

Last publish

Collaborators

  • alienmonster
  • ch-tm
  • viram