When I have a REST requst for create a route, there is a problem said:
And my api is:
curl -d 'name=testRoute&headers={"X-Another-Header"="test"}' http://localhost:8001/services/{{serviceId}}/routes
So what’s the correct format of “headers”?
When I have a REST requst for create a route, there is a problem said:
curl -d 'name=testRoute&headers={"X-Another-Header"="test"}' http://localhost:8001/services/{{serviceId}}/routes
So what’s the correct format of “headers”?
curl -d 'name=testRoute&headers.X-Another-Header[]=test' http://localhost:8001/services/{{serviceId}}/routes
Problem solved by the format like this:
headers.X-Another-Header[]=test
Thanks.