Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
feat: add interactive API explorer to VMClarity
Browse files Browse the repository at this point in the history
This adds an interactive API explorer using swagger-ui to VMClarity
based on our openapi spec.
  • Loading branch information
Tehsmash committed Jul 25, 2023
1 parent 32bf909 commit 2fb1386
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 92 deletions.
110 changes: 110 additions & 0 deletions api/client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ info:
version: 1.0.0

paths:
/openapi.json:
get:
summary: Get this OpenAPI spec
operationId: GetOpenAPISpec
responses:
200:
description: Success
content:
application/json:
schema:
type: string
format: json
default:
$ref: '#/components/responses/UnknownError'

/assets:
get:
summary: Get assets
Expand Down
Loading

0 comments on commit 2fb1386

Please sign in to comment.