Skip to content

Commit

Permalink
[#124] add openapi get request for an individual template
Browse files Browse the repository at this point in the history
  • Loading branch information
marisahoenig committed Jul 31, 2020
1 parent ca091e1 commit bda65a6
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions documents/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,34 @@ paths:
schema:
$ref: '#/components/schemas/Template'
'/service/{service_id}/template/{template_id}':
get:
summary: Get an existing template for a service
tags:
- template
parameters:
- in: path
name: 'service_id'
schema:
type: integer
format: uuid
required: true
allowEmptyValue: false
description: Service identifier
- in: path
name: 'template_id'
schema:
type: integer
format: uuid
required: true
allowEmptyValue: false
description: Template identifier
responses:
'200':
description: Successful response for getting templates
content:
application/json:
schema:
$ref: '#/components/schemas/Template'
post:
summary: Update an existing template
tags:
Expand All @@ -205,15 +233,15 @@ paths:
format: uuid
required: true
allowEmptyValue: false
description: The service identifier associated with the template
description: Service identifier
- in: path
name: 'template_id'
schema:
type: integer
format: uuid
required: true
allowEmptyValue: false
description: The template identifier to update
description: Template identifier to update
requestBody:
required: true
content:
Expand Down Expand Up @@ -258,7 +286,7 @@ paths:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/NotificationResponse'
- $ref: '#/components/schemas/Notification'
- type: object
properties:
content:
Expand Down Expand Up @@ -739,7 +767,7 @@ components:
format: email_address
required:
- email_address
NotificationResponse:
Notification:
type: object
properties:
id:
Expand Down

0 comments on commit bda65a6

Please sign in to comment.