server

module
v0.0.0-...-aa9290f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT

README

server

Šobrīd izveidotie API endpointi

GET /api/car/:id/latest GET /api/car/:id/power?mass=80&const=3

PUT /api/mqtt/send/*topic GET /api/mqtt/log DELETE /api/mqtt/log

Dažu curl komandu prototipi atbilsoši requestu tipiem

curl -k -X "GET" https://server.lv/api/car/2/latest curl -k -X "GET" https://server.lv/api/car/2/power?mass=80&const=3

curl -k -X "PUT" -d "Hello, world!" https://server.lv/api/mqtt/send/topic curl -k -X "GET" https://server.lv/api/mqtt/log curl -k -X "DELETE" https://server.lv/api/mqtt/log

curl -k -X "PUT" -d "{ "Uop":3600, "Iop":327, "Pop":8699, "Uip":6129, "Wh":15356 }" https://localhost:8443/api/mqtt/send/PSU_OUT/2

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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