Skip to content

r4.3

Latest

Choose a tag to compare

@camara-release-automation camara-release-automation released this 18 Nov 21:26
2d859df

Release Notes

This public release contains the definition and documentation of

  • connectivity-insights-subscriptions 0.7.0
  • connectivity-insights 0.7.0

The API definition(s) are based on

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

connectivity-insights-subscriptions 0.7.0

connectivity-insights-subscriptions 0.7.0 is an initial public version of this API.

Changes documented below are compared to version 0.6.0.

Breaking changes

  • GET /subscriptions returns a paginated object with the required properties subscriptions and pagination, instead of an array of subscriptions, by @maheshc01 in #198
  • The subscription identifier in subscription responses (POST /subscriptions, GET /subscriptions, GET /subscriptions/{subscriptionId}) and in the 202 responses of POST /subscriptions and DELETE /subscriptions/{subscriptionId} is now id instead of subscriptionId, as in the Commonalities event subscription template; the subscriptionId path parameter is unchanged, by @maheshc01 in #198
  • Subscription status value DEACTIVE replaced by INACTIVE, by @maheshc01 in #198
  • In the network-quality event, the data property papplicationProfileId is corrected to applicationProfileId, by @maheshc01 in #198
  • In config.subscriptionDetail, applicationServer is now required and device is no longer required, by @Kevsy in #209
  • New input limits on the POST /subscriptions request body, by @maheshc01 in #198 and #224, and @Kevsy in #214
    • sink must be an https URL of at most 2048 characters
    • applicationServerPorts.ports and applicationServerPorts.ranges accept at most 100 entries, and port values (including device.ipv4Address.publicPort) must be between 1 and 65535 (previously 0 was accepted)
    • applicationServer.ipv4Address and applicationServer.ipv6Address must be valid IPv4 / IPv6 addresses, optionally with a mask, of at most 18 and 49 characters
    • config.subscriptionMaxEvents is int32 with a maximum of 1000000

Added

  • Pagination for GET /subscriptions: optional page and perPage query parameters, X-Total-Count, X-Total-Pages and Link response headers, and the 400 OUT_OF_RANGE error code, by @maheshc01 in #198
  • subscription-started and subscription-updated subscription lifecycle events, by @maheshc01 in #198
  • PRIVATE_KEY_JWT as sinkCredential.credentialType, and the 422 error codes PRIVATE_KEY_JWT_NOT_CONFIGURED, UNSUPPORTED_IDENTIFIER, MULTIEVENT_SUBSCRIPTION_NOT_SUPPORTED and MULTIEVENT_COMBINATION_TEMPORARILY_NOT_SUPPORTED for POST /subscriptions, by @maheshc01 in #198
  • Test scenario for 422 UNNECESSARY_IDENTIFIER, by @maheshc01 in #224
  • Test scenarios for subscription creation with a PRIVATE_KEY_JWT sinkCredential, 422 PRIVATE_KEY_JWT_NOT_CONFIGURED, and an invalid event type (400 INVALID_ARGUMENT), by @maheshc01 in #237

Changed

  • Aligned with Commonalities r4.4 (0.9.0, from 0.6): event schemas, Config, sink and Device aligned with the Commonalities event subscription and common schemas, error responses aligned with the r4.4 response catalogue and shared examples, and the mandatory info.description sections added, by @maheshc01 in #198 and #224
  • Adopted the request body strictness rule: requests with JSON bodies containing properties not declared in the specification are rejected with 400 INVALID_ARGUMENT (not a breaking change per the API Design Guide, as such request bodies were never compliant with the specification), by @maheshc01 in #198
  • Added maxLength, format and pattern constraints to string fields (see Breaking changes for the limits that affect request bodies), by @maheshc01 in #198
  • Test definitions: OAS schema references now use the #/components/schemas/... form, by @maheshc01 in #224
  • Test definitions updated for the API changes in this release: the GET /subscriptions scenarios expect the paginated response, the subscription creation scenarios no longer check a subscriptionId property, and the invalid credential type scenario uses a value other than ACCESSTOKEN and PRIVATE_KEY_JWT, by @maheshc01 in #237

Fixed

  • Typo papplicationProfileId in the network-quality event corrected (see Breaking changes), by @maheshc01 in #198
  • Required properties of config.subscriptionDetail corrected (see Breaking changes), by @Kevsy in #209
  • Corrected the device identification sections of the API description, which referred to phoneNumber instead of the device object, and the error handling text: 404 NOT_FOUND is returned when the subscription identified by subscriptionId does not exist, by @maheshc01 in #224
  • The subscription-ended event is now mapped in the event discriminator under its event type org.camaraproject.connectivity-insights-subscriptions.v0.subscription-ended; 0.6.0 mapped it under org.camaraproject.connectivityinsights.v0.eventSubscriptionEnded, by @maheshc01 in #198
  • Test definitions: the subscription deletion scenarios accept 202 or 204 and expect terminationReason SUBSCRIPTION_DELETED, by @maheshc01 in #237

Removed

  • protocol values AMQP, KAFKA, MQTT3, MQTT5 and NATS, and sinkCredential.credentialType values PLAIN and REFRESHTOKEN, which were already not allowed by the 0.6.0 descriptions ("Only HTTP is allowed for now", "MUST be set to ACCESSTOKEN for now"), by @maheshc01 in #198
  • Test scenario for 403 SUBSCRIPTION_MISMATCH, replaced by the invalid event type scenario as the API supports a single event type, by @maheshc01 in #237

connectivity-insights 0.7.0

connectivity-insights 0.7.0 is an initial public version of this API.

Changes documented below are compared to version 0.6.0.

Breaking changes

  • applicationProfileId and applicationServer are now required in the POST /check-network-quality request body, by @maheshc01 in #198
  • New input limits on the POST /check-network-quality request body, by @maheshc01 in #198 and @Kevsy in #214
    • applicationServerPorts.ports and applicationServerPorts.ranges accept at most 100 entries, and port values (including device.ipv4Address.publicPort) must be between 1 and 65535 (previously 0 was accepted)
    • applicationServer.ipv4Address and applicationServer.ipv6Address must be valid IPv4 / IPv6 addresses, optionally with a mask, of at most 18 and 49 characters

Added

  • Error codes 422 UNSUPPORTED_IDENTIFIER and 422 UNNECESSARY_IDENTIFIER declared for POST /check-network-quality, with test scenarios for 422 MISSING_IDENTIFIER and 422 UNNECESSARY_IDENTIFIER, by @maheshc01 in #198 and #224
  • Test scenarios for 400 OUT_OF_RANGE (an application server port range whose start is greater than its end), 422 UNSUPPORTED_IDENTIFIER and 422 SERVICE_NOT_APPLICABLE, by @maheshc01 in #237

Changed

  • Aligned with Commonalities r4.4 (0.9.0, from 0.6): Device, DeviceResponse, Port and XCorrelator aligned with the Commonalities common schemas, error responses aligned with the r4.4 response catalogue and shared examples, and the mandatory info.description sections added, by @maheshc01 in #198 and #224
  • Adopted the request body strictness rule: requests with JSON bodies containing properties not declared in the specification are rejected with 400 INVALID_ARGUMENT (not a breaking change per the API Design Guide, as such request bodies were never compliant with the specification), by @maheshc01 in #198
  • Added maxLength, format, minimum and maximum constraints (see Breaking changes for the limits that affect request bodies), by @maheshc01 in #198
  • Test definitions: OAS schema references now use the #/components/schemas/... form, by @maheshc01 in #224

Fixed

  • Fixed missing type: object declarations in schema definitions, by @hdamker in #193
  • Corrected the error handling text: 404 NOT_FOUND is returned for an unknown applicationProfileId, 404 IDENTIFIER_NOT_FOUND when the device cannot be identified, by @maheshc01 in #224
  • Test definitions: the additional KPIs scenario no longer requires additionalKPIs, which is optional in the response, by @maheshc01 in #237

Removed

  • Error code 403 INVALID_TOKEN_CONTEXT removed from POST /check-network-quality, with the corresponding test scenario, by @maheshc01 in #224

Full Changelog: r3.2...r4.3