Skip to content

Commit

Permalink
Add missing post, put, delete endpoints for incidents update api
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Wiszniewski committed Oct 16, 2017
1 parent d0c8426 commit c419a63
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,33 @@ paths:
type: array
items:
$ref: '#/definitions/IncidentUpdateResponse'
post:
operationId: createIncidentUpdate
summary: Create an Incident Update
parameters:
- name: incident
in: path
required: true
description: Unique incident id
type: number
format: int32
- name: body
in: body
description: Incident update to create
required: true
schema:
$ref: '#/definitions/IncidentUpdate'
tags:
- Incidents
responses:
200:
description: Incident update response
schema:
type: object
properties:
data:
$ref: '#/definitions/IncidentUpdateResponse'

/incidents/{incident}/updates/{update}:
get:
operationId: getIncidentUpdateById
Expand All @@ -558,6 +585,60 @@ paths:
properties:
data:
$ref: '#/definitions/IncidentUpdateResponse'
put:
operationId: putIncidentUpdateById
summary: Update an incident update
parameters:
- name: incident
in: path
required: true
description: Unique incident id
type: number
format: int32
- name: update
in: path
required: true
description: Unique incident update id
type: number
format: int32
- name: status
in: query
required: false
description: The incident status flag
type: number
format: int32
- name: message
in: query
required: false
description: The update message
type: string
responses:
200:
description: Update incident update response
schema:
type: object
properties:
data:
$ref: '#/definitions/IncidentUpdateResponse'
delete:
operationId: deleteIncidentUpdateById
summary: Delete an incident update
parameters:
- name: incident
in: path
required: true
description: Unique incident id
type: number
format: int32
- name: update
in: path
required: true
description: Unique incident update id
type: number
format: int32
response:
204:
description: The incident update was deleted successfully.
/metrics:
get:
operationId: getMetrics
Expand Down Expand Up @@ -937,6 +1018,14 @@ definitions:
format: date-time
human_status:
type: string
IncidentUpdate:
type: object
properties:
status:
type: number
format: int32
message:
type: string
Metric:
type: object
properties:
Expand Down

0 comments on commit c419a63

Please sign in to comment.