import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
activitiesCreateNewActivity | POST /activities/create | /activities/create [POST] |
activitiesDeleteSpecificActivity | POST /activities/{activity}/delete | /activities/{activity}/delete [POST] |
activitiesSnapshot | GET /activities | /activities [GET] |
Activity activitiesCreateNewActivity(transferables, seededActivity)
/activities/create [POST]
This will create a new Activity.
import 'package:pieces_os_client/api.dart';
final api_instance = ActivitiesApi();
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 seededActivity = SeededActivity(); // SeededActivity |
try {
final result = api_instance.activitiesCreateNewActivity(transferables, seededActivity);
print(result);
} catch (e) {
print('Exception when calling ActivitiesApi->activitiesCreateNewActivity: $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] |
seededActivity | SeededActivity | [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]
activitiesDeleteSpecificActivity(activity)
/activities/{activity}/delete [POST]
This will delete a specific activity. important note: if we delete an activity: that is going to be a generic or a specific/ we will also delete its counter part i.e the specific. and vise versa, this ensures that the references are always cleaned.
import 'package:pieces_os_client/api.dart';
final api_instance = ActivitiesApi();
final activity = activity_example; // String | This is a specific activity uuid.
try {
api_instance.activitiesDeleteSpecificActivity(activity);
} catch (e) {
print('Exception when calling ActivitiesApi->activitiesDeleteSpecificActivity: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
activity | String | This is a specific activity uuid. |
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]
Activities activitiesSnapshot(transferables, pseudo)
/activities [GET]
This will get a snapshot of all of the activities
import 'package:pieces_os_client/api.dart';
final api_instance = ActivitiesApi();
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 pseudo = true; // bool | This is helper boolean that will give you the ability to also include your pseudo assets, we will always default to false.
try {
final result = api_instance.activitiesSnapshot(transferables, pseudo);
print(result);
} catch (e) {
print('Exception when calling ActivitiesApi->activitiesSnapshot: $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] |
pseudo | bool | This is helper boolean that will give you the ability to also include your pseudo assets, we will always default to false. | [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]