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, defaultnull
)
getNavigations
Get navigations list
Parameters
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
Examples
Get specific navigation by code
(async () => {
const Navigations = new NavigationsService('//api.templatemonster.com/navigations/v1/');
const navigation = await Navigations.getNavigationByCode('header_top');
})();