-
Notifications
You must be signed in to change notification settings - Fork 4
DI‐Portal‐PKGVER‐020 OpenAPI Document Overview
Design Item ID: DI-Portal-PKGVER-016
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 |
|---|---|
The functionality allows the user to see an overview information of OpenAPI specification.
- User navigates to APIHUB Portal → workspace → group → package version -> documents tab.
- 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', 'url' and 'email' are specified, then display: - <name field value>: <url field value> | Email: <email field value>

-
if only 'name' field is specified, then display nothing.
-
if only 'url' field is specified, then display: - URL: <url field value>

-
if only 'email' field is specified, then display: - Email: <email field value>

-
if 'name' and 'url' fields are specified, then display: - : <url field value>

-
if 'name' and 'email' fields are specified, then display: - <name field value>: <email field value>

-
if 'url' and 'email' fields are specified, then display: - URL: <url field value> | <Email>: <email field value>

License object
- if 'name' and 'url' fields 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 'name' field is specified then display:
- License: <name field value>
- License: <name field value>
- if only 'url' field 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 'name' and 'url' fields are specified, then display:
- <name field value> (with link to url field value)
- <name field value> (with link to url field value)
- if only 'url' field is specified, then display:
- <url field value> (with link to url field value)
- <url field value> (with link to url field value)
- if only 'name' field is specified - incorrect case, since url is required field in openapi. Ignore externalDocs object in this case.
OpenAPI document overview is available for all users, which have "read" permission for the appropriate package.

Processes description
Technical articles
Design Items
- Navigation to APIHUB (log in / log out)
- Create Workspace
- Create Group
- Create Package
- Favorite packages, dashboards, groups, workspaces
- Shared Packages
- Activity History in Main Page
- Personal private workspace
- Version summary
- Revision History
- Package Activity History
- Manage Manual Operations Group
- Export Operations Group (reduced source specifications)
- Export Operations Group (combined specification)
- Export List of Operations in Excel
- Search and Filter Operations
- List of Operations
- List of Operations Groups
- Manage REST Path Prefix Group
- Activity History
- List of Deprecated Operations
- Export List of Changes in Excel
- Human‐readable description for deprecated items for OpenAPI 3.0
- List of Documents
- OpenAPI Document Overview
- Copy Package Version
- Export Package Version
- Export Document from Package Version
- Export List of Deprecated Operations in Excel
- API Quality Validation Result
- Export of discrepancy analysis results for arbitrary package versions in Excel
- AI Recommendations Tab
- General Settings
- Package versions list
- Access Tokens Management
- Delete Package
- Default Release Version
- Define Release Version Pattern