@plasma-platform/service-navigations

2.3.0 • Public • Published

version nextVersion downloads license dependency


Full documentation
install:
npm i @plasma-platform/service-navigations -S

Short 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/service-navigations

Weekly Downloads

3

Version

2.3.0

License

CC-BY-4.0

Unpacked Size

19.2 kB

Total Files

6

Last publish

Collaborators

  • alienmonster
  • ch-tm
  • viram