Skip to content

Commit 0063323

Browse files
Update Application_Endpoint_Discovery_API.yaml
1 parent 646a680 commit 0063323

File tree

1 file changed

+33
-20
lines changed

1 file changed

+33
-20
lines changed

code/API_definitions/Application_Endpoint_Discovery_API.yaml

+33-20
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@ info:
44
title: Application Endpoint Discovery API
55
version: 0.1.0-wip
66
description: |
7-
# Connect to the Nearest Application Endpoint
7+
# Connect to the Optimal Application Endpoint
88
---
99
# Overview
1010
The Application Discovery API extends beyond the capabilities of the
1111
Simple Edge Discovery API by not only locating the nearest Edge Cloud Zone
12-
but also directly linking to the application endpoints within those zones.
13-
This crucial enhancement enables immediate connection to the most relevant
12+
but also directly linking to the application endpoints within those
13+
Edge Cloud Zones.
14+
This API intent enables immediate connection to the most relevant
1415
service endpoint, optimizing the application's interaction with
1516
edge computing resources.
1617
# Introduction
1718
Operators often host multiple Edge Cloud Zones across various territories.
18-
Connecting an application directly to the nearest operational service
19-
endpoint minimizes latency because data travels the shortest possible route.
19+
Connecting an application directly to the optimal Edge Cloud Zone
20+
endpoint may minimize latency.
2021
Unlike the Simple Edge Discovery API, which only provides the zone location,
21-
this API calculates and provides the actual endpoints within the nearest
22+
this API provides the actual endpoints within the nearest
2223
zone. This approach ensures that developers can instantly integrate these
23-
endpoints into their applications, improving performance and user
24+
endpoints into their applications, improving the user
2425
experience.
2526
After identifying the nearest application endpoint through the API,
2627
developers can:
2728
* Connect their application client directly to the chosen application
28-
endpoint, enhancing the responsiveness and reliability of the service.
29-
* Deploy new instances if no suitable endpoints are within the identified
29+
endpoint, enhancing the responsiveness of the service.
30+
* If no suitable endpoints are available, the
31+
developer can use the API EdgeApplicationManagement in order to
32+
instantiate a new instance.
3033
Edge Cloud Zone, optimizing their service distribution based on real-time
3134
network geography.
3235
# Quick Start
3336
This API can be utilized by both client applications on user devices and
3437
by servers. It uses a straightforward endpoint:
3538
`/apps-endpoints?filter=closest`.
36-
API consumers are required to authenticate via OAuth2 to obtain access
37-
tokens,
38-
which must be included in the `Authorization` header of API requests.
3939
For accurate service localization, the API requires device-specific
4040
identifiers such as:
4141
* `IP-Address`: Public IP address of the user device, which can be fetched
@@ -127,15 +127,15 @@ servers:
127127
default: application-endpoint-discovery/vwip
128128
description: Base path for the Application Endpoint Discovery.
129129
tags:
130-
- name: Discovery
130+
- name: Application Endpoint Discovery
131131
description: |
132132
Find the closest App Instance Endpoint to the user device.
133133
paths:
134-
/apps-endpoints:
134+
/app-endpoints:
135135
get:
136136
security:
137137
- openId:
138-
- application-endpoint-discovery:apps-endpoints:read
138+
- application-endpoint-discovery:app-endpoints:read
139139
operationId: getAppEndpoints
140140
parameters:
141141
- name: filter
@@ -210,7 +210,7 @@ paths:
210210
content:
211211
application/json:
212212
schema:
213-
$ref: "#/components/schemas/AccessEndpoint"
213+
$ref: "#/components/schemas/AccessEndpoints"
214214
"400":
215215
$ref: "#/components/responses/400BadRequest"
216216
"401":
@@ -264,9 +264,11 @@ components:
264264
AppId:
265265
type: string
266266
format: uuid
267-
description: A globally unique identifier associated with the application.
268-
OP generates this identifier when the application is submitted over NBI.
269-
AccessEndpoint:
267+
description: A globally unique identifier associated
268+
with the application.
269+
This GUID will have been previously provided by the
270+
Edge Cloud Zone provider.
271+
AccessEndpoints:
270272
type: object
271273
description: |
272274
Application Endpoint for an especific instance that is
@@ -454,7 +456,7 @@ components:
454456
to perform this action"
455457
}
456458
404NotFound:
457-
description: Subscriber Not Found
459+
description: Not Found
458460
headers:
459461
X-Correlator:
460462
$ref: "#/components/headers/X-Correlator"
@@ -473,6 +475,17 @@ components:
473475
"status": 404,
474476
"message": "No device found for the specified parameters"
475477
}
478+
EndpointNotFound:
479+
description: |
480+
No endpoint instance found for the specified parameters,
481+
meaning the closest Edge Cloud Zone cannot be determined.
482+
value:
483+
{
484+
"code": "NOT_FOUND",
485+
"status": 404,
486+
"message": "No endpoint instance found for the
487+
specified parameters"
488+
}
476489
405MethodNotAllowed:
477490
description: Method Not Allowed
478491
headers:

0 commit comments

Comments
 (0)