@plasma-platform/tm-service-navigations
v2.0.1
Published
Navigastions Service API
Downloads
8
Readme
Navigations Service API
Documentation
Table of Contents
NavigationsService
Navigations Micro Service API
Parameters
url
string service urltoken
(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');
})();