Skip to content
Merged
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
14 changes: 12 additions & 2 deletions code/API_definitions/device-data-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ info:
The API exposes two endpoints/operations:

- The endpoint `POST /retrieve` allows customers to retrieve the remaining device data volume.
- The endpoint `POST /check` allows customers to Check if the remaining data volume is above a certain threshold.
- The endpoint `POST /check` allows customers to check if the remaining data volume is above a certain threshold.

# Authorization and authentication

Expand Down Expand Up @@ -121,7 +121,7 @@ paths:
content:
application/json:
schema:
type: boolean
$ref: "#/components/schemas/CheckDataVolumeResponse"
"400":
$ref: "#/components/responses/Generic400"
"401":
Expand Down Expand Up @@ -184,6 +184,16 @@ components:
- MiB
- GiB

CheckDataVolumeResponse:
description: Represents the response, if the data volume exceeds a given threshold.
type: object
properties:
thresholdExceeded:
type: boolean
description: Indicates whether the remaining data volume exceeds the given threshold
required:
- thresholdExceeded

RetrieveDataVolumeRequest:
description: The request to retrieve the current remaining data volume for the requested device.
type: object
Expand Down