Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-star/iot-api
https://github.com/code-star/iot-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-star/iot-api
- Owner: code-star
- Created: 2020-11-06T12:57:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-23T09:24:12.000Z (about 4 years ago)
- Last Synced: 2023-08-05T01:25:58.145Z (over 1 year ago)
- Language: Shell
- Homepage: https://codestar-iot-api.herokuapp.com
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Arduino with Lora shield -> KPN Things -> API* -> front-end
*API: this server.
Sending data with POST to the `/set` endpoint will be added to the in-memory storage and returned with each call to the `/get` endpoint.
API is hosted on https://codestar-iot-api.herokuapp.com with automatic deployment from the main branch on Github.
# Testing the endpoint on Heroku:
Set some data:
`curl --request POST -d '{ "foo": "bar" }' -H "Content-Type: application/json" https://codestar-iot-api.herokuapp.com/set`
Get some data:
`curl https://codestar-iot-api.herokuapp.com/get`