All URIs are relative to http://http:/v1
Method | HTTP request | Description |
---|---|---|
entitlementsAllowDelete | DELETE /entitlements/allow | Remove an entitlement |
entitlementsAllowGet | GET /entitlements/allow | Check if global entitlements are enabled |
entitlementsAllowPost | POST /entitlements/allow | Add an entitlement for all users |
entitlementsAllowUuidPost | POST /entitlements/allow/{uuid} | Grant product access to a customer |
entitlementsFreePassGet | GET /entitlements/free-pass | Verify given free pass hash |
entitlementsGet | GET /entitlements | List all entitlements |
entitlementsGlobalGet | GET /entitlements/global | Lists all past and future global entitlements |
List<Object> entitlementsAllowDelete(body, authUser, authorization)
Remove an entitlement
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
Long body = 56L; // Long |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<Object> result = apiInstance.entitlementsAllowDelete(body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsAllowDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Long | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
List<Object>
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
List<PersistedEntitlementAccess> entitlementsAllowGet(authUser, authorization, ip, paper)
Check if global entitlements are enabled
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
UUID authUser = null; // UUID |
String authorization = null; // String |
String ip = null; // String |
String paper = null; // String |
try {
List<PersistedEntitlementAccess> result = apiInstance.entitlementsAllowGet(authUser, authorization, ip, paper);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsAllowGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] | |
ip | String | [optional] [default to null] | |
paper | String | [optional] [default to null] [enum: HBL, ON, VN, HT, JUNIOR, FORUM, LS] |
List<PersistedEntitlementAccess>
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
List<Object> entitlementsAllowPost(body, authUser, authorization)
Add an entitlement for all users
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
EntitlementAccess body = new EntitlementAccess(); // EntitlementAccess |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<Object> result = apiInstance.entitlementsAllowPost(body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsAllowPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | EntitlementAccess | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
List<Object>
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
List<Object> entitlementsAllowUuidPost(uuid, body, authUser, authorization)
Grant product access to a customer
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
UUID uuid = null; // UUID |
EntitlementAccess body = new EntitlementAccess(); // EntitlementAccess |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<Object> result = apiInstance.entitlementsAllowUuidPost(uuid, body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsAllowUuidPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uuid | UUID | [default to null] | |
body | EntitlementAccess | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
List<Object>
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
Boolean entitlementsFreePassGet(authUser, authorization, freePassHash)
Verify given free pass hash
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
UUID authUser = null; // UUID |
String authorization = null; // String |
String freePassHash = null; // String |
try {
Boolean result = apiInstance.entitlementsFreePassGet(authUser, authorization, freePassHash);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsFreePassGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] | |
freePassHash | String | [optional] [default to null] |
Boolean
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
Map<String, List<String>> entitlementsGet()
List all entitlements
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
try {
Map<String, List<String>> result = apiInstance.entitlementsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsGet");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
List<PersistedEntitlementAccess> entitlementsGlobalGet(authUser, authorization)
Lists all past and future global entitlements
// Import classes:
//import org.openapitools.client.api.EntitlementsApi;
EntitlementsApi apiInstance = new EntitlementsApi();
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<PersistedEntitlementAccess> result = apiInstance.entitlementsGlobalGet(authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EntitlementsApi#entitlementsGlobalGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
List<PersistedEntitlementAccess>
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8