Skip to content
Snippets Groups Projects
Unverified Commit 78264b32 authored by Martin Weise's avatar Martin Weise
Browse files

Added Query data

parent fdf2a70b
No related branches found
No related tags found
No related merge requests found
import io.swagger.client.ApiException;
import io.swagger.client.api.QueryEndpointApi;
import io.swagger.client.model.*;
public class QueryDataApp {
public static void main(String[] args) throws ApiException {
final QueryEndpointApi queryEndpointApi = new QueryEndpointApi();
/* execute query */
final ExecuteStatementDto executeStatementRequest = new ExecuteStatementDto();
executeStatementRequest.setStatement("SELECT `uuid`, `point`, `value`, `unit`, `timestamp` FROM `power` WHERE `point` = \"A\"");
final QueryResultDto response = queryEndpointApi.execute(executeStatementRequest, 1L, 1L, 0L, 10L, null, null);
response.getId();
response.getResult();
response.getResultNumber();
}
}
......@@ -25,7 +25,6 @@ import java.io.IOException;
* ExecuteStatementDto
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-02-12T12:27:08.557443+01:00[Europe/Vienna]")
public class ExecuteStatementDto {
@SerializedName("statement")
private String statement = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment