#!/usr/bin/env bash port=$1 conf=$2 code=$3 dec=$4 serverURL=" http://127.0.0.1:7890/servers/submit" data='{"webos": 1,"webssh": 0,"phpray": 1,"api": 1,"env": "'${conf}'","gm": 1,"desc": "'${dec}'", "branch": "'${code}'","port": '${port}'}' echo "$data" curl -X POST ${serverURL} -H 'Content-Type: application/json' -d "$data"