temp_hum_station_api

command module
v0.0.0-...-61bf338 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 8 Imported by: 0

README

Temperature Humidity Station REST API

REST API written in Go that stores and provide temperature and humidity values from IoT sensor. It store the data in an SQLite database.

REST endpoints

  • Get data
curl --location --request GET 'http://localhost:8080/api/v1' \
--header 'Content-Type: application/x-www-form-urlencoded'
  • Store new data
curl --location --request POST 'http://localhost:8080/api/v1' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'date=1589187325' \
--data-urlencode 'temperature=33.7' \
--data-urlencode 'humidity=55.0' \
--data-urlencode 'token=secret_token!'

Libraries Used

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