Mprove
.json
GetQuery
POST/api/ToBackendGetQuery

Get a query

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendGetQuery" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendGetQuery",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string",      "mconfigId": "string",      "queryId": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendGetQuery",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "query": {
      "projectId": "string",
      "envId": "string",
      "connectionId": "string",
      "connectionType": "PostgreSQL",
      "queryId": "string",
      "reportId": "string",
      "reportStructId": "string",
      "sql": "string",
      "apiMethod": "POST",
      "apiUrl": "string",
      "apiBody": null,
      "status": "New",
      "data": null,
      "lastRunBy": "string",
      "lastRunTs": -9007199254740991,
      "lastCancelTs": -9007199254740991,
      "lastCompleteTs": -9007199254740991,
      "lastCompleteDuration": 0,
      "lastErrorMessage": "string",
      "lastErrorTs": -9007199254740991,
      "queryJobId": "string",
      "bigqueryQueryJobId": "string",
      "bigqueryConsecutiveErrorsGetJob": -9007199254740991,
      "bigqueryConsecutiveErrorsGetResults": -9007199254740991,
      "serverTs": -9007199254740991
    }
  }
}