import 'package:knowgo/api.dart';
All URIs are relative to https://api.adaptant.io/v1
Method | HTTP request | Description |
---|---|---|
addService | POST /services | Register a new KnowGo platform service |
deleteServiceEndpoint | DELETE /services/{serviceName}/{endpoint} | DELETE pass-through for service-specific endpoint |
disableServiceByUserId | DELETE /users/{userId}/services/{serviceName} | Disable a service for a specific user |
enableServiceByUserId | POST /users/{userId}/services/{serviceName} | Enable a service for a specific user |
getServiceDefinition | GET /services/{serviceName} | Lookup the service definition for a specific service |
getServiceEndpoint | GET /services/{serviceName}/{endpoint} | GET pass-through for service-specific endpoint |
listServices | GET /services | Return a list of available KnowGo platform services |
listServicesByUserId | GET /users/{userId}/services | Return a list of services for a specific user |
postServiceEndpoint | POST /services/{serviceName}/{endpoint} | POST pass-through for service-specific endpoint |
removeServiceDefinition | DELETE /services/{serviceName} | Deregister a KnowGo platform service |
updateServiceDefinition | PUT /services/{serviceName} | Update the service definition for a specific service |
updateServiceEndpoint | PUT /services/{serviceName}/{endpoint} | PUT pass-through for service-specific endpoint |
addService(serviceDefinition)
Register a new KnowGo platform service
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceDefinition = ServiceDefinition(); // ServiceDefinition | KnowGo Service Definition
try {
api_instance.addService(serviceDefinition);
} catch (e) {
print("Exception when calling ServicesApi->addService: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceDefinition | ServiceDefinition | KnowGo Service Definition |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: application/json, application/xml
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteServiceEndpoint(serviceName, endpoint)
DELETE pass-through for service-specific endpoint
Passes through a DELETE request to dynamically created service endpoints. A list of endpoints provided by a specific service are available through the Service Definition, returned by performing a GET on the service endpoint '/services/{serviceName}'.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service
var endpoint = endpoint_example; // String | Service-specific REST API endpoint
try {
api_instance.deleteServiceEndpoint(serviceName, endpoint);
} catch (e) {
print("Exception when calling ServicesApi->deleteServiceEndpoint: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service | [default to null] |
endpoint | String | Service-specific REST API endpoint | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
disableServiceByUserId(userId, serviceName)
Disable a service for a specific user
Given an authenticated user, disable a specific service that the user no longer wishes to use.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var userId = 789; // int | ID of user that needs to be fetched
var serviceName = serviceName_example; // String | Name of service to disable
try {
api_instance.disableServiceByUserId(userId, serviceName);
} catch (e) {
print("Exception when calling ServicesApi->disableServiceByUserId: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
userId | int | ID of user that needs to be fetched | [default to null] |
serviceName | String | Name of service to disable | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
enableServiceByUserId(userId, serviceName)
Enable a service for a specific user
Given an authenticated user, enable a specific service that the user wishes to use.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var userId = 789; // int | ID of user that needs to be fetched
var serviceName = serviceName_example; // String | Name of service to enable
try {
api_instance.enableServiceByUserId(userId, serviceName);
} catch (e) {
print("Exception when calling ServicesApi->enableServiceByUserId: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
userId | int | ID of user that needs to be fetched | [default to null] |
serviceName | String | Name of service to enable | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServiceDefinition getServiceDefinition(serviceName)
Lookup the service definition for a specific service
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service to look up
try {
var result = api_instance.getServiceDefinition(serviceName);
print(result);
} catch (e) {
print("Exception when calling ServicesApi->getServiceDefinition: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service to look up | [default to null] |
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getServiceEndpoint(serviceName, endpoint)
GET pass-through for service-specific endpoint
Passes through a GET request to dynamically created service endpoints. A list of endpoints provided by a specific service are available through the Service Definition, returned by performing a GET on the service endpoint '/services/{serviceName}'.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service
var endpoint = endpoint_example; // String | Service-specific REST API endpoint
try {
api_instance.getServiceEndpoint(serviceName, endpoint);
} catch (e) {
print("Exception when calling ServicesApi->getServiceEndpoint: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service | [default to null] |
endpoint | String | Service-specific REST API endpoint | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List listServices()
Return a list of available KnowGo platform services
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
try {
var result = api_instance.listServices();
print(result);
} catch (e) {
print("Exception when calling ServicesApi->listServices: $e\n");
}
This endpoint does not need any parameter.
List
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List listServicesByUserId(userId)
Return a list of services for a specific user
Given an authenticated user, return a list of services that they have opted in to. This will include a subset of the '/services' result, and will persist regardless of the availability or lack of availability of a given service.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var userId = 789; // int | ID of user that needs to be fetched
try {
var result = api_instance.listServicesByUserId(userId);
print(result);
} catch (e) {
print("Exception when calling ServicesApi->listServicesByUserId: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
userId | int | ID of user that needs to be fetched | [default to null] |
List
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postServiceEndpoint(serviceName, endpoint)
POST pass-through for service-specific endpoint
Passes through a POST request to dynamically created service endpoints. A list of endpoints provided by a specific service are available through the Service Definition, returned by performing a GET on the service endpoint '/services/{serviceName}'.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service
var endpoint = endpoint_example; // String | Service-specific REST API endpoint
try {
api_instance.postServiceEndpoint(serviceName, endpoint);
} catch (e) {
print("Exception when calling ServicesApi->postServiceEndpoint: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service | [default to null] |
endpoint | String | Service-specific REST API endpoint | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeServiceDefinition(serviceName)
Deregister a KnowGo platform service
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service to delete
try {
api_instance.removeServiceDefinition(serviceName);
} catch (e) {
print("Exception when calling ServicesApi->removeServiceDefinition: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service to delete | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateServiceDefinition(serviceName, serviceDefinition)
Update the service definition for a specific service
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service to update
var serviceDefinition = ServiceDefinition(); // ServiceDefinition | KnowGo Service Definition
try {
api_instance.updateServiceDefinition(serviceName, serviceDefinition);
} catch (e) {
print("Exception when calling ServicesApi->updateServiceDefinition: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service to update | [default to null] |
serviceDefinition | ServiceDefinition | KnowGo Service Definition |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: application/json, application/xml
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateServiceEndpoint(serviceName, endpoint)
PUT pass-through for service-specific endpoint
Passes through a PUT request to dynamically created service endpoints. A list of endpoints provided by a specific service are available through the Service Definition, returned by performing a GET on the service endpoint '/services/{serviceName}'.
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServicesApi();
var serviceName = serviceName_example; // String | Service ID of service
var endpoint = endpoint_example; // String | Service-specific REST API endpoint
try {
api_instance.updateServiceEndpoint(serviceName, endpoint);
} catch (e) {
print("Exception when calling ServicesApi->updateServiceEndpoint: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
serviceName | String | Service ID of service | [default to null] |
endpoint | String | Service-specific REST API endpoint | [default to null] |
void (empty response body)
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]