When you use JSON to call an API - not a REST API, but something like JSON-RPC - you will usually want to encode one of several possible messages.
Your request body looks like this:
{
"type": "MessageWithA",
| ssh -R 52698:localhost:52698 demr-web01 | |
| nc -l -k -p 52699 -c "nc 127.0.0.1 52698" | |
| ssh -g -L 172.17.0.1:52699:localhost:52698 -N localhost | |
| rmate -p 52699 --host 172.17.0.1 /src/update-container-app | |
| ######################## | |
| 1.- |
| # I know a lot of people feel icky about using files instead of partitions, | |
| # but it certainly works well enough as emergency swap space. | |
| sudo dd if=/dev/zero of=/var/swapfile bs=1M count=3072 | |
| sudo chmod 600 /var/swapfile | |
| sudo mkswap /var/swapfile | |
| echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab | |
| sudo swapon -a |