Skip to content

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 Aug 3, 2023
1 parent 2571b7c commit 76cf7b2
Show file tree
Hide file tree
Showing 14 changed files with 426 additions and 108 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 76cf7b2

Please sign in to comment.