cloudapi: extend the API spec with /version and /openapi.json
These endpoints are useful for clients while exploring the API. They are also required for deploying the service into clouddot.
This commit is contained in:
parent
f56a07472a
commit
f98e231f64
8 changed files with 377 additions and 1 deletions
|
|
@ -58,6 +58,25 @@ fi
|
|||
|
||||
AWS_CMD="aws --region $AWS_REGION --output json --color on"
|
||||
|
||||
#
|
||||
# Make sure /openapi.json and /version endpoints return success
|
||||
#
|
||||
|
||||
curl \
|
||||
--silent \
|
||||
--show-error \
|
||||
--cacert /etc/osbuild-composer/ca-crt.pem \
|
||||
--key /etc/osbuild-composer/client-key.pem \
|
||||
--cert /etc/osbuild-composer/client-crt.pem \
|
||||
https://localhost/api/composer/v1/version | jq .
|
||||
|
||||
curl \
|
||||
--silent \
|
||||
--show-error \
|
||||
--cacert /etc/osbuild-composer/ca-crt.pem \
|
||||
--key /etc/osbuild-composer/client-key.pem \
|
||||
--cert /etc/osbuild-composer/client-crt.pem \
|
||||
https://localhost/api/composer/v1/openapi.json | jq .
|
||||
|
||||
#
|
||||
# Prepare a request to be sent to the composer API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue