import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
anchorRename | POST /anchor/{anchor}/rename | /anchor/{anchor}/rename [POST] |
anchorScoresIncrement | POST /anchor/{anchor}/scores/increment | '/anchor/{anchor}/scores/increment' [POST] |
anchorSpecificAnchorSnapshot | GET /anchor/{anchor} | /anchor/{anchor} [GET] |
anchorUpdate | POST /anchor/update | /anchor/update [POST] |
Anchor anchorRename(anchor, transferables)
/anchor/{anchor}/rename [POST]
This will rename a specific anchor.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
final result = api_instance.anchorRename(anchor, transferables);
print(result);
} catch (e) {
print('Exception when calling AnchorApi->anchorRename: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
anchor | String | This is the specific uuid of an anchor. | |
transferables | bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
anchorScoresIncrement(anchor, seededScoreIncrement)
'/anchor/{anchor}/scores/increment' [POST]
This will take in a SeededScoreIncrement and will increment the material relative to the incoming body.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
final seededScoreIncrement = SeededScoreIncrement(); // SeededScoreIncrement |
try {
api_instance.anchorScoresIncrement(anchor, seededScoreIncrement);
} catch (e) {
print('Exception when calling AnchorApi->anchorScoresIncrement: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
anchor | String | This is the specific uuid of an anchor. | |
seededScoreIncrement | SeededScoreIncrement | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Anchor anchorSpecificAnchorSnapshot(anchor, transferables)
/anchor/{anchor} [GET]
This will get a snapshot of a single anchor.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
final result = api_instance.anchorSpecificAnchorSnapshot(anchor, transferables);
print(result);
} catch (e) {
print('Exception when calling AnchorApi->anchorSpecificAnchorSnapshot: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
anchor | String | This is the specific uuid of an anchor. | |
transferables | bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Anchor anchorUpdate(transferables, anchor)
/anchor/update [POST]
This will update a specific anchor.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final anchor = Anchor(); // Anchor |
try {
final result = api_instance.anchorUpdate(transferables, anchor);
print(result);
} catch (e) {
print('Exception when calling AnchorApi->anchorUpdate: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
transferables | bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
anchor | Anchor | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]