mycoreapi

API description

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: Version Pre-Alpha
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

Requirements

Dart 2.0 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  mycoreapi:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  mycoreapi:
    path: /path/to/mycoreapi

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:mycoreapi/api.dart';

// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = AuthenticationApi();
final grantType = grantType_example; // String | 
final username = username_example; // String | 
final password = password_example; // String | 
final clientId = clientId_example; // String | 
final clientSecret = clientSecret_example; // String | 

try {
    final result = api_instance.authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret);
    print(result);
} catch (e) {
    print('Exception when calling AuthenticationApi->authenticationAuthenticateWithForm: $e\n');
}

Documentation for API Endpoints

All URIs are relative to http://localhost:25049

Class Method HTTP request Description
AuthenticationApi authenticationAuthenticateWithForm POST /api/Authentication/Token Authenticate with form parameters (used by Swagger test client)
AuthenticationApi authenticationAuthenticateWithJson POST /api/Authentication/Authenticate Authenticate with Json parameters (used by most clients)
AutomationApi automationCreate POST /api/automation Create an automation
AutomationApi automationDelete DELETE /api/automation/{automationId} Delete an automation
AutomationApi automationDeleteAllForUser DELETE /api/automation/user/{userId} Delete all automation for a specified
AutomationApi automationGetAll GET /api/automation/{userId} Get all automations for the specified user
AutomationApi automationGetDetail GET /api/automation/detail/{automationId} Get detail info of a specified automation
AutomationApi automationUpdate PUT /api/automation Update an automation
AzureApi azureCreate POST /azure
BooksApi booksCreate POST /api/books
BooksApi booksDelete DELETE /api/books/{id}
BooksApi booksGet GET /api/books/{id}
BooksApi booksGetAll GET /api/books
BooksApi booksUpdate PUT /api/books/{id}
DeviceApi deviceCreate POST /api/device Create a device
DeviceApi deviceCreateDevicesFromProvider POST /api/device/{userId}/fromProvider/{providerId} Create devices from provider
DeviceApi deviceDelete DELETE /api/device/{deviceId} Delete a device
DeviceApi deviceDeleteAllForUser DELETE /api/device/user/{userId} Delete all device for a specified user
DeviceApi deviceDeleteDevicesFromProvider DELETE /api/device/{userId}/fromProvider/{providerId} Delete devices from provider
DeviceApi deviceGetAll GET /api/device/{userId} Get all devices summary
DeviceApi deviceGetDetail GET /api/device/detail/{deviceId} Get a specific device info
DeviceApi deviceGetDevicesByType GET /api/device/{userId}/type/{type} Get list of devices from a type
DeviceApi deviceGetDevicesFromProvider GET /api/device/{userId}/fromProvider/{providerId} Get devices from provider
DeviceApi deviceGetDevicesFromZigbee2Mqtt GET /api/device/zigbee2Mqtt/{userId} Get all zigbee2Mqtt devices
DeviceApi deviceUpdate PUT /api/device/{deviceId} Update a device
EnergyApi energyGetElectricityProduction GET /api/energy/electricity Get summary production of Kwh/Year
FacebookApi facebookCreate POST /facebook
GoogleApi googleCreate POST /google
GroupApi groupCreate POST /api/group Create a group
GroupApi groupCreateDevicesFromZigbee2Mqtt POST /api/group/{userId}/fromZigbee Create groups from provider
GroupApi groupDelete DELETE /api/group/{groupId}/device/{deviceId} Delete device from a group
GroupApi groupDelete2 DELETE /api/group/{groupId} Delete a group
GroupApi groupDeleteAllForUser DELETE /api/group/user/{userId} Delete all group for a specified
GroupApi groupGetAll GET /api/group/{userId} Get all groups for the specified user
GroupApi groupGetDetail GET /api/group/detail/{groupId} Get detail info of a specified group
GroupApi groupGetGroupsByType GET /api/group/{userId}/type/{type} Get list of group from a type
GroupApi groupGetGroupsFromZigbee2Mqtt GET /api/group/zigbee2Mqtt/{userId} Get all zigbee2Mqtt groups
GroupApi groupUpdate PUT /api/group Update a group
IOTApi iOTGetSmartPrinterMessages GET /api/iot/smartprinter/{idDevice} Retrieve all SmartPrinterMessage
IOTApi iOTPostToDBPrinter POST /api/iot/smartprinter/{idDevice} It's the method to post data from mqtt broker to Database (Thanks Rpi!)
IOTApi iOTPostToDBSmartGarden POST /api/iot/smartgarden/{idDevice} It's the method to post data from mqtt broker to Database (Thanks Rpi!)
LayoutApi layoutGet GET /api/layout/panelSection It's a test ! :)
MQTTApi mQTTPublishMessage POST /api/mqtt Publish mqtt test
OddApi oddGetAll GET /api/odd/{oddRequest} Get odds for one country and one odd value maximum
OddApi oddGetForCountry GET /api/odd/country/{id}/{oddRequest} Get odds for one country and one odd value maximum
ProviderApi providerCreate POST /api/provider Create a provider
ProviderApi providerDelete DELETE /api/provider/{providerId} Delete a provider
ProviderApi providerGetAll GET /api/provider/{userId} Get all user providers
ProviderApi providerUpdate PUT /api/provider Update a provider
RoomApi roomCreate POST /api/room Create a room
RoomApi roomDelete DELETE /api/room/{roomId}/device/{deviceId} Delete device from a room
RoomApi roomDelete2 DELETE /api/room/{roomId} Delete a room
RoomApi roomDeleteAllForUser DELETE /api/room/user/{userId} Delete all room for a specified user
RoomApi roomGetAll GET /api/room/{userId} Get all rooms for the specified user
RoomApi roomGetDetail GET /api/room/detail/{roomId} Get detail info of a specified room
RoomApi roomUpdate PUT /api/room Update a room
ScreenDeviceApi screenDeviceCreateDevice POST /api/device/screen Create screen device
ScreenDeviceApi screenDeviceDeleteDevice DELETE /api/device/screen/{deviceId} Delete device
ScreenDeviceApi screenDeviceGetAllScreenDevices GET /api/device/screen Get all screen devices
ScreenDeviceApi screenDeviceGetDeviceInfo GET /api/device/screen/{screenDeviceId} Get screen device info
ScreenDeviceApi screenDeviceUpdateDevice PUT /api/device/screen Update screen device
TokenApi tokenConnectUser POST /api/token Connect user
TokenApi tokenCreate POST /token
TwitterApi twitterCreate POST /twitter
UserApi userCreateUser POST /api/user Create an user
UserApi userDeleteUser DELETE /api/user/{id} Delete an user
UserApi userGet GET /api/user/{id} Get a specific user
UserApi userGetAll GET /api/user Get a list of user
UserApi userUpdateUser PUT /api/user Update an user
ValuesApi valuesDelete DELETE /api/test/{id}
ValuesApi valuesGet GET /api/test/{id}
ValuesApi valuesGetAll GET /api/test It's a test ! :)
ValuesApi valuesPost POST /api/test
ValuesApi valuesPut PUT /api/test/{id}

Documentation For Models

Documentation For Authorization

bearer

  • Type: OAuth
  • Flow: password
  • Authorization URL: /authentication/Token
  • Scopes:
  • MyCore-api: MyCore WebAPI

Author