DELETE Method Example
A DELETE request is used to delete an existing resource. It will not usually require any HTTP body for the request, nor will it return anything in the response body.
Note For the DELETE verb, the method you need to call is the
deletePet(); constants Endpoint = "https://petstore.swagger.io/v2"; Path = "/pet/{petId}"; vars client : JadeRestClient; response : JadeRestResponse; request : JadeRestRequest; begin client := create JadeRestClient(Endpoint) transient; request := create JadeRestRequest(Path) transient; request.addURLSeg("petID", "314"); create response transient; client.deleteResource(request, response); write response.statusCode; epilog delete client; delete response; delete request; end;