Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12985 Apply v3 API infra modifications and update docs #3207

Merged
merged 21 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a8f1cd5
PMM-12985 Apply API infra modifications
ademidoff Sep 19, 2024
c84cc3a
PMM-12985 Apply API infra modifications
ademidoff Sep 19, 2024
f6dc202
Merge branch 'v3' into PMM-12985-api-infra-modifications
ademidoff Sep 19, 2024
e362ac9
PMM-12985 add --version flag to spec sync
ademidoff Sep 19, 2024
70e644b
PMM-12985 change the slug name
ademidoff Sep 20, 2024
3e2bf0c
PMM-12985 migrate from IDs to slugs
ademidoff Sep 20, 2024
75eacc1
Merge branch 'v3' into PMM-12985-api-infra-modifications
ademidoff Sep 20, 2024
b0a1da4
PMM-12985 update the intro with links
ademidoff Sep 21, 2024
2b28896
PMM-12985 update inventory overview
ademidoff Sep 23, 2024
dc8d0ab
Update docs/api/inventory/overview.md
ademidoff Oct 8, 2024
243c61f
Update docs/api/inventory/overview.md
ademidoff Oct 8, 2024
e83b95f
Update api/server/v1/server.proto
ademidoff Oct 8, 2024
5436f6b
Update docs/api/access-control/overview.md
ademidoff Oct 8, 2024
9721f68
Update docs/api/advisor-api/advisors-and-advisor-checks.md
ademidoff Oct 8, 2024
53716aa
Update docs/api/advisor-api/overview.md
ademidoff Oct 8, 2024
4adad23
Update docs/api/advisor-api/overview.md
ademidoff Oct 8, 2024
854e8f3
Update docs/api/inventory/overview.md
ademidoff Oct 8, 2024
cdfc0c1
Update docs/api/advisor-api/overview.md
ademidoff Oct 8, 2024
8229fc3
Merge branch 'v3' into PMM-12985-api-infra-modifications
ademidoff Oct 8, 2024
8c64594
PMM-12985 Regenerate.
BupycHuk Nov 4, 2024
5909d28
Merge branch 'v3' into PMM-12985-api-infra-modifications
ademidoff Nov 5, 2024
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
13 changes: 7 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
sync:
name: Sync
name: Sync API Docs
runs-on: ubuntu-22.04

steps:
Expand All @@ -29,11 +29,12 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "ID=$ID" >> $GITHUB_ENV

- name: Provision rdme
run: npm install -g rdme

- name: Sync API spec
run: rdme openapi ./api/swagger/swagger.json --id=${{ env.ID }} --key=${{ secrets.README_TOKEN }}
uses: readmeio/rdme@v8
with:
rdme: openapi ./api/swagger/swagger.json --id=${{ env.ID }} --key=${{ secrets.README_TOKEN }}
ademidoff marked this conversation as resolved.
Show resolved Hide resolved

- name: Sync Markdown docs
run: rdme docs docs/api --version=${{ env.VERSION }} --key=${{ secrets.README_TOKEN }}
uses: readmeio/rdme@v8
with:
rdme: docs ./docs/api --version=${{ env.VERSION }} --key=${{ secrets.README_TOKEN }}
153 changes: 77 additions & 76 deletions api/advisors/v1/advisors.pb.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/advisors/v1/advisors.proto
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ service AdvisorService {
rpc GetFailedChecks(GetFailedChecksRequest) returns (GetFailedChecksResponse) {
option (google.api.http) = {get: "/v1/advisors/checks/failed"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "Get Failed Checks"
summary: "Get Failed Advisor Checks"
description: "Returns the latest check results for a given service."
};
}
Expand All @@ -196,15 +196,15 @@ service AdvisorService {
rpc ListAdvisorChecks(ListAdvisorChecksRequest) returns (ListAdvisorChecksResponse) {
option (google.api.http) = {get: "/v1/advisors/checks"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List advisor checks"
summary: "List Advisor Checks"
description: "List advisor checks available to the user."
};
}
// ListAdvisors returns a list of advisors available for the user.
rpc ListAdvisors(ListAdvisorsRequest) returns (ListAdvisorsResponse) {
option (google.api.http) = {get: "/v1/advisors"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List advisors"
summary: "List Advisors"
description: "List advisors available to the user."
};
}
Expand Down

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

6 changes: 3 additions & 3 deletions api/advisors/v1/json/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tags": [
"AdvisorService"
],
"summary": "List advisors",
"summary": "List Advisors",
"operationId": "ListAdvisors",
"responses": {
"200": {
Expand Down Expand Up @@ -160,7 +160,7 @@
"tags": [
"AdvisorService"
],
"summary": "List advisor checks",
"summary": "List Advisor Checks",
"operationId": "ListAdvisorChecks",
"responses": {
"200": {
Expand Down Expand Up @@ -264,7 +264,7 @@
"tags": [
"AdvisorService"
],
"summary": "Get Failed Checks",
"summary": "Get Failed Advisor Checks",
"operationId": "GetFailedChecks",
"parameters": [
{
Expand Down

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

4 changes: 2 additions & 2 deletions api/server/v1/json/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -798,11 +798,11 @@
},
"/v1/server/updates/changelogs": {
"get": {
"description": "List all the changes between the installed version and the latest available version",
"description": "List all the changes between the installed version and the latest available version.",
"tags": [
"ServerService"
],
"summary": "List all the changes between the installed version and the latest available version",
"summary": "Get the changelog",
"operationId": "ListChangeLogs",
"responses": {
"200": {
Expand Down
130 changes: 63 additions & 67 deletions api/server/v1/server.pb.go

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

6 changes: 3 additions & 3 deletions api/server/v1/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ service ServerService {
description: "Checks for available PMM Server updates."
};
}

// ListChangeLogs delivers the changelog.
rpc ListChangeLogs(ListChangeLogsRequest) returns (ListChangeLogsResponse) {
option (google.api.http) = {get: "/v1/server/updates/changelogs"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
summary: "List all the changes between the installed version and the latest available version"
description: "List all the changes between the installed version and the latest available version"
summary: "Get the changelog"
description: "List all the changes between the installed version and the latest available version."
ademidoff marked this conversation as resolved.
Show resolved Hide resolved
};
}
// StartUpdate starts PMM Server update.
Expand Down
Loading
Loading