Add users and their corresponding activation codes in the users section
"Users": [
{
"Email": "[email protected]",
"Password": "123456!",
"ActivationCode": "KHPZ-2364-M7H1-7TA9"
},
{
"Email": "[email protected]",
"Password": "123456!",
"ActivationCode": "ZQ7G-8779-H1XE-KLM1"
}
],
- Add new product with edition and offering
- Add features with the following keys: Calendar, ProjectPlanning, Collaboration, Reporting, ReportingAdvanced, Security
- Add string attributes with following keys: CompanyName, PlanName
- Add consumption token with key: CT1
- Add element pool with key: EP1
- Add floating feature with key: FF1
- Add entitlement and activate if necessary
Open appsettings.json and set following parameters in Zentitle section:
"Zentitle": {
"ClientId": "{Your api client ID}",
"ClientSecret": "{Your API Client Secret}",
"AuthServiceUrl": "{Zentitle Auth Url}",
"TenantId": "{Your Tenant ID}}",
"ZentitleUrl": "{Zentitle API URL}",
"Entitlement": {
"ProductId": "{Your Product ID}"
}
}
We use NSwag to generate Management API client.
The Zentitle2 Management API documentation page contains the current openAPI specification file. Documentation link can be found in Zentittle 2 under Account > API Credentials in Management API Details box.
Download openAPI specification file and save it in the Zentitle/nswag folder under the name openapi.json
To generate client run following command from Zentitle/nswag directory
nswag run
It is reading the OpenAPI specification from API running locally (!) and creating client classes in ZentitleClient.cs file.
To install nswag run following command
dotnet tool install -g NSwag.ConsoleCore