Hi:

Supports more upstream parameters in `service`, this will make APISIX
easier to use.

What do you think?

For example: up_path, up_host, up_port or up_scheme.

curl -i http://127.0.0.1:9080/apisix/admin/services/1 -X PUT -d '
{
    "upstream": {
        "type": "roundrobin",
        "nodes": {
            "39.97.63.215:80": 1
        }
    },
    "up_path": "/index.html",
    "up_host": "foo.com",
    "up_scheme": "http"
}'

curl -i http://127.0.0.1:9080/apisix/admin/services/1 -X PUT -d '
{
    "upstream": {
        "type": "roundrobin",
        "nodes": {
            "39.97.63.215:80": 1
        }
    },
    "up_host": "foo.com",
    "up_scheme": "https"
}'

-- 

*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix

Reply via email to