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

                
{
  "validUntil" : 1451649601000
}
                
              

POST /license/upload

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

                
{
  "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

                
{ }
                
              

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

                
{
  "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

                
{ }