Skip to content

Patti4832/IoT-Database-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT-Database-Server

Simple HTTP Database Server for IoT Projects

Documentation

USAGE

GET http://[HOSTNAME]:[PORT]/http/?[OPTION1]&[OPTION2]&[...]

OPTIONS

u=[USER] - Username input (not allowed: '=', '%', ' ')

k=[KEY] - Key input (not allowed: '=', '%', ' ')

v=[VAR] - Select variable (not allowed: '=', '%', ' ')

a=[ACTION] - Select action (not allowed: '=', '%', ' ')

c=[CONTENT] - Set (new) content (not allowed: '=', '%', ' ')

ACTIONS

r - read - read selected variable

n - new - creates new variable with specified name and content

e - edit - overrides selected variable with content

d - delete - deletes selected variable

l - list - list all variables

EXAMPLE

Read [VAR]:

GET http://[HOSTNAME]:[PORT]/http/?u=[USER]&k=[KEY]&a=r&v=[VAR]

Create [VAR] with [CONTENT]:

GET http://[HOSTNAME]:[PORT]/http/?u=[USER]&k=[KEY]&a=n&v=[VAR]&c=[CONTENT]

List all variables:

GET http://[HOSTNAME]:[PORT]/http/?u=[USER]&k=[KEY]&a=l

Delete [VAR]:

GET http://[HOSTNAME]:[PORT]/http/?u=[USER]&k=[KEY]&a=d&v=[VAR]

Replace content of [VAR] with [CONTENT]:

GET http://[HOSTNAME]:[PORT]/http/?u=[USER]&k=[KEY]&a=e&v=[VAR]&c=[CONTENT]

Releases

No releases published

Packages

No packages published

Languages