Repository navigation
Release Notes
This public release contains the definition and documentation of
- optimal-edge-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)
optimal-edge-discovery 0.2.0
optimal-edge-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
statusfield inEdgeCloudZonerenamed toedgeCloudZoneStatusby @DLondonoD in #29unknownvalue anddefault: unknownremoved from theedgeCloudZoneStatusenum; API providers always returnactiveorinactiveby @maheshc01 in #54- New input limits on the request body of POST /retrieve-optimal-edge-cloud-zones:
edgeCloudRegionis limited to a maximum of 64 characters matching^[A-Za-z0-9-]+$;device.ipv4Address.publicPortnow requires a value between 1 and 65535 (previously 0 was accepted) anddevice.networkAccessIdentifieris limited to 2048 characters, both inherited from the CommonalitiesDeviceschema by @maheshc01 in #46 - Request body of POST /retrieve-optimal-edge-cloud-zones is now marked as required;
applicationProfileIdwithin it was already mandatory by @maheshc01 in #60 - A device that cannot be identified from the provided identifiers is now reported as
404 IDENTIFIER_NOT_FOUNDinstead of404 NOT_FOUNDby @maheshc01 in #54 - When no Edge Cloud Zone matches the request, POST /retrieve-optimal-edge-cloud-zones now returns
200with an emptyedgeCloudZonesarray instead of404 NOT_FOUND(edgeCloudZonesnow hasminItems: 0) by @maheshc01 in #67
Added
x-correlatorresponse header in the200response of GET /regions by @maheshc01 in #54200response example with an emptyedgeCloudZonesarray, and404 NOT_FOUNDexamples for an unknownapplicationProfileIdand an unknownedgeCloudRegionby @maheshc01 in #67- Test scenarios for success cases of both operations (including result ordering, the
edgeCloudRegionfilter and an empty result), device identifier errors, request body validation, invalidx-correlator,401,403 PERMISSION_DENIED,404 NOT_FOUNDfor an unknownapplicationProfileIdoredgeCloudRegion, and429 TOO_MANY_REQUESTS/429 QUOTA_EXCEEDEDby @maheshc01 in #60 and #67
Changed
- Aligned with Commonalities r4.4 (0.9.0, from 0.6) by @maheshc01 in #46 and #60
- 400, 401 and 403 error responses aligned with the r4.4 response catalogue and shared examples; the 404, 422 and 429 responses list only the codes this API can return
- Device identifier fields aligned with the Commonalities
Deviceschema:maxLengthadded tophoneNumber, theipv4Addressaddresses andipv6Address(values were already bounded by their pattern or format), andpublicPortisint32(see Breaking changes for the limits onpublicPortandnetworkAccessIdentifier) ErrorInfobounds added:statusint32between 100 and 599,codemaxLength96,messagemaxLength512- Request bodies containing properties not declared in the API specification, at any nesting level, 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) - Mandatory
info.descriptionsections added or updated (identifying the device from the access token, additional error responses, authorization and authentication, request body strictness); the note on multiple device identifiers now states that the API provider uses one of them without matching checks;x-camara-commonalitiesset to0.9.0
- Response limits added by @maheshc01 in #46
- GET /regions now returns at most 20 regions, and
edgeCloudZonescontains at most 20 Edge Cloud Zones edgeCloudRegionis limited to a maximum of 64 characters matching^[A-Za-z0-9-]+$,edgeCloudZoneNameandedgeCloudProviderto a maximum of 64 characters without line breaks, andedgeCloudZoneIdandapplicationProfileIdto a maximum of 36 characters (UUID)
- GET /regions now returns at most 20 regions, and
statusfield inEdgeCloudZonerenamed toedgeCloudZoneStatusby @DLondonoD in #29- New input limits on the request body of POST /retrieve-optimal-edge-cloud-zones:
edgeCloudRegionis limited to a maximum of 64 characters matching^[A-Za-z0-9-]+$;device.ipv4Address.publicPortnow requires a value between 1 and 65535 (previously 0 was accepted) anddevice.networkAccessIdentifieris limited to 2048 characters, both inherited from the CommonalitiesDeviceschema by @maheshc01 in #46 - A device that cannot be identified from the provided identifiers is now reported as
404 IDENTIFIER_NOT_FOUNDinstead of404 NOT_FOUNDby @maheshc01 in #54 edgeCloudRegionandedgeCloudZoneStatusare now required in eachedgeCloudZonesentry by @maheshc01 in #54edgeCloudZonesis ordered from best to worst suitability for the given device and application profile; the first entry is the most optimal by @maheshc01 in #54- Request body of POST /retrieve-optimal-edge-cloud-zones is now marked as required;
applicationProfileIdwithin it was already mandatory by @maheshc01 in #60 - When no Edge Cloud Zone matches the request, POST /retrieve-optimal-edge-cloud-zones now returns
200with an emptyedgeCloudZonesarray instead of404 NOT_FOUND(edgeCloudZonesnow hasminItems: 0) by @maheshc01 in #67 404 NOT_FOUNDis returned when theapplicationProfileIddoes not identify an existing application profile, or theedgeCloudRegionis not one of the regions returned by GET /regions by @maheshc01 in #67- Clarified that
edgeCloudRegionin the request restricts the results to Edge Cloud Zones in that region by @maheshc01 in #67 - Expanded the Errors section of the API description to document when each error response is returned, including
403 PERMISSION_DENIED,404 IDENTIFIER_NOT_FOUNDfor a device that cannot be identified,404 NOT_FOUNDfor an unknownapplicationProfileIdoredgeCloudRegion, the422device identifier errors, and the empty result when no Edge Cloud Zone matches by @maheshc01 in #54, #60 and #67 - Aligned test definitions with CAMARA r4.4 testing artifacts by @maheshc01 in #60 and #67
Fixed
- Corrected the API descriptions to describe an ordered, possibly empty list of Edge Cloud Zones instead of the single closest zone by @maheshc01 in #54, #60 and #69
- Corrected the description of POST /retrieve-optimal-edge-cloud-zones to state that
applicationProfileIdis required by @maheshc01 in #54 - Corrected the request schema description (the device identifier is passed in the request body) and removed
networkAccessIdentifierfrom the request example by @maheshc01 in #60 - Corrected the response description for a device identified from the access token: only the
deviceobject is omitted, the response is not limited toapplicationProfileIdby @maheshc01 in #60 - Corrected the response example in
info.descriptionto use a valid UUID foredgeCloudZoneIdby @maheshc01 in #54
Removed
unknownvalue anddefault: unknownremoved from theedgeCloudZoneStatusenum; API providers always returnactiveorinactiveby @maheshc01 in #54404,422and429error responses removed from GET /regions, which cannot return them by @maheshc01 in #54400 OUT_OF_RANGEand403 INVALID_TOKEN_CONTEXTerror codes removed from both operations, which are not applicable to this API by @maheshc01 in #60
Full Changelog: r1.2...r2.3