Skip to content

r2.4

Latest

Choose a tag to compare

@camara-release-automation camara-release-automation released this 19 Nov 09:34
6fcc13f

Release Notes

This public release contains the definition and documentation of

  • device-data-volume-subscriptions 0.2.0
  • device-data-volume 0.2.0

The API definition(s) are based on

  • Commonalities r4.4 (0.9.0)
  • Identity and Consent Management r4.2 (0.5.0)

device-data-volume-subscriptions 0.2.0

device-data-volume-subscriptions 0.2.0 is an initial public version of this API.

Changes documented below are compared to version 0.1.0.

Breaking changes

  • Data allowance consumption events renamed, and now named after the remaining instead of the consumed data allowance, in #106
    • org.camaraproject.device-data-volume-subscriptions.v0.data-50-percent became org.camaraproject.device-data-volume-subscriptions.v0.data-50-percent-remaining: Event triggered when only 50% of the data plan is remaining
    • org.camaraproject.device-data-volume-subscriptions.v0.data-75-percent became org.camaraproject.device-data-volume-subscriptions.v0.data-25-percent-remaining: Event triggered when only 25% of the data plan is remaining
    • org.camaraproject.device-data-volume-subscriptions.v0.data-90-percent became org.camaraproject.device-data-volume-subscriptions.v0.data-10-percent-remaining: Event triggered when only 10% of the data plan is remaining
    • org.camaraproject.device-data-volume-subscriptions.v0.data-exceeded became org.camaraproject.device-data-volume-subscriptions.v0.data-00-percent-remaining: Event triggered when the data plan is fully consumed
    • The scopes for subscription creation were renamed accordingly
  • Pagination for listing of subscriptions using GET /subscriptions is now supported in #81
    • Addition of page and perPage query parameters to control pagination
    • Returned subscriptions are now embedded in the array subscriptions within the response JSON, with the page tracked within the pagination JSON
    • Addition of response headers X-Total-Count, X-Total-Pages and Link to facilitate page navigation
  • Response code 404 IDENTIFIER_NOT_FOUND added for subscription creation in #127
    • Implementations of 0.1.0 might already have returned this error (the 0.1.0 test definitions expected it)
  • With initialEvent set to true, an initial event is only sent if the remaining data allowance equals the threshold when the subscription is created in #138

Added

  • Added scenario for subscription-created event generation by @eric-murray in #152 and #166
    • Added scenario @device_data_volume_subscriptions_03_subscription_creation_event_validation
    • Renumbered other test scenarios accordingly
  • Updated error response codes to use new Commonalities r4.4 schema by @eric-murray in #127
    • Added 404 IDENTIFIER_NOT_FOUND to device-data-volume-subscriptions creation
  • Aligned with CAMARA Commonalities r4.4 (0.9.0) in #81, #113 and #127
    • Added sink credential type PRIVATE_KEY_JWT, and 422 PRIVATE_KEY_JWT_NOT_CONFIGURED for subscription creation
    • Added 409 ABORTED and 422 MULTIEVENT_COMBINATION_TEMPORARILY_NOT_SUPPORTED for subscription creation
  • Refactored test cases for updated API definitions by @eric-murray in #130
    • Added additional test cases and fixed typos in the existing ones
      • Added 429 error test cases for createDeviceDataVolumeSubscription operations
      • Added 401 error test cases for all operations
      • Added 422 error test cases for createDeviceDataVolumeSubscription operations
  • Added additional device data volume status subscription list scenarios and moved to separate feature file by @eric-murray in #103 and #110

Changed

  • Improved API documentation by @eric-murray in #129 and #145
    • Clarified that threshold events trigger when the remaining data allowance is equal to the threshold
  • Updated response reference for unprocessable entity and improved initialEvent description by @eric-murray in #138
    • With initialEvent set to true, an initial event is only sent if the remaining data allowance equals the threshold when the subscription is created
  • Refactored test cases for updated API definitions by @eric-murray in #130
    • Moved test definitions to separate files for each defined operation
  • Renamed data allowance consumption events for clarity by @eric-murray in #106
  • Aligned with CAMARA Commonalities r4.4 (0.9.0) in #81, #113, #114, #127 and #162
    • GET /subscriptions returns a paginated list (see Breaking changes)
    • Request bodies with properties that are not declared in the specification are rejected with 400 INVALID_ARGUMENT
    • subscriptionMaxEvents is limited to 1000000, and publicPort starts at 1 instead of 0
    • Subscription identifiers are no longer declared with format: uuid

Fixed

Removed

  • Aligned with CAMARA Commonalities r4.4 (0.9.0) in #81
    • Removed sink credential types PLAIN and REFRESHTOKEN, and all protocols other than HTTP
      • Not breaking: 0.1.0 already allowed only ACCESSTOKEN and HTTP
    • Removed SUBSCRIPTION_UNPROCESSABLE from the terminationReason values of the subscription-ended event

device-data-volume 0.2.0

device-data-volume 0.2.0 is an initial public version of this API.

Changes documented below are compared to version 0.1.0.

Breaking changes

  • Refactor device-data-volume for simpler and more intuitive behaviour in #107
    • Use MB/GB instead of MiB/GiB for data allowances
    • Return remaining data allowance rather than data allowance category, allowing "Unlimited" as a response option
    • Properties renamed for clarity:
      • Request property volumeToCheck becomes dataAllowanceThreshold, with the maximum of value increased from 1024 to 99999 (in #126)
      • Response property dataVolumeCategory becomes remainingDataAllowance, with value between 0 and 99999 (in #126)

Added

  • Refactored test cases for updated API definitions by @eric-murray in #130
    • Added additional test cases and fixed typos in the existing ones
      • Added 401 and 429 error test cases for checkDataVolume and retrieveDataVolume
  • Added lastStatusTime field to successful responses with examples by @eric-murray in #89
  • Updated happy path tests to include validation of lastStatusTime property by @eric-murray in #97
  • Added 429 TOO_MANY_REQUESTS and QUOTA_EXCEEDED responses for POST /check and POST /retrieve in #81

Changed

  • Improved API documentation by @eric-murray in #129
  • Increased maximum data allowance limit by @eric-murray in #126
    • The max of dataAllowanceThreshold.value in the POST /check request increased from 1024 to 99999
  • Aligned with CAMARA Commonalities r4.4 (0.9.0) in #81, #127 and #161
    • Request bodies with properties that are not declared in the specification are rejected with 400 INVALID_ARGUMENT
    • publicPort starts at 1 instead of 0
  • Refactored device-data-volume to return data volumes rather than categories, and use MB/GB instead of MiB/GiB by @eric-murray in #107 and #128

Fixed

Removed

  • Removed the OUT_OF_RANGE error response from device-data-volume by @eric-murray in #151 and #161
    • Removed 400 OUT_OF_RANGE as a valid error response code for POST /check and POST /retrieve

Full Changelog: r1.3...r2.4