import 'package:dart_sdk/api.dart';All URIs are relative to https://api.techcell.cloud
| Method | HTTP request | Description |
|---|---|---|
| attributesControllerCreateAttribute | POST /api/attributes | |
| attributesControllerDeleteAttribute | DELETE /api/attributes/{id} | |
| attributesControllerGetAttribute | GET /api/attributes/{id} | |
| attributesControllerGetAttributes | GET /api/attributes | |
| attributesControllerUpdateAttribute | PATCH /api/attributes/{id} |
attributesControllerCreateAttribute(createAttributeDto)
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AttributesApi();
final createAttributeDto = CreateAttributeDto(); // CreateAttributeDto |
try {
api_instance.attributesControllerCreateAttribute(createAttributeDto);
} catch (e) {
print('Exception when calling AttributesApi->attributesControllerCreateAttribute: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| createAttributeDto | CreateAttributeDto |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributesControllerDeleteAttribute(id)
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AttributesApi();
final id = 66164ef6c4165e4833949722; // String |
try {
api_instance.attributesControllerDeleteAttribute(id);
} catch (e) {
print('Exception when calling AttributesApi->attributesControllerDeleteAttribute: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Attribute attributesControllerGetAttribute(id)
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AttributesApi();
final id = 66164ef6c4165e4833949722; // String |
try {
final result = api_instance.attributesControllerGetAttribute(id);
print(result);
} catch (e) {
print('Exception when calling AttributesApi->attributesControllerGetAttribute: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttributeInfinityPaginationResult attributesControllerGetAttributes(page, limit, filters, sort)
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AttributesApi();
final page = 8.14; // num |
final limit = 8.14; // num |
final filters = filters_example; // String | JSON string of FilterAttributeDto
final sort = sort_example; // String | JSON string of SortAttributeDto
try {
final result = api_instance.attributesControllerGetAttributes(page, limit, filters, sort);
print(result);
} catch (e) {
print('Exception when calling AttributesApi->attributesControllerGetAttributes: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| page | num | [optional] | |
| limit | num | [optional] | |
| filters | String | JSON string of FilterAttributeDto | [optional] |
| sort | String | JSON string of SortAttributeDto | [optional] |
AttributeInfinityPaginationResult
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
attributesControllerUpdateAttribute(id, updateAttributeDto)
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AttributesApi();
final id = 66164ef6c4165e4833949722; // String |
final updateAttributeDto = UpdateAttributeDto(); // UpdateAttributeDto |
try {
api_instance.attributesControllerUpdateAttribute(id, updateAttributeDto);
} catch (e) {
print('Exception when calling AttributesApi->attributesControllerUpdateAttribute: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| updateAttributeDto | UpdateAttributeDto |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]