Skip to content

Commit c78b4c7

Browse files
authored
Merge pull request #228 from camaraproject/Kevsy-patch-9
Simple Edge Discovery 1.0.0
2 parents 53b1950 + ed32560 commit c78b4c7

File tree

1 file changed

+63
-5
lines changed

1 file changed

+63
-5
lines changed

code/API_definitions/Discovery/simple_edge_discovery.yaml

+63-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
openapi: 3.0.3
33
info:
44
title: Simple Edge Discovery API
5-
version: 0.9.4-rc.1
5+
version: 1.0.0
66
description: |
77
# Find the closest Edge Cloud Zone
88
---
@@ -149,8 +149,7 @@ info:
149149
150150
CAMARA guidelines defines a set of authorization flows which can grant API
151151
clients access to the API functionality, as outlined in the document
152-
[CAMARA-API-access-and-user-consent.md]
153-
(https://github.com/camaraproject/IdentityAndConsentManagement/blob/main/documentation/CAMARA-API-access-and-user-consent.md).
152+
[CAMARA-API-access-and-user-consent.md](https://github.com/camaraproject/IdentityAndConsentManagement/blob/main/documentation/CAMARA-API-access-and-user-consent.md).
154153
Which specific authorization flows are to be used will be determined during
155154
onboarding process, happening between the API Client and the Telco Operator
156155
exposing the API, taking into account the declared purpose for accessing
@@ -183,7 +182,7 @@ servers:
183182
default: https://localhost:443
184183
description: API root.
185184
basePath:
186-
default: simple-edge-discovery/v0
185+
default: simple-edge-discovery/v1
187186
description: Base path for the Simple Edge Discovery API.
188187

189188
tags:
@@ -196,7 +195,7 @@ paths:
196195
get:
197196
security:
198197
- openId:
199-
- simple-edge-discovery-read-closest
198+
- simple-edge-discovery:edge-cloud-zones:read
200199
operationId: getEdgeCloudZones
201200
parameters:
202201
- name: filter
@@ -246,6 +245,19 @@ paths:
246245
prefixed with '+'.
247246
schema:
248247
$ref: "#/components/schemas/PhoneNumber"
248+
249+
- name: X-Correlator
250+
in: header
251+
required: false
252+
description: |
253+
When the API Consumer includes the "X-Correlator" header in the
254+
request, the API provider must include it in the response with
255+
the same value that was used in the request. Otherwise, it is
256+
optional to include the "X-Correlator" header in the response with
257+
any valid value. Recommendation is to use UUID for values.
258+
schema:
259+
type: string
260+
format: uuid
249261

250262
responses:
251263
"200":
@@ -294,6 +306,19 @@ components:
294306
description: OpenID Provider Configuration Information.
295307
type: openIdConnect
296308
openIdConnectUrl: .well-known/openid-configuration
309+
310+
headers:
311+
X-Correlator:
312+
description: |
313+
When the API Consumer includes the "X-Correlator" header in the request,
314+
the API provider must include it in the response with the same value t
315+
hat was used in the request. Otherwise, it is optional to include the
316+
"X-Correlator" header in the response with any valid value.
317+
Recommendation is to use UUID for values.
318+
required: false
319+
schema:
320+
type: string
321+
format: uuid
297322

298323
schemas:
299324
EdgeCloudZones:
@@ -388,6 +413,9 @@ components:
388413
responses:
389414
400BadRequest:
390415
description: Bad Request
416+
headers:
417+
X-Correlator:
418+
$ref: "#/components/headers/X-Correlator"
391419
content:
392420
application/json:
393421
schema:
@@ -434,6 +462,9 @@ components:
434462
}
435463
401Unauthorized:
436464
description: Unauthorized
465+
headers:
466+
X-Correlator:
467+
$ref: "#/components/headers/X-Correlator"
437468
content:
438469
application/json:
439470
schema:
@@ -450,6 +481,9 @@ components:
450481

451482
403Forbidden:
452483
description: Forbidden
484+
headers:
485+
X-Correlator:
486+
$ref: "#/components/headers/X-Correlator"
453487
content:
454488
application/json:
455489
schema:
@@ -466,6 +500,9 @@ components:
466500

467501
404NotFound:
468502
description: Subscriber Not Found
503+
headers:
504+
X-Correlator:
505+
$ref: "#/components/headers/X-Correlator"
469506
content:
470507
application/json:
471508
schema:
@@ -484,6 +521,9 @@ components:
484521

485522
405MethodNotAllowed:
486523
description: Method Not Allowed
524+
headers:
525+
X-Correlator:
526+
$ref: "#/components/headers/X-Correlator"
487527
content:
488528
application/json:
489529
schema:
@@ -503,6 +543,9 @@ components:
503543

504544
406Unacceptable:
505545
description: Not Acceptable
546+
headers:
547+
X-Correlator:
548+
$ref: "#/components/headers/X-Correlator"
506549
content:
507550
application/json:
508551
schema:
@@ -520,6 +563,9 @@ components:
520563

521564
429TooManyRequests:
522565
description: Too Many Requests
566+
headers:
567+
X-Correlator:
568+
$ref: "#/components/headers/X-Correlator"
523569
content:
524570
application/json:
525571
schema:
@@ -539,6 +585,9 @@ components:
539585

540586
500InternalServerError:
541587
description: Internal Server Error
588+
headers:
589+
X-Correlator:
590+
$ref: "#/components/headers/X-Correlator"
542591
content:
543592
application/json:
544593
schema:
@@ -552,6 +601,9 @@ components:
552601

553602
502BadGateway:
554603
description: Bad Gateway
604+
headers:
605+
X-Correlator:
606+
$ref: "#/components/headers/X-Correlator"
555607
content:
556608
application/json:
557609
schema:
@@ -565,6 +617,9 @@ components:
565617

566618
503ServiceUnavailable:
567619
description: Service Unavailable
620+
headers:
621+
X-Correlator:
622+
$ref: "#/components/headers/X-Correlator"
568623
content:
569624
application/json:
570625
schema:
@@ -578,6 +633,9 @@ components:
578633

579634
504GatewayTimeout:
580635
description: Gateway Time-Out
636+
headers:
637+
X-Correlator:
638+
$ref: "#/components/headers/X-Correlator"
581639
content:
582640
application/json:
583641
schema:

0 commit comments

Comments
 (0)