Function queryParam
Declare that a parameter will be transmitted to the API through the query string.
It will be serialized as part of a JSON object, and will go through URL serialization. The serialization format is not customizable.
Parameters
Name | Description |
---|---|
identifier | The name of the parameter to customize. A compiler error will be issued on mismatch. |
field | The field name to use. ---- // For a call to postData("D is awesome"), the server will receive the query: // POST /data?test=%22D is awesome%22 @queryParam("data", "test") void postData(string data); ---- |