Skip to content

Commit 77651aa

Browse files
authored
Merge pull request #58 from SoftwareAG/updating-openAPI-spec
Updating Open API Spec and its titles
2 parents 53cd291 + 80d47de commit 77651aa

File tree

10 files changed

+727
-86
lines changed

10 files changed

+727
-86
lines changed

apis/openapi-specifications/api-management.yaml

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
openapi: '3.0.2'
22
info:
3-
title: API Management Service
3+
title: API Control Plane APIs Management Service
44
version: '1.0.0'
55
description : API Control Plane allows you to view the APIs, view multiple versions of an API as a separate API, and view the API specification file. API Control Plane exposes REST APIs to help you create, read, update, and delete (CRUD) APIs.
66
servers:
7-
- url: "{protocol}://{hostname}:{port}/api/assetcatalog/v1"
8-
description: This is the endpoint where the Asset-catalog API is accessible from the server.
9-
variables:
10-
protocol:
11-
default: https
12-
enum:
13-
- http
14-
- https
15-
description: The protocol supported by the server - HTTP or HTTPS. Default is HTTPS.
16-
hostname:
17-
default: localhost
18-
description: The domain name of the server where the API is hosted. The hostname must be resolvable by the DNS lookup.
19-
port:
20-
default: "443"
21-
description: The port number where the REST API is running on the server. The default port for HTTPS is 443 and HTTP is 80 but it can also be any valid port.
7+
- url: "{protocol}://{hostname}:{port}/api/assetcatalog/v1"
8+
description: This is the endpoint where the Asset-catalog API is accessible from the server.
9+
variables:
10+
protocol:
11+
default: https
12+
enum:
13+
- http
14+
- https
15+
description: The protocol supported by the server - HTTP or HTTPS. Default is HTTPS.
16+
hostname:
17+
default: localhost
18+
description: The domain name of the server where the API is hosted. The hostname must be resolvable by the DNS lookup.
19+
port:
20+
default: "443"
21+
description: The port number where the REST API is running on the server. The default port for HTTPS is 443 and HTTP is 80 but it can also be any valid port.
2222
paths:
2323
/apis:
2424
get:
@@ -199,6 +199,8 @@ paths:
199199
description: This status code indicates that either the user did not provide any user credentials or the user does not have access rights to create an API.
200200
'400':
201201
$ref: '#/components/responses/4XX_bad_request_error'
202+
'409':
203+
$ref: '#/components/responses/4X9_conflict_request_error'
202204
'500':
203205
$ref: '#/components/responses/internal_server_error'
204206
/runtimes/{runtimeId}/apis/{apiId}:
@@ -214,7 +216,7 @@ paths:
214216
example: d3841d21-ef31-4b95-a82a-ed08f10a20e5
215217
- name: apiId
216218
in: path
217-
description: Unique identifier for the API.
219+
description: Unique identifier for the API.
218220
required: true
219221
schema:
220222
type: string
@@ -263,7 +265,7 @@ paths:
263265
example: d3841d21-ef31-4b95-a82a-ed08f10a20e5
264266
- name: apiId
265267
in: path
266-
description: Unique identifier for the API.
268+
description: Unique identifier for the API.
267269
required: true
268270
schema:
269271
type: string
@@ -331,7 +333,7 @@ paths:
331333
example: d3841d21-ef31-4b95-a82a-ed08f10a20e5
332334
- name: apiId
333335
in: path
334-
description: Unique identifier for the API.
336+
description: Unique identifier for the API.
335337
required: true
336338
schema:
337339
type: string
@@ -362,7 +364,7 @@ components:
362364
example: 1665653646000
363365
apiId:
364366
type: string
365-
description: Unique identifier for the API.
367+
description: Unique identifier for the API.
366368
example: ea488aed-2588-4988-990d-8342d0bca78
367369
runtimeId:
368370
type: string
@@ -380,7 +382,7 @@ components:
380382
properties:
381383
id:
382384
type: string
383-
description: Unique identifier for the API.
385+
description: Unique identifier for the API.
384386
example: ea488aed-2588-4988-990d-8342d0bca78
385387
name:
386388
type: string
@@ -420,7 +422,7 @@ components:
420422
example: ACTIVE
421423
version:
422424
type: string
423-
description: Version of the API.
425+
description: Version of the API.
424426
example: v2.0
425427
versionSetId:
426428
type: string
@@ -574,28 +576,37 @@ components:
574576
type: string
575577
example: This response indicates that the server encountered an error.
576578
responses:
577-
internal_server_error:
579+
internal_server_error:
578580
description: Internal server error
579581
content:
580582
application/json:
581583
schema:
582-
$ref: "#/components/schemas/ErrorMessage"
584+
$ref: "#/components/schemas/ErrorMessage"
583585
example:
584586
errorDetails:
585587
- This response indicates that the server encountered an error.
586-
4XX_bad_request_error:
587-
description: This status code indicates that the request body is bad.
588-
content:
589-
application/json:
590-
schema:
591-
$ref: "#/components/schemas/ErrorMessage"
592-
example:
593-
errorDetails:
594-
- "apiType: API Type is mandatory."
588+
4XX_bad_request_error:
589+
description: This status code indicates that the request body is bad.
590+
content:
591+
application/json:
592+
schema:
593+
$ref: "#/components/schemas/ErrorMessage"
594+
example:
595+
errorDetails:
596+
- "apiType: API Type is mandatory."
597+
4X9_conflict_request_error:
598+
description: This status code indicates that the request cannot be executed as there is a conflict with the existing resource with the requested resource.
599+
content:
600+
application/json:
601+
schema:
602+
$ref: "#/components/schemas/ErrorMessage"
603+
example:
604+
errorDetails:
605+
- "API with Id ac379195-32cf-5198-8e7b-38fe21120309 already exist for Runtime with Id 5c9cbee5-a52b-4c66-a6b3-bda915ededa8."
595606
securitySchemes:
596607
basic_authentication:
597608
type: http
598609
description: This is the Basic Authentication mechanism where the credentials are sent in a Base64 encoded format of the form <username>:<password> in the Authorization header.
599610
scheme: basic
600611
security:
601-
- basic_authentication: []
612+
- basic_authentication: []

apis/openapi-specifications/controlplane-health.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: '3.0.2'
22
info:
3-
title: API Control Plane health status
3+
title: API Control Plane Health Monitoring Service
44
version: '1.0.0'
55
description: This specification contains a health resource for API Control Plane which returns the health status of overall
66
API Control Plane and its individual services. This would be prodominantly used by Software AG CAS probe for querying the service

apis/openapi-specifications/controlplane-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: '3.0.2'
22
info:
3-
title: API Control Plane metrics
3+
title: API Control Plane Metrics Monitoring Service
44
version: '1.0.0'
55
description: API Control Plane is composed of different services like Asset Catalog, Engine, Ingress and UI. This spec defines
66
the endpoints for the metrics of individual services. The metrics are exposed in Prometheus format and these endpoints are

apis/openapi-specifications/dataplane-management.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: "3.0.2"
22
info:
3-
title: Data plane Management Service
3+
title: API Control Plane Data Planes Management Service
44
version: "1.0.0"
55
description : Data plane in API Control Plane is a collection of runtimes like API Gateway, Developer Portal running in different landscapes.
66

apis/openapi-specifications/license-management.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
title: License Management API
3+
title: API Control Plane License Management Service
44
description: |
55
## Overview
66
@@ -153,6 +153,27 @@ paths:
153153
$ref: '#/components/responses/Unauthorized'
154154
'500':
155155
$ref: '#/components/responses/internal_server_error'
156+
delete:
157+
summary: Delete a existing license
158+
description: |-
159+
This method allows you to delete a existing license in control plane.
160+
161+
**Restriction**: Access is restricted to **authorized** individuals with administrator privilege. Restricted in control plane Cloud.
162+
tags:
163+
- Licenses
164+
parameters:
165+
- name: serialNumber
166+
in: query
167+
description: The serial number of the license to be deleted.
168+
schema:
169+
type: integer
170+
responses:
171+
'200':
172+
description: license Deleted Sucessfully.
173+
'401':
174+
$ref: '#/components/responses/Unauthorized'
175+
'500':
176+
$ref: '#/components/responses/internal_server_error'
156177

157178
components:
158179
schemas:
@@ -261,4 +282,4 @@ components:
261282
description: Internal Server Error occurred.
262283
value:
263284
errorDetails:
264-
- This response indicates that the server encountered an error.
285+
- This response indicates that the server encountered an error.

0 commit comments

Comments
 (0)