import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
anchorDisassociateAsset | POST /anchors/{anchor}/assets/delete/{asset} | /anchors/{anchor}/assets/delete/{asset} [POST] |
anchorsCreateNewAnchor | POST /anchors/create | /anchors/create [POST] |
anchorsDeleteSpecificAnchor | POST /anchors/{anchor}/delete | /anchors/{anchor}/delete [POST] |
anchorsSnapshot | GET /anchors | /anchors [GET] |
anchorDisassociateAsset(anchor, asset)
/anchors/{anchor}/assets/delete/{asset} [POST]
This will update both the asset and the anchor reference, that will remove a anchor from an asset(only the references). This will NOT remove the anchor. This will NOT remove the asset. This will only update the references so that they are disconnected from one another.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorsApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
try {
api_instance.anchorDisassociateAsset(anchor, asset);
} catch (e) {
print('Exception when calling AnchorsApi->anchorDisassociateAsset: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
anchor | String | This is the specific uuid of an anchor. | |
asset | String | The id (uuid) of the asset that you are trying to access. |
void (empty response body)
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 anchorsCreateNewAnchor(transferables, seededAnchor)
/anchors/create [POST]
This will create a anchor and attach it to a specific asset(s) This will also ensure the anchor is normalized.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorsApi();
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 seededAnchor = SeededAnchor(); // SeededAnchor |
try {
final result = api_instance.anchorsCreateNewAnchor(transferables, seededAnchor);
print(result);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsCreateNewAnchor: $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] |
seededAnchor | SeededAnchor | [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]
anchorsDeleteSpecificAnchor(anchor)
/anchors/{anchor}/delete [POST]
This will delete a specific anchor!
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorsApi();
final anchor = anchor_example; // String | This is the specific uuid of an anchor.
try {
api_instance.anchorsDeleteSpecificAnchor(anchor);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsDeleteSpecificAnchor: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
anchor | String | This is the specific uuid of an anchor. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Anchors anchorsSnapshot(transferables)
/anchors [GET]
This will get a snapshot of all your anchors.
import 'package:pieces_os_client/api.dart';
final api_instance = AnchorsApi();
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.anchorsSnapshot(transferables);
print(result);
} catch (e) {
print('Exception when calling AnchorsApi->anchorsSnapshot: $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] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]