DI-Portal-PKGVER-022 OpenAPI Document Overview
Design Item ID: DI-Portal-PKGVER-022
Design Item Name: OpenAPI Document Overview
Related Design Items:
Related API:
- Get document details (GET /api/v3/packages/{packageId}/versions/{version}/documents/{slug})
Revision History:
| Date | Description |
|---|---|
Description
Section titled “Description”The functionality allows the user to see an overview information of OpenAPI specification.
Start Point
Section titled “Start Point”- User navigates to APIHUB Portal → workspace → group → package version -> documents tab.
Execution
Section titled “Execution”- User selects OpenAPI document.
- The system shows the following information:
- title from info.title field of specification
- version from info.version field of specification
- document labels
- contact information from info.contact object of specification
- license information from info.license object of specification
- term of service information from info.termsOfService field of specification
- info about external documentation from externalDocs object of specification
- description (rendered Markdown) from info.description field of specification
- ===
- API to show document overview:
- GET /api/v3/packages/{packageId}/versions/{version}/documents/{slug}
Contact object:
-
if all 3 fields
name,urland ‘email’ are specified, then display: - <name field value>: <url field value> | Email: <email field value>

-
if only
namefield is specified, then display nothing. -
if only
urlfield is specified, then display: - URL: <url field value>
-
if only ‘email’ field is specified, then display: - Email: <email field value>

-
if
nameandurlfields are specified, then display: - <name field value>: <url field value>

-
if
nameand ‘email’ fields are specified, then display: - <name field value>: <email field value>

-
if
urland ‘email’ fields are specified, then display: - URL: <url field value> | <Email>: <email field value>

License object:
- if
nameandurlfields are specified, then display- License: <name field value> with link to URL field value

- License: <name field value> with link to URL field value
- if only
namefield is specified then display:- License: <name field value>

- License: <name field value>
- if only
urlfield is specified - incorrect case, since name is required field in OpenAPI. Ignore license object in this case.
termsOfService field:
- if termsOfService field is specified, then display:
- Term of service (with link to termsOfService field value)

- Term of service (with link to termsOfService field value)
externalDocs:
- if
nameandurlfields are specified, then display:- <name field value> (with link to URL field value)

- <name field value> (with link to URL field value)
- if only
urlfield is specified, then display:- <URL field value> (with link to URL field value)

- <URL field value> (with link to URL field value)
- if only
namefield is specified - incorrect case, since URL is required field in OpenAPI. Ignore externalDocs object in this case.
Security
Section titled “Security”OpenAPI document overview is available for all users, which have “read” permission for the appropriate package.
Screen View
Section titled “Screen View”