Overview
I had the opportunity to enable OpenAPI in Drupal, so this is a memo. Note that the JSON:API module has already been enabled.
Installing Modules
Install the following two modules.
As a result, JSON can be obtained from the following URL.
/openapi/jsonapi

Accessing the following displays "No UI ...". Next, let's add a UI.
/admin/config/services/openapi

Adding a UI
Install the following two modules.
As a result, an "Explore" button is displayed.

Clicking the button navigates to the following screen.
/admin/config/services/openapi/redoc/jsonapi
A Swagger UI-like screen is displayed.

Note that Redoc is described as follows.
Redoc is an open-source tool for generating documentation from OpenAPI (fka Swagger) definitions.
References
I also tried installing the following "Swagger UI for OpenAPI UI," but it resulted in an error in my environment.
Summary
We hope this serves as a useful reference when using OpenAPI with Drupal.



Comments
…