Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.41 KB

README.md

File metadata and controls

66 lines (44 loc) · 1.41 KB

Run in Postman

Instruction for docker

docker pull jitu715/env-on-restapi

Build your own

docker build . --tag / docker push /:latest

usage

eli --help (shows all the available command line arguments)

Start the Server

eli -server

Only Run A Cron Job from command line

eli --cron --interval 10 --cmd 'echo jitu'

get aws assume role credentials

curl --location 'http://localhost:8088/aws' \
--header 'Content-Type: application/json' \
'

sample response

{
    "accessKeyId":"HHDUUIEKKED",
    "secretKey":"Ng4W//WAttR33ugTroNSBQrbsdsdd7PR7QH7O",
    "sessionToken":"//sddd"
}

generic api to get any ENV variable value

curl --location 'http://localhost:8088/' \
--header 'Content-Type: application/json' \
--data '{
"homeBrewPrefix":"HOMEBREW_PREFIX"
}
'

Run a cron task example

curl --location 'http://localhost:8088/aws?reAuthenticate=true&interval=5&command=mkdir%newFolder'