-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds care partner alerts config endpoints
GET, DELETE, and PUT have been added. The POST isn't added, as it should be created via an invitation. BACK-2502 BACK-2503 BACK-2655
- Loading branch information
Showing
4 changed files
with
137 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Care Partners API | ||
version: '1.0' | ||
description: |- | ||
The Tidepool API is an HTTP REST API used by Tidepool clients to communicate with the Tidepool Platform. | ||
For more information, see the [Getting Started](../docs/quick-start.md) section. | ||
termsOfService: https://developer.tidepool.org/terms-of-use/ | ||
contact: | ||
name: API Support | ||
url: https://support.tidepool.org/ | ||
email: support@tidepool.org | ||
license: | ||
name: BSD-2-Clause | ||
url: https://github.com/tidepool-org/hydrophone/blob/master/LICENSE | ||
x-tidepool-service: https://github.com/tidepool-org/hydrophone | ||
|
||
servers: | ||
- url: 'https://external.integration.tidepool.org' | ||
description: integration | ||
- url: 'https://api.tidepool.org' | ||
description: production | ||
- url: 'https://dev1.dev.tidepool.org' | ||
description: dev1 | ||
- url: 'https://qa1.development.tidepool.org' | ||
description: qa1 | ||
- url: 'https://qa2.development.tidepool.org' | ||
description: qa2 | ||
|
||
security: | ||
- sessionToken: [] | ||
|
||
tags: | ||
- name: Alerts | ||
description: >- | ||
Retrieve, modify, and delete care partner alerts. | ||
paths: | ||
'/carepartners/alerts/{userId}/{sharerId}': | ||
parameters: | ||
- $ref: './common/parameters/tidepoolsharerid.v1.yaml' | ||
- $ref: './common/parameters/tidepooluserid.yaml' | ||
|
||
delete: | ||
operationId: DeleteCarePartnerAlertsForUser | ||
summary: Delete a care team partner's alerts configuration for a user | ||
description: >- | ||
Delete a care team partner's alerts configuration for a user. | ||
responses: | ||
'200': | ||
description: 'Alerts configuration deleted' | ||
'400': | ||
$ref: '#/components/responses/BadRequest' | ||
'401': | ||
$ref: '#/components/responses/Unauthorized' | ||
'404': | ||
$ref: '#/components/responses/NotFound' | ||
'500': | ||
$ref: '#/components/responses/ServerError' | ||
tags: | ||
- Alerts | ||
|
||
post: | ||
operationId: ModifyCarePartnerAlertsForUser | ||
summary: Modify or create a care team partner's alerts configuration for a user | ||
description: >- | ||
Modify or create a care team partner's alerts configuration for a user. | ||
Alerts should be created via invitation, but can be later modified | ||
by the invitee through this endpoint. | ||
requestBody: | ||
content: | ||
'application/json': | ||
schema: | ||
$ref: './common/models/alertsconfig.v1.yaml' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/AlertsConfig' | ||
'400': | ||
$ref: '#/components/responses/BadRequest' | ||
'401': | ||
$ref: '#/components/responses/Unauthorized' | ||
'404': | ||
$ref: '#/components/responses/NotFound' | ||
'500': | ||
$ref: '#/components/responses/ServerError' | ||
tags: | ||
- Alerts | ||
|
||
get: | ||
operationId: GetxoCarePartnerAlertsForUser | ||
summary: Get a care team partner's alerts configuration for a user | ||
description: >- | ||
Get a care team partner's alerts configuration for a user. | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/AlertsConfig' | ||
'400': | ||
$ref: '#/components/responses/BadRequest' | ||
'401': | ||
$ref: '#/components/responses/Unauthorized' | ||
'404': | ||
$ref: '#/components/responses/NotFound' | ||
'500': | ||
$ref: '#/components/responses/ServerError' | ||
tags: | ||
- Alerts | ||
|
||
|
||
components: | ||
securitySchemes: | ||
sessionToken: | ||
$ref: './common/security/tidepoolsessiontoken.v1.yaml' | ||
|
||
responses: | ||
AlertsConfig: | ||
description: 'Alerts configuration of a user' | ||
content: | ||
'application/json': | ||
schema: | ||
$ref: './common/models/alertsconfig.v1.yaml' | ||
|
||
BadRequest: | ||
description: 'Bad Request' | ||
|
||
Unauthorized: | ||
description: 'Unauthorized' | ||
|
||
NotFound: | ||
description: 'Not Found' | ||
|
||
ServerError: | ||
description: 'Server Error' |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
reference/confirm/models/alertconfig.v1.yaml → reference/common/models/alertsconfig.v1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters