Skip to content

Commit

Permalink
Merge pull request #263 from camunda/use-post-request-for-decisions
Browse files Browse the repository at this point in the history
fix(operate): use post request for decision definitions and decision instances endpoints
  • Loading branch information
jwulf authored Sep 26, 2024
2 parents 495c05e + 3c35544 commit 0e5ab48
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/operate/lib/OperateApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,13 @@ export class OperateApiClient {
const json = this.addTenantIdToFilter(query)
const rest = await this.rest

return rest('decision-definitions/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionDefinition),
json,
}).json()
return rest
.post('decision-definitions/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionDefinition),
json,
})
.json()
}

/**
Expand Down Expand Up @@ -263,11 +265,13 @@ export class OperateApiClient {
const json = this.addTenantIdToFilter(query)
const rest = await this.rest

return rest('decision-instances/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionInstance),
json,
}).json()
return rest
.post('decision-instances/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionInstance),
json,
})
.json()
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/operate/lib/OperateDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class DecisionInstance extends LosslessDto {
evaluationFailure!: string
@Int64String
processDefinitionKey!: string
@Int64String
processInstanceKey!: string
decisionId!: string
decisionDefinitionId!: string
decisionName!: string
Expand Down

0 comments on commit 0e5ab48

Please sign in to comment.