Licence Manager

New version

Create licence

POST/{lm_mount_path}/licences
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
productstring (uuid)
termsstring (uuid)
Response

OK

Request
const response = await fetch('/{lm_mount_path}/licences', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

List licences

GET/{lm_mount_path}/licences/
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Query parameters
Response

OK

Body
any
Request
const response = await fetch('/{lm_mount_path}/licences/?list=true', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Delete licence

DELETE/{lm_mount_path}/licences/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

empty body

Request
const response = await fetch('/{lm_mount_path}/licences/{uuid}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Read licence

GET/{lm_mount_path}/licences/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

OK

Request
const response = await fetch('/{lm_mount_path}/licences/{uuid}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Update licence

POST/{lm_mount_path}/licences/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
productstring (uuid)
termsstring (uuid)
historyarray of object
Response

OK

Request
const response = await fetch('/{lm_mount_path}/licences/{uuid}', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

Poll licence

GET/{lm_mount_path}/poll
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Response

OK

Request
const response = await fetch('/{lm_mount_path}/poll', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Create product

POST/{lm_mount_path}/products
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
Response

OK

Request
const response = await fetch('/{lm_mount_path}/products', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

List products

GET/{lm_mount_path}/products/
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Query parameters
Response

OK

Body
any
Request
const response = await fetch('/{lm_mount_path}/products/?list=true', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Delete product

DELETE/{lm_mount_path}/products/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

empty body

Request
const response = await fetch('/{lm_mount_path}/products/{uuid}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Read product

GET/{lm_mount_path}/products/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

OK

Request
const response = await fetch('/{lm_mount_path}/products/{uuid}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Update product

POST/{lm_mount_path}/products/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
Response

OK

Request
const response = await fetch('/{lm_mount_path}/products/{uuid}', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

Create terms

POST/{lm_mount_path}/terms
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
configurationobject
Response

OK

Request
const response = await fetch('/{lm_mount_path}/terms', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

List terms

GET/{lm_mount_path}/terms/
Path parameters
lm_mount_path*string

Path that the backend was mounted at

Query parameters
Response

OK

Body
any
Request
const response = await fetch('/{lm_mount_path}/terms/?list=true', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Delete terms

DELETE/{lm_mount_path}/terms/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

empty body

Request
const response = await fetch('/{lm_mount_path}/terms/{uuid}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Read terms

GET/{lm_mount_path}/terms/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Response

OK

Request
const response = await fetch('/{lm_mount_path}/terms/{uuid}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Update terms

POST/{lm_mount_path}/terms/{uuid}
Path parameters
uuid*string (uuid)
lm_mount_path*string

Path that the backend was mounted at

Body
namestring
descriptionstring
createdstring
configurationobject
Response

OK

Request
const response = await fetch('/{lm_mount_path}/terms/{uuid}', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

Current version

Read licences

GET/{licence_mount_path}/licence
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Response

OK

Body
productsarray of object
Request
const response = await fetch('/{licence_mount_path}/licence', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "products": []
}

Create a licence

POST/{licence_mount_path}/licence
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Body
product*string
expiration*number
Response

OK

Body
licencestring
Request
const response = await fetch('/{licence_mount_path}/licence', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "product": "text",
      "expiration": 0
    }),
});
const data = await response.json();
Response
{
  "licence": "text"
}

Delete a licence

DELETE/{licence_mount_path}/licence
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Body
uuid*string
Response

empty body

Request
const response = await fetch('/{licence_mount_path}/licence', {
    method: 'DELETE',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "uuid": "text"
    }),
});
const data = await response.json();

Check a licence

GET/{licence_mount_path}/licence/check
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Body
licence*string
Response

OK

Body
timenumber
productstring
descriptionstring
Request
const response = await fetch('/{licence_mount_path}/licence/check', {
    method: 'GET',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "licence": "text"
    }),
});
const data = await response.json();
Response
{
  "time": 0,
  "product": "text",
  "description": "text"
}

List logs

GET/{licence_mount_path}/log/
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Query parameters
Response

OK

Body
any
Request
const response = await fetch('/{licence_mount_path}/log/?list=true', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Read logs from a day

GET/{licence_mount_path}/log/{date}
Path parameters
date*string
licence_mount_path*string

Path that the backend was mounted at

Response

OK

Body
entriesarray of object
Request
const response = await fetch('/{licence_mount_path}/log/{date}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "entries": []
}

Read products

GET/{licence_mount_path}/product
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Response

OK

Body
productsarray of object
Request
const response = await fetch('/{licence_mount_path}/product', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "products": []
}

Create a product

POST/{licence_mount_path}/product
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Body
description*string
uuidstring
Response

OK

Body
productstring
Request
const response = await fetch('/{licence_mount_path}/product', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "description": "text"
    }),
});
const data = await response.json();
Response
{
  "product": "text"
}

Delete a product

DELETE/{licence_mount_path}/product
Path parameters
licence_mount_path*string

Path that the backend was mounted at

Body
uuid*string
Response

empty body

Request
const response = await fetch('/{licence_mount_path}/product', {
    method: 'DELETE',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "uuid": "text"
    }),
});
const data = await response.json();

Last updated