Skip to content

Initial contribution of API spec location.yaml v0.1.0#3

Merged
shilpa-padgaonkar merged 2 commits intocamaraproject:mainfrom
akoshunyadi:contribution-location-yaml-0.1.0
Nov 18, 2022
Merged

Initial contribution of API spec location.yaml v0.1.0#3
shilpa-padgaonkar merged 2 commits intocamaraproject:mainfrom
akoshunyadi:contribution-location-yaml-0.1.0

Conversation

@akoshunyadi
Copy link
Contributor

@akoshunyadi akoshunyadi commented Oct 1, 2022

Initial contribution of the API spec location.yaml with the version 0.1.0. #4
The API enables to verify the current position of the UE against given coordinates and accuracy.

@MarkusKuemmerle MarkusKuemmerle requested review from jlurien and removed request for jordonezlucena October 26, 2022 13:56
Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Telefónica, after review with our Product and Network Engineering teams, there are several changes we'd like to promote in this API:

  • POST /verify:
    • Input:
      • Additionally to coordinates, we see a use case for providing a postcode, so API would support oneOf [Coordinates, Postcode].
      • To identify the device we think that we have to move from the current ueId object to a more convenient identifier, to avoid ambiguity in how the mobile connectivity of the device is to be identified, and to deal properly with sensible information. The proposal for this is being discussed within Commonalities, as it is transversal to almost every API: WorkingGroups Issue #101
    • Output:
      • We identify several possibilities when comparing the provided location with the network location, which cannot properly be covered by a single boolean. We propose a richer response:
    VerifyLocationResponse:
      type: object
      required:
        - verification_result
      properties:
        verification_result:
          $ref: '#/components/schemas/VerificationResult'
        success_rate:
          $ref: '#/components/schemas/SuccessRate'
    VerificationResult:
      description: |-
        Verification request result:
        * `match` when the Network locates the device within the requested area
        * `not_match` when the requested area completely differs from the area where the Network locates the device
        * `partial_match` when the requested area is partially included in the area where the Network locates the device but not entirely. In this case `success_rate` must be included in the response
        * `undetermined` when the area included in the request body is smaller than the network capacities to locate the device.
      type: string
      enum:
        - match
        - not_match
        - partial_match
        - undetermined
    SuccessRate:
      description: SuccessRate estimated for location verification in percent
      type: number
      minimum: 0
      maximum: 100
      example: 74
  • securitySchemes:
    • Only three_legged should be considered, requiring user authentication and consent gathering

We will launch a separated PR with a new proposal incorporating all these comments.

Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shilpa-padgaonkar To move this API forward, I suggest to merge this initial version as v0.1.0, and start a new dev branch to make contributions for v0.2.0. We can then move our comments there.

Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change name more specifically to "Device Location Verification"

- BasicAuth: []
- apiKey: []
- three_legged:
- device-location-read
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- device-location-read
- device-location-verification-verify-read

default: http://localhost:9091
description: API root
basePath:
default: location/v0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: location/v0
default: device-location-verification/v0

description: API root
basePath:
default: location/v0
description: Base path for the device location API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Base path for the device location API
description: Base path for the device location verification API

@@ -0,0 +1,253 @@
openapi: 3.0.3
info:
title: Device location API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Device location API
title: Device Location Verification API

Commenting out apikey basic auth security schemes to stay compliant with the approved authN-authZ concept in commonalities
@shilpa-padgaonkar
Copy link
Collaborator

As agreed, merging the pull request so that we can have a base version. New issues should be created to bring in further improvements in the spec.

@shilpa-padgaonkar shilpa-padgaonkar merged commit 4fbc988 into camaraproject:main Nov 18, 2022
@akoshunyadi akoshunyadi deleted the contribution-location-yaml-0.1.0 branch May 15, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants