License Controller Resource

The API allows you to view and upload license.

GET /license

Returns license content.

Response Body
media type data type description
application/json LicenseResponse (JSON) license content

Example

Request
GET /license
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "valid" : true,
  "invalidReason" : "...",
  "props" : {
    "property1" : "...",
    "property2" : "..."
  },
  "propsWithUsage" : {
    "property1" : {
      "maxValue" : "...",
      "availableValue" : "..."
    },
    "property2" : {
      "maxValue" : "...",
      "availableValue" : "..."
    }
  },
  "email" : "...",
  "type" : "...",
  "sendLicenseToEndpointsStatus" : "...",
  "validUntil" : 1451649601000
}
                
              

POST /license/upload

Request Parameters
name type description
agreementFileStream formdata
licenceFileStream formdata
Request Body
media type data type
multipart/form-data (custom)
Response Body
media type data type description
application/json LicenseResponse (JSON)

Example

Request
POST /license/upload
Content-Type: multipart/form-data
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "valid" : true,
  "invalidReason" : "...",
  "props" : {
    "property1" : "...",
    "property2" : "..."
  },
  "propsWithUsage" : {
    "property1" : {
      "maxValue" : "...",
      "availableValue" : "..."
    },
    "property2" : {
      "maxValue" : "...",
      "availableValue" : "..."
    }
  },
  "email" : "...",
  "type" : "...",
  "sendLicenseToEndpointsStatus" : "...",
  "validUntil" : 1451649601000
}
                
              

POST /license/validate

Request Body
media type data type
application/octet-stream object
Response Body
media type data type description
application/json LicenseValidationResponse (JSON)

Example

Request
POST /license/validate
Content-Type: application/octet-stream
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "valid" : true,
  "hasAdditionalAgreement" : true,
  "additionalAgreement" : "..."
}
                
              

POST /license/subscription/extend

Response Body
media type data type description
application/json LicenseResponse (JSON)

Example

Request
POST /license/subscription/extend
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "valid" : true,
  "invalidReason" : "...",
  "props" : {
    "property1" : "...",
    "property2" : "..."
  },
  "propsWithUsage" : {
    "property1" : {
      "maxValue" : "...",
      "availableValue" : "..."
    },
    "property2" : {
      "maxValue" : "...",
      "availableValue" : "..."
    }
  },
  "email" : "...",
  "type" : "...",
  "sendLicenseToEndpointsStatus" : "...",
  "validUntil" : 1451649601000
}
                
              

GET /license/subscription/status

Response Body
media type data type description
application/json LicenseSubscriptionResponse (JSON)

Example

Request
GET /license/subscription/status
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "status" : "FAILED",
  "lastAttempt" : 12345,
  "invalidReason" : "..."
}