├── LICENSE ├── README.md ├── http └── index.sh ├── index.sh ├── routes ├── foo │ ├── index.sh │ └── template.json └── index.sh └── server.sh /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yurikoex/bash-rest-server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yurikoex/bash-rest-server/HEAD/README.md -------------------------------------------------------------------------------- /http/index.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yurikoex/bash-rest-server/HEAD/http/index.sh -------------------------------------------------------------------------------- /index.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | socat TCP4-LISTEN:8080,fork EXEC:./server.sh 3 | -------------------------------------------------------------------------------- /routes/foo/index.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yurikoex/bash-rest-server/HEAD/routes/foo/index.sh -------------------------------------------------------------------------------- /routes/foo/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /routes/index.sh: -------------------------------------------------------------------------------- 1 | require routes/foo 2 | -------------------------------------------------------------------------------- /server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yurikoex/bash-rest-server/HEAD/server.sh --------------------------------------------------------------------------------