Skip to content

Add Swagger UI for OpenAPI human output#208

Merged
MattIPv4 merged 7 commits intomasterfrom
MattIPv4/swagger-ui
May 3, 2026
Merged

Add Swagger UI for OpenAPI human output#208
MattIPv4 merged 7 commits intomasterfrom
MattIPv4/swagger-ui

Conversation

@MattIPv4
Copy link
Copy Markdown
Member

@MattIPv4 MattIPv4 commented May 2, 2026

Type of Change

  • Routes: /api
  • Utilities: respond

What issue does this relate to?

cc #196 #189

What should this PR do?

Replaces the default humam output for the /api route with an island component that uses the standard Swagger UI React library, with customisations applied to make it better fit the cdnjs brand.

What are the acceptance criteria?

/api still returns the OpenAPI spec. /api?output=human now returns a Swagger UI interface. All other /...?output=human responses are still the pretty-printed JSON.

@MattIPv4 MattIPv4 force-pushed the MattIPv4/swagger-ui branch from 01d27df to dd22458 Compare May 2, 2026 21:47
@MattIPv4 MattIPv4 force-pushed the MattIPv4/swagger-ui branch from dd22458 to 0250ec8 Compare May 3, 2026 00:25
@MattIPv4 MattIPv4 force-pushed the MattIPv4/swagger-ui branch from 0250ec8 to 9eb1d1a Compare May 3, 2026 00:37
@MattIPv4 MattIPv4 force-pushed the MattIPv4/swagger-ui branch from 3b39165 to 4faa3d6 Compare May 3, 2026 12:49
@MattIPv4 MattIPv4 marked this pull request as ready for review May 3, 2026 14:05
@MattIPv4 MattIPv4 merged commit 7f17042 into master May 3, 2026
13 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/swagger-ui branch May 3, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant