DI-Portal-PKGVER-016 List of Documents
Design Item ID: DI-Portal-PKGVER-016
Design Item Name: List of Documents
Related Design Items: -
Related API:
- Get version documents (GET /api/v2/packages/{packageId}/versions/{version}/documents)
Revision History:
| Date | Description |
|---|---|
Description
Section titled “Description”The system allows users to view all documents published to the current package version.
Start Point
Section titled “Start Point”- User navigates to APIHUB Portal → workspace → group → package version.
Execution
Section titled “Execution”- User opens Documents tab.
- The system displays the list of documents published in the current package version.
- All document are grouped by type (if package version does not contain document for a specific group, that group
will not be displayed):
- Markdown group: contains documents with type =
markdown. - OpenAPI group: contains documents with type = openapi-3-1 / openapi-3-0 / openapi-2-0.
- GraphQL group: contains documents with type = introspection / graphql-schema.
- Other group: contains documents with type = unknown.
- Markdown group: contains documents with type =
- The system displays groups in a predefined order as listed above, and documents within each group are sorted in ascending alphabetical order.
- For each document the system displays:
- for OpenAPI document: title and version. Title is value from specification from info.title parameter. Version is is value from specification from info.version parameter.
- for any other document: filename.
- API to display list of documents - GET /api/v2/packages/{packageId}/versions/{version}/documents:
- packageId = id of the current package
- version = current package version
- All document are grouped by type (if package version does not contain document for a specific group, that group
will not be displayed):
- User types required document title in Search field.
- The system searches for document by its title.
- API to display documents - GET /api/v2/packages/{packageId}/versions/{version}/documents:
- packageId = id of the current package
- version = current package version
- textFilter = <user’s input in Search field>
- API to display documents - GET /api/v2/packages/{packageId}/versions/{version}/documents:
Screen View
Section titled “Screen View”tbd