Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Add get intervention segment. RD-27228 #164

Merged
4 commits merged into from Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions specs/engage-digital_openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ x-tag-groups:
- Identities
- Identity Groups
- Intervention Comments
- Intervention Segments
- Interventions
- Sources
- Survey Responses
Expand Down Expand Up @@ -72,6 +73,7 @@ tags:
- name: Identities
- name: Identity Groups
- name: Intervention Comments
- name: Intervention Segments
- name: Interventions
- name: Sources
- name: Tasks
Expand Down Expand Up @@ -3111,6 +3113,29 @@ paths:
summary: Getting an intervention comment from its id
tags:
- Intervention Comments
'/intervention_segments/{interventionSegmentId}':
get:
description: >-
This method renders an intervention segment from given id. If token’s
user does not have “read” on segment’s source a 404 HTTP response will
be returned.
operationId: getInterventionSegment
parameters:
- in: path
name: interventionSegmentId
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/InterventionSegment'
description: Success
summary: Getting an intervention segment from its id
tags:
- Intervention Segments
/interventions:
get:
description: >-
Expand Down Expand Up @@ -8524,6 +8549,52 @@ components:
type: string
videntity_id:
type: string
InterventionSegment:
properties:
id:
type: string
foreign_id:
type: string
identity_id:
type: string
identity_foreign_id:
type: string
intervention_id:
type: string
thread_id:
type: string
thread_foreign_id:
type: string
source_id:
type: string
created_at:
format: date-time
type: string
updated_at:
format: date-time
type: string
user_id:
type: string
auto_summary:
type: string
description: |-
Auto summary of the intervention segment.
Only present with RingCX.
agent_summary:
type: string
description: |-
Agent's summary of the intervention segment.
Only present with RingCX.
summary_edited:
type: boolean
description: |-
Indicates if the summary was edited by the agent.
Only present with RingCX.
generate_auto_summary:
type: boolean
description: |-
Indicates if the intervention segment supports summary generation.
Only present with RingCX.
Locale:
properties:
code:
Expand Down
36 changes: 36 additions & 0 deletions specs/engage-digital_postman2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,42 @@
}
]
},
{
"name": "Intervention Segments",
"description": {
"type": "text/plain"
},
"item": [
{
"name": "Getting an intervention segment from its id",
"request": {
"url": {
"raw": "{{ENGAGE_DIGITAL_SERVER_URL}}/1.0/intervention_segments/:interventionSegmentId",
"host": [
"{{ENGAGE_DIGITAL_SERVER_URL}}"
],
"path": [
"1.0",
"intervention_segments",
":interventionSegmentId"
]
},
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{ENGAGE_DIGITAL_ACCESS_TOKEN}}"
},
{
"key": "Accept",
"value": "application/json"
}
],
"description": "This method renders an intervention segment from given id. If token’s user does not have “read” on segment’s source a 404 HTTP response will be returned."
}
}
]
},
{
"name": "Interventions",
"description": {
Expand Down