Repository navigation
Release Notes
This public release contains the definition and documentation of
- application-endpoint-discovery 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)
application-endpoint-discovery 0.2.0
application-endpoint-discovery 0.2.0 is an initial public version of this API.
Changes documented below are compared to version 0.1.0.
- API definition with inline documentation:
Breaking changes
device.ipv4Address.publicPortnow requires a value between 1 and 65535 (previously 0 was accepted), inherited from the CommonalitiesPortschema by @maheshc01 in #42
Added
- Added API-specific
422 APPLICATION_ENDPOINT_DISCOVERY.IDENTIFIER_MISMATCHerror code, returned when bothappIdandapplicationEndpointsIdare provided but theapplicationEndpointsIdis not associated with the application identified byappIdby @urvika-v in #48 - Added API-specific
404 NOT_FOUNDexamples forappIdnot found andapplicationEndpointsIdnot found by @urvika-v in #48 - Added test scenarios for
422 APPLICATION_ENDPOINT_DISCOVERY.IDENTIFIER_MISMATCH, forappIdandapplicationEndpointsIdprovided together, for multiple endpoints ordered by optimality, and for400 INVALID_ARGUMENTon empty request body, non-schema-compliant application identifiers and invalidx-correlatorby @maheshc01 in #54
Changed
- Synced with CAMARA Commonalities r4.4 / 0.9.0 (previously 0.6) and Identity and Consent Management r4.2 (0.5.0) by @maheshc01 in #42 and #61
- Common definitions reused via
$refintoCAMARA_common.yaml; error responses aligned with the r4.4 response catalogue and shared examples - Added the mandatory
info.descriptionsections (authorization and authentication, additional error responses, request body strictness, identifying the device from the access token) - Request bodies with undeclared properties are rejected with
400 INVALID_ARGUMENT(Commonalities "Request body strictness" rule; not a breaking change per the API Design Guide, as such request bodies were never compliant with the specification) device.ipv4Address.publicPortminimum raised from 0 to 1 (see Breaking changes)Devicesemantics follow Commonalities: when several device identifiers are provided, the API provider uses one of them without checking that they identify the same device, and echoes the one used indevicein the response- Added
maxLength,formatandpatternconstraints to string fields,maxItems: 50to theapplicationEndpointsresponse array, andmaxItems: 1toipv4Addressesandipv6Addresses(one address per endpoint; their descriptions state a single address) ipv4Addressesandipv6Addressesitems now reference the commonSingleIpv4AddressandSingleIpv6Addressschemas
- Common definitions reused via
applicationEndpointsarray is now documented as ordered by optimality descending: the first entry is the most optimal endpoint by @urvika-v in #48edgeCloudZoneStatusis now a required field inEdgeCloudZoneanddefault: unknownis removed. API providers must always return an explicit status value (active,inactiveorunknown). This is a new obligation on API providers and is not a breaking change for API consumers by @urvika-v in #48- Documented behavior when both
appIdandapplicationEndpointsIdare provided: consistent →200 OKwith both identifiers echoed; mismatched →422 APPLICATION_ENDPOINT_DISCOVERY.IDENTIFIER_MISMATCH; the400 INVALID_ARGUMENTexample states that at least one of them must be provided by @urvika-v in #48 and by @maheshc01 in #54 - Documented absence semantics for optional response fields (
edgeCloudZone,applicationEndpointDescription,edgeCloudRegion,applicationServerProviderName,applicationProfileId) by @urvika-v in #48 - Test definitions aligned with the documented error codes and semantics, with the Commonalities API Testing Guidelines and with the CAMARA r4.4 testing artifacts by @maheshc01 in #54 and #61
Fixed
info.descriptionand examples aligned with the schema: endpoint definition requires at least one offqdn,ipv4Addresses,ipv6Addresses(property names corrected to camelCase);404 IDENTIFIER_NOT_FOUNDis documented for a device identifier that cannot be matched, while token-based device identification errors are422 MISSING_IDENTIFIER/422 UNNECESSARY_IDENTIFIERby @maheshc01 in #54- Removed
networkAccessIdentifierfrom the "Identify Device By Multiple Identifiers" request example by @maheshc01 in #61
Removed
- Removed
INVALID_TOKEN_CONTEXTfrom the403response: the API scope does not allow confirming whether request identifiers match the access token by @urvika-v in #48 - Removed
OUT_OF_RANGEfrom the400response: the API has no range-checked input fields by @urvika-v in #48 - Removed
SERVICE_NOT_APPLICABLEfrom the422response: not applicable to this API by @urvika-v in #48 - Removed test scenarios for
422 SERVICE_NOT_APPLICABLEand503 UNAVAILABLE, which are not documented in the API definition by @maheshc01 in #54
Full Changelog: r1.2...r2.3