Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
openapi: 3.0.3
info:
title: Region User Count
title: Region Device Count
description: |
This API allows for the API Consumer to Query the number of switch on users in the specified area.The query area can be a circle or a polygon composed of longitude and latitude points.
This API allows for the API Consumer to Query the number of switch on devices in the specified area.The query area can be a circle or a polygon composed of longitude and latitude points.
version: 0.1.1-wip
contact:
email: sp-ruc@lists.camaraproject.org
Expand All @@ -11,21 +11,21 @@ info:
url: https://www.apache.org/licenses/LICENSE-2.0.html
externalDocs:
description: Project documentation at CAMARA
url: https://github.com/camaraproject/RegionUserCount
url: https://github.com/camaraproject/RegionDeviceCount
servers:
- url: '{apiRoot}/regionUserCount/v0'
- url: '{apiRoot}/regionDeviceCount/v0'
variables:
apiRoot:
default: http://localhost:9091
description: API root
tags:
- name: Region User Count
description: This API allows for the API Consumer to Query the number of switch on users in the specified area.The query area can be a circle or a polygon composed of longitude and latitude points.
- name: Region Device Count
description: This API allows for the API Consumer to Query the number of switch on devices in the specified area.The query area can be a circle or a polygon composed of longitude and latitude points.
paths:
/count:
post:
tags:
- Region User Count
- Region Device Count
summary: API operation to get the number of switch on users in the specified area.
description: |
get the number of switch on users in the specified area.
Expand All @@ -43,7 +43,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/RegionUserCountRequestBody'
$ref: '#/components/schemas/RegionDeviceCountRequestBody'
examples:
LOCATION_CIRCLE:
$ref: "#/components/examples/RETRIEVAL_CIRCLE"
Expand All @@ -61,7 +61,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/RegionUserCountResponse'
$ref: '#/components/schemas/RegionDeviceCountResponse'
'400':
$ref: '#/components/responses/Generic400'
'401':
Expand All @@ -76,14 +76,14 @@ paths:
$ref: '#/components/responses/Generic504'
security:
- openId:
- region-user-count
- region-device-count
components:
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://example.com/.well-known/openid-configuration
schemas:
RegionUserCountRequestBody:
RegionDeviceCountRequestBody:
type: object
description: Payload to get the user count of the specific region.
properties:
Expand Down Expand Up @@ -173,9 +173,9 @@ components:
format: double
minimum: -180
maximum: 180
RegionUserCountResponse:
RegionDeviceCountResponse:
type: object
description: RegionUserCount result
description: RegionDeviceCount result
required:
- count
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RegionUserCount API User Story
# RegionDeviceCount API User Story

## User Story 1 - Emergency Rescue

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
| **Field** | Description |
| ---- | ----- |
| API family name | Region Device Count |
| API family owner | China Unicom |
| Initial API Contributors | Fan Yang - China Unicom , Jin Xu - Huawei |
| API summary | **Description** <br> This API allows for the API Consumer to query the number of active users (i.e., excluding idle mode users). lin the specified area. The query area can be a circle or a polygon composed of longitude and latitude points. <br> **Use Cases** <br> User Story 1 : Emergency Rescue <br> - As an emergency rescue worker, I hope to be able to obtain the number of users in an area where a special emergency activities could be needed through an API, so as to quickly understand the situation, plan and guide the rescue work. <br>|
| Technical viability | This API is based on real-time location information expansion. It allows obtaining, on a per operator basis, the number of active users in a certain area based on their real-time location. |
| Commercial viability | For use in emergency rescue, disaster relief, intelligent transportation, smart tourism and other scenarios|
| YAML code available? | NO<br>To be provided |
| Validated in lab/productive environments? | YES<br>Available in China UniCom test environment |
| Validated with real customers? | YES<br>For emergency rescue use by the Blue Eye Emergency Rescue Platform |
| Validated with operators? | YES<br>Available for China Unicom in China |
| Supporters in API Backlog Working Group | China Unicom,Huawei |

This file was deleted.