Skip to content

Commit

Permalink
Merge branch 'main' into testing-location-verification
Browse files Browse the repository at this point in the history
  • Loading branch information
jlurien committed Jun 14, 2024
2 parents 421a1a7 + f86d784 commit 3320160
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
# These are the default owners for the whole content of this repository. The default owners are automatically added as reviewers when you open a pull request, unless different owners are specified in the file.

* @bigludo7 @jlurien

# Owners of the CODEOWNER and Maintainer.md files are the admins of CAMARA (to allow them to keep the teams within the CAMARA organization in sync in case of changes)
/CODEOWNERS @camaraproject/admins
/MAINTAINERS.MD @camaraproject/admins
18 changes: 9 additions & 9 deletions MAINTAINERS.MD
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
| Org | Name |
| -----------------------| ----------------------------------------------------|
| Deutsche Telekom AG | Noel Wirzius |
| Ericsson | Joachim Dahlgren |
| Orange | Ludovic Robert |
| Orange | Sylvain Morel |
| Telefonica | Jose Luis Urien |
| Vodafone | Kevin Smith |
| Verizon | Mahesh Chapalamadugu |
| Org | Name | GitHub Username |
| -----------------------| -------------------------|---------------------------|
| Deutsche Telekom AG | Noel Wirzius | NoelWirzius |
| Ericsson | Joachim Dahlgren | JoachimDahlgren |
| Orange | Ludovic Robert | bigludo7 |
| Orange | Sylvain Morel | SylMOREL |
| Telefonica | Jose Luis Urien | jlurien |
| Vodafone | Kevin Smith | Kevsy |
| Verizon | Mahesh Chapalamadugu | maheshc01 |
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
title: Device Geofencing
title: Device Geofencing Subscriptions
description: |
API to create, retrieve and delete event subscriptions to realize geofencing for a user device.
Expand Down Expand Up @@ -37,11 +37,11 @@ info:
It is mandatory in the subscription to provide the event `type` for which the client would like to subscribe.
Following event ``type`` are managed for this API:
- ``org.camaraproject.geofencing.v0.area-entered`` - Event triggered when the device enters the given area
- ``org.camaraproject.geofencing-subscriptions.v0.area-entered`` - Event triggered when the device enters the given area
- ``org.camaraproject.geofencing.v0.area-left`` - Event triggered when the device leaves the given area
- ``org.camaraproject.geofencing-subscriptions.v0.area-left`` - Event triggered when the device leaves the given area
Note: Additionally to these list, ``org.camaraproject.geofencing.v0.subscription-ends`` notification `type` is sent when the subscription ends.
Note: Additionally to these list, ``org.camaraproject.geofencing-subscriptions.v0.subscription-ends`` notification `type` is sent when the subscription ends.
This notification does not require dedicated subscription.
It is used when:
Expand All @@ -67,13 +67,13 @@ info:
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.2.0-wip
version: wip
externalDocs:
description: Product documentation at Camara
url: https://github.com/camaraproject/

servers:
- url: "{apiRoot}/geofencing/v0"
- url: "{apiRoot}/geofencing-subscriptions/v0"
variables:
apiRoot:
default: http://localhost:9091
Expand Down Expand Up @@ -168,7 +168,8 @@ paths:
$ref: "#/components/responses/Generic503"
security:
- openId:
- geofencing:subscriptions:write
- geofencing-subscriptions:org.camaraproject.geofencing-subscriptions.v0.area-entered:create
- geofencing-subscriptions:org.camaraproject.geofencing-subscriptions.v0.area-left:create
get:
tags:
- Geofencing subscriptions
Expand Down Expand Up @@ -202,7 +203,7 @@ paths:
$ref: "#/components/responses/Generic503"
security:
- openId:
- geofencing:subscriptions:read
- geofencing-subscriptions:read

/subscriptions/{subscriptionsId}:
get:
Expand Down Expand Up @@ -243,7 +244,7 @@ paths:
$ref: "#/components/responses/Generic503"
security:
- openId:
- geofencing:subscriptions:read
- geofencing-subscriptions:read
delete:
tags:
- Geofencing subscriptions
Expand Down Expand Up @@ -279,7 +280,7 @@ paths:
$ref: "#/components/responses/Generic503"
security:
- openId:
- geofencing:subscriptions:delete
- geofencing-subscriptions:delete

components:
securitySchemes:
Expand Down Expand Up @@ -506,8 +507,8 @@ components:
area-left - Event triggered when the device leaves the given area
enum:
- org.camaraproject.geofencing.v0.area-entered
- org.camaraproject.geofencing.v0.area-left
- org.camaraproject.geofencing-subscriptions.v0.area-entered
- org.camaraproject.geofencing-subscriptions.v0.area-left

NotificationEventType:
type: string
Expand All @@ -518,9 +519,9 @@ components:
subscription-ends - Event triggered when the subscription ends
enum:
- org.camaraproject.geofencing.v0.area-entered
- org.camaraproject.geofencing.v0.area-left
- org.camaraproject.geofencing.v0.subscription-ends
- org.camaraproject.geofencing-subscriptions.v0.area-entered
- org.camaraproject.geofencing-subscriptions.v0.area-left
- org.camaraproject.geofencing-subscriptions.v0.subscription-ends

NotificationUrl:
type: string
Expand Down Expand Up @@ -622,9 +623,9 @@ components:
discriminator:
propertyName: "type"
mapping:
org.camaraproject.geofencing.v0.area-left: "#/components/schemas/EventAreaLeft"
org.camaraproject.geofencing.v0.area-entered: "#/components/schemas/EventAreaEntered"
org.camaraproject.geofencing.v0.subscription-ends: "#/components/schemas/EventSubscriptionEnds"
org.camaraproject.geofencing-subscriptions.v0.area-left: "#/components/schemas/EventAreaLeft"
org.camaraproject.geofencing-subscriptions.v0.area-entered: "#/components/schemas/EventAreaEntered"
org.camaraproject.geofencing-subscriptions.v0.subscription-ends: "#/components/schemas/EventSubscriptionEnds"

EventAreaLeft:
description: event structure for event when the device leaves the area
Expand Down Expand Up @@ -849,13 +850,13 @@ components:
latitude: 50.735851
longitude: 7.10066
radius: 2000
type: org.camaraproject.geofencing.v0.area-entered
type: org.camaraproject.geofencing-subscriptions.v0.area-entered
subscriptionExpireTime: 2024-03-22T05:40:58.469Z
CIRCLE_AREA_ENTERED:
value:
id: "123655"
source: https://notificationSendServer12.supertelco.com
type: org.camaraproject.geofencing.v0.area-entered
type: org.camaraproject.geofencing-subscriptions.v0.area-entered
specversion: "1.0"
datacontenttype: application/json
time: 2023-03-22T05:40:23.682Z
Expand All @@ -873,7 +874,7 @@ components:
value:
id: "123655"
source: https://notificationSendServer12.supertelco.com
type: org.camaraproject.geofencing.v0.area-left
type: org.camaraproject.geofencing-subscriptions.v0.area-left
specversion: "1.0"
datacontenttype: application/json
time: 2023-03-22T05:40:23.682Z
Expand All @@ -892,7 +893,7 @@ components:
value:
id: "123655"
source: https://notificationSendServer12.supertelco.com
type: org.camaraproject.geofencing.v0.subscription-ends
type: org.camaraproject.geofencing-subscriptions.v0.subscription-ends
specversion: "1.0"
datacontenttype: application/json
time: 2023-03-22T05:40:23.682Z
Expand Down
4 changes: 2 additions & 2 deletions code/API_definitions/location-retrieval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ info:
* **Max Age**: Maximum age of the location information which is accepted for the location retrieval (in seconds).
* Absence of maxAge means "any age" is acceptable for the client. In other words, this is like maxAge=infinite. In this case the system may still return lastLocationTime, if available. If the system is not able to provide location a error 404 with code LOCATION_RETRIEVAL.DEVICE_NOT_FOUND is send back.
* maxAge=0 means a fresh calculation is requested by the client. If the system is not able to provide fresh location an error 422 with code LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_AGE is send back.
* Absence of `maxAge` means that "any age" is acceptable for the client. In other words, this is like `maxAge`=infinite. The system will return `lastLocationTime` in the response. If the system is not able to provide location, an error 404 with code LOCATION_RETRIEVAL.DEVICE_NOT_FOUND is sent back.
* `maxAge`=0 means that a fresh calculation is requested by the client. If the system is not able to provide the fresh location, an error 422 with code LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_AGE is sent back.
* **Last Location Time** : Last date and time when the device was localized.
Expand Down

0 comments on commit 3320160

Please sign in to comment.