hdb-api

command module
v1.1.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 17 Imported by: 0

README

GitHub go.mod Go version Actions Status

HomeDashboard API

External services can use this API to publish HomeDashboard data.

Supported Datasources

  • IndoorClimate

API Description

openapi: 3.0.0
info:
  version: 1.0.0
  title: HomeDashboard API
  description: Provides endpoints for external services to publish events with HomeDashboard data.
  license:
    name: MIT

paths:
  //api/v1/indoorclimate:
    post: 
      summary: Publish new indoor climate data.
      requestBody:
        required: true
        content:
          application/json:
            schema: 
              $ref: '#/components/schemas/IndoorClimateData'
      responses:
        '204':
          description: An event has been published.
        '400':
          description: Invalid indoor climate data passed.
        '500':
          description: Unable to publish event.
    
  /health:
    get: 
      summary: Health status check endpoint.
      responses:
        '204':
          description: Server is still healty.

components:
  schemas:
    IndoorClimateData:
      type: object
      required:
        - deviceid
        - measurementtype
        - value
      properties:
        timestamp:
          description: Timestamp for indoor climate measurement. RFC3339
          type: string
        deviceid:
          description: ID of a device.
          type: string
        measurementtype:
          description: Type of an indoor climate measurement.
          type: string
          enum:
            - temperature
            - humidity
            - battery
        value:
          description: Measurement value.
          type: string

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL