Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cmd/build.go export-subst
*.go diff=golang
Documentation/reference/api.md linguist-generated
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ jobs:
printf '::error file=%s,title=Bad Filename::Disallowed character in file name\n' "$file"
done
exit $(git ls-files -- ':/:*[<>:"|?*]*' | wc -l)
- name: Check API Reference
if: ${{ !cancelled() && steps.checkout.conclusion == 'success' }}
run: |
npx widdershins --search false --language_tabs 'python:Python' 'go:Golang' 'javascript:Javascript' --summary ./openapi.yaml -o ./Documentation/reference/api.md
git diff --exit-code
- name: Check Container Versions
if: ${{ !cancelled() && steps.checkout.conclusion == 'success' }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion Documentation/howto/api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# API Definition

Clair provides its API definition via an OpenAPI specification. You can view our OpenAPI spec [here](https://raw.githubusercontent.com/quay/clair/main/openapi.yaml)
Clair provides its API definition via an OpenAPI specification. You can view our OpenAPI spec [here][openapi_v1].

The OpenAPI spec can be used in a variety of ways.
* Generating http clients for your application
Expand All @@ -11,3 +11,5 @@ The OpenAPI spec can be used in a variety of ways.
See [Testing Clair](./testing.md) to learn how the local dev tooling starts a local swagger editor. This is handy for making changes to the spec in real time.

See [API Reference](../reference/api.md) for a markdown rendered API reference.

[openapi_v1]: https://github.com/quay/clair/tree/main/httptransport/api/v1
Loading
Loading