Skip to content
Closed
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
10 changes: 7 additions & 3 deletions .github/workflows/rc_api_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,19 @@ jobs:
git checkout -b "${branch}"
fi

curl -Ls https://api.redislabs.com/v1/cloud-api-docs \
curl -Ls https://api.redislabs.com/v1/cloud-api-docs/capi \
| jq '(.. | .example? | try select(test("^{"))) |= fromjson' > content/operate/rc/api/api-reference/openapi.json

spec_is_different=$(git diff content/operate/rc/api/api-reference/openapi.json)
curl -Ls https://api.redislabs.com/v1/cloud-api-docs/rdi \
| jq '(.. | .example? | try select(test("^{"))) |= fromjson' > content/operate/rc/api/data-integration-api-reference/openapi.json

spec_is_different=$(git diff content/operate/rc/api/api-reference/openapi.json content/operate/rc/api/data-integration-api-reference/openapi.json)

if [[ ! -z $spec_is_different ]]; then
spec_change=true

git add "content/operate/rc/api/api-reference/openapi.json"
git add "content/operate/rc/api/data-integration-api-reference/openapi.json"
git config user.email "177626021+redisdocsapp[bot]@users.noreply.github.com"
git config user.name "redisdocsapp[bot]"
git commit -m "Update content/operate/rc/api/api-reference/openapi.json"
Expand All @@ -67,4 +71,4 @@ jobs:
--head "$branch" \
--base "main"
fi
fi
fi
1 change: 1 addition & 0 deletions content/operate/rc/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ You can use the API to:

- Use the [Redis Cloud API]({{< relref "/operate/rc/api/get-started/use-rest-api.md" >}})
- [Full API Reference]({{< relref "/operate/rc/api/api-reference" >}})
- [Data Integration API Reference]({{< relref "/operate/rc/api/data-integration-api-reference" >}})
- Secure [authentication and authorization]({{< relref "/operate/rc/api/get-started" >}})
8 changes: 8 additions & 0 deletions content/operate/rc/api/data-integration-api-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
Title: Redis Cloud Data Integration API
linkTitle: Data Integration API reference
layout: apireference
type: page
params:
backLink: operate/rc/api
---
Loading
Loading