Skip to content

neverett8fr/go-home-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home-service

See also: https://github.com/neverett8fr/go-home

test

request
{{host}}:8081/test/asdf GET
response

{
    "errors": null,
    "data": "teststring"
}

add endpoint

request
{{host}}:8081/endpoint/name1 POST

{
 "method": "GET",
 "route": "http://localhost:8080/test/pi"    
}

response

{
    "errors": [
        null
    ],
    "data": "endpoint added"
}

add condition

request
{{host}}:8081/condition/name1 POST

{
 "condition": "always"
}

response

{
    "errors": [
        null
    ],
    "data": "condition added"
}

restart

request
{{host}}:8081/restart POST
response

{
    "errors": [
        null
    ],
    "data": "service restarted"
}

start

request
{{host}}:8081/start POST
response

{
    "errors": [
        null
    ],
    "data": "service started"
}

About

an API to allow interfacing with my `go-home` library

Resources

License

Stars

Watchers

Forks

Packages

No packages published