import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
websitesCreateNewWebsite | POST /websites/create | /websites/create [POST] |
websitesDeleteSpecificWebsite | POST /websites/{website}/delete | /websites/{website}/delete [POST] |
websitesExists | POST /websites/exists | /websites/exists [POST] |
websitesSnapshot | GET /websites | /websites [GET] |
Website websitesCreateNewWebsite(transferables, seededWebsite)
/websites/create [POST]
This will create a website and attach it to a specific asset.
import 'package:pieces_os_client/api.dart';
final api_instance = WebsitesApi();
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 seededWebsite = SeededWebsite(); // SeededWebsite |
try {
final result = api_instance.websitesCreateNewWebsite(transferables, seededWebsite);
print(result);
} catch (e) {
print('Exception when calling WebsitesApi->websitesCreateNewWebsite: $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] |
seededWebsite | SeededWebsite | [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]
websitesDeleteSpecificWebsite(website)
/websites/{website}/delete [POST]
This will delete a specific website!
import 'package:pieces_os_client/api.dart';
final api_instance = WebsitesApi();
final website = website_example; // String | website id
try {
api_instance.websitesDeleteSpecificWebsite(website);
} catch (e) {
print('Exception when calling WebsitesApi->websitesDeleteSpecificWebsite: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
website | String | website id |
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]
ExistingMetadata websitesExists(existentMetadata)
/websites/exists [POST]
This will check all of the websites in our database to see if this specific provided website actually exists, if not we will just return a null website in the output.
import 'package:pieces_os_client/api.dart';
final api_instance = WebsitesApi();
final existentMetadata = ExistentMetadata(); // ExistentMetadata |
try {
final result = api_instance.websitesExists(existentMetadata);
print(result);
} catch (e) {
print('Exception when calling WebsitesApi->websitesExists: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
existentMetadata | ExistentMetadata | [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]
Websites websitesSnapshot(transferables)
/websites [GET]
This will get a snapshot of all your websites.
import 'package:pieces_os_client/api.dart';
final api_instance = WebsitesApi();
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.websitesSnapshot(transferables);
print(result);
} catch (e) {
print('Exception when calling WebsitesApi->websitesSnapshot: $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]