0.5.0 • Published 4 years ago

@plasma-platform/service-licenses v0.5.0

Weekly downloads
36
License
CC-BY-4.0
Repository
gitlab
Last release
4 years ago

version nextVersion downloads license dependency


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

Short documentation

Table of Contents

LicensesService

Users Micro Service API

Parameters

getLicenseById

Licenses - Get license by id with locale

Examples

Get license by Id

(async () => {
  const licenses = new LicensesService('//service-licenses.templatemonsterdev.com/api/v1/');
  const licenseData = await licenses.getLicenseById(5);
})();

Returns license license data

getLicensesByIds

Licenses - Get licenses by ids with locale

Examples

Get license by Ids

(async () => {
  const licenses = new LicensesService('//service-licenses.templatemonsterdev.com/api/v1/');
  const licenseData = await licenses.getLicensesByIds([5,3,4]);
})();

Returns license license data

searchLicenses

Licenses - Search licenses

Parameters

  • params object
    • params.locale string locale
    • params.filter string filters for license search (e.g ?filter=name eq 'david'&$orderBy=hireDate)

Examples

Search licenses

(async () => {
  const service = new LicensesService(serviceUrl);
  const licensesList = await service.searchLicenses(params);
})();

Returns array licenses list

0.5.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago