bcgov / api-services-portal

API Services Portal provides a multi-tenant frontend integrating API Gateway and Authorization services from Kong CE and Keycloak.
https://api.gov.bc.ca
Apache License 2.0
22 stars 7 forks source link

Directory: Link to OpenAPI Spec #1044

Open rustyjux opened 5 months ago

rustyjux commented 5 months ago

API Services Portal Issue

This ticket is like #1005 but more straightforward in that we'd be working with the existing structure of the BCDC and there is little ambiguity.

User Story

As an API provider sharing an API on the API Directory, I want to be able to provide an obvious link to my OpenAPI spec, so that potential consumers can find existing resources for my API.

///

As an API Consumer, I want to be able to consistently find the OpenAPI spec, so that I have a logical next step to follow to access an API after finding an API listing in the Directory.

More details

Most APIs in the catalogue already have their API spec as a resource, e.g. https://catalogue.data.gov.bc.ca/dataset/bc-gov-news-api-service

The link on the Directory listing can go to our Swagger UI console with the API spec loaded (spec URL to https://openapi.apps.gov.bc.ca/?url=, e.g. https://openapi.apps.gov.bc.ca/?url=https://raw.githubusercontent.com/bcgov/api-specs/master/news/news-oas3.yaml#/).

There is no UX design for this feature, but the link to the API console should probably be a standalone button next to the name of the API (dataset), which is in the same location for both catalogue-linked and unlinked datasets.

Along with the UI changes to the Directory, we need to:

Test Case

TESTCASE

EXPECTED

Elson9 commented 5 days ago

Priority: improving UX for our services