Categorygithub.com/lab5e/spanclient-go

# README

Go API client for spanclient

API for device, collection, output and firmware management

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 4.1.3 factual-kahlil
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://lab5e.com/span

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./spanclient"

Documentation for API Endpoints

All URIs are relative to https://api.lab5e.com/span

ClassMethodHTTP requestDescription
CollectionsApiBroadcastMessagePost /collections/{collectionId}/toBroadcast message
CollectionsApiCreateCollectionPost /collectionsCreate collection
CollectionsApiDeleteCollectionDelete /collections/{collectionId}Delete collection
CollectionsApiListCollectionDataGet /collections/{collectionId}/dataGet payloads
CollectionsApiListCollectionsGet /collectionsList collections
CollectionsApiRetrieveCollectionGet /collections/{collectionId}Retrieve collection
CollectionsApiUpdateCollectionPatch /collections/{collectionId}Update collection
DatadumpApiDataDumpPost /datadumpData dump
DevicesApiCreateDevicePost /collections/{collectionId}/devicesCreate device
DevicesApiDeleteDeviceDelete /collections/{collectionId}/devices/{deviceId}Remove device
DevicesApiListDeviceDataGet /collections/{collectionId}/devices/{deviceId}/dataGet payloads
DevicesApiListDevicesGet /collections/{collectionId}/devicesList devices
DevicesApiRetrieveDeviceGet /collections/{collectionId}/devices/{deviceId}Retrieve device
DevicesApiSendMessagePost /collections/{collectionId}/devices/{deviceId}/toSend message
DevicesApiUpdateDevicePatch /collections/{existingCollectionId}/devices/{deviceId}Update device
FotaApiClearFirmwareErrorDelete /collections/{collectionId}/devices/{deviceId}/fwerrorClear FOTA error
FotaApiCreateFirmwarePost /collections/{collectionId}/firmwareCreate firmware
FotaApiDeleteFirmwareDelete /collections/{collectionId}/firmware/{imageId}Delete firmware
FotaApiFirmwareUsagePatch /collections/{collectionId}/firmware/{imageId}/usageFirmware usage
FotaApiListFirmwareGet /collections/{collectionId}/firmwareList firmware
FotaApiRetrieveFirmwareGet /collections/{collectionId}/firmware/{imageId}Retrieve firmware
FotaApiUpdateFirmwarePatch /collections/{collectionId}/firmware/{imageId}Update firmware
OutputsApiCreateOutputPost /collections/{collectionId}/outputsCreate output
OutputsApiDeleteOutputDelete /collections/{collectionId}/outputs/{outputId}Delete output
OutputsApiListOutputsGet /collections/{collectionId}/outputsList outputs
OutputsApiLogsGet /collections/{collectionId}/outputs/{outputId}/logsOutput logs
OutputsApiRetrieveOutputGet /collections/{collectionId}/outputs/{outputId}Retrieve output
OutputsApiStatusGet /collections/{collectionId}/outputs/{outputId}/statusOutput status
OutputsApiUpdateOutputPatch /collections/{collectionId}/outputs/{outputId}Update output
SystemApiGetSystemInfoGet /systemSystem information

Documentation For Models

Documentation For Authorization

APIToken

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

[email protected]

# Packages

No description provided by the author