I’m doing a POST with {"instance": "test_delete_a1"}
And I’ve also tried {"instance": {"type":"IbisInstance","instance_name":"test_delete_a1"}}
And I’ve also tried {"instance": {"type":"IbisInstance","id":"test_delete_a1"}}
Using GET works, but I want to make sure I know how to get this working with POST for future.
Any advice?
If the REST++ server is local, then server_ip is localhost.
The request can use either the GET or POST method. The query parameter values are either included directly in the query string of the HTTP request’s URL or supplied using a data payload. The basic format for the parameters as a query string is
param1=value¶m2=value¶m3=value
If you use data payload, JSON format only support GET. We are developing JSON format to support POST in the next minor release version.
the doc of shortestpath is a built-in query. It’s not written by GSQL. If you use GSQL install query to generate the endpoint, we do not support passing parameter by json using POST yet. It’s coming though.