Closed BK01 closed 6 years ago
Issue on hold until a new release of swagger-ui is available. Currently the following is not available in swagger-ui 3.2. May be available in October.
Parameter dropdown lists https://github.com/swagger-api/swagger-ui/issues/3641
Authorize https://github.com/swagger-api/swagger-ui/issues/3665
Next steps:
Change ticket - branch director Migrate cat.data API console to PROD (ckan ext 1.2), use existing OpenAPI 2 specs.
@banders to test new release of swagger-ui
@BK01 @ll911 I have updated my local version of the API Console to use the latest release of swagger-ui (3.3.1). This version still doesn't support parameter drop-down lists or authorizations (i.e. Get API Key) for OAS 3 spec files. I can push the latest version to github so you can install in CKAN dlv, but I don't see much point.
Probably best to continue to monitor the swagger-ui releases for updates before we upgrade our API console...
I think we can hold it off till the version we need.
@banders to review latest release to determine if latest version of swagger-ui (3.3.2) meets our requirements.
@BK01 @ll911 There is an even newer version of swagger-ui than 3.3.2. 3.4.0 is the latest.
I have tested 3.4.0 and found some improvements, but also a new bug. Here's a summary:
I posted this bug report with the swagger-ui community to report the Try-it-out bug. We can't use the latest version until the bug is fixed.
@banders To evaluate version 3.4.1
@bk01 swagger-ui 3.4.2 seems to fix our main concerns over support for OAS3. I have merged this version of swagger-ui into the API Console. Can we try redeploying the API Console in delivery for additional testing?
@Darv72 Can we try redeploying the API console in DLV.
@BK01 The console should now be deployed in DLV. Let me know if there is anything further.
@banders @Darv72 New API console is deployed in DLV and ready for testing with OAS3. Initial tests with the combined geocoder spec are looking good.
@BK01 DataBC complete UAT for all OAS3 specs in cad.data this week.
Copy request URL and open request URL buttons to be implemented in new version of console.
@BK01 @Darv72 I have ported the "Copy Request URL" and "Open Request URL" functionality to the new version of swagger-ui. The new code has been merged into ckanext-openapiviewer. There's a slight change to the behaviour:
Note that "Open Request URL" will always opens the link in a new tab, but will give an API key error for gated APIs in which the API key is not part of the request URL. (e.g when the key is in the header). I think this is reasonable behaviour, but let me know if you think we should handle the situation differently.
Thank you. DataBC will deploy the new code to cad.data for UAT.
Successful UAT in cad.data
Refinements based on initial UAT of API Console in cad.data using OpenAPI 3.x specs