-
Notifications
You must be signed in to change notification settings - Fork 188
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
d3: regen 8.6 API docs #4805
Merged
pepopowitz
merged 12 commits into
pepopowitz/3736-docusaurus-lets-gooooo
from
pepopowitz/3736-docusaurus/regen-vcurrent-apis
Dec 20, 2024
+24,325
−3,233
Merged
d3: regen 8.6 API docs #4805
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8116292
feat: rewrite api generation to support older versions; configure v8.…
pepopowitz f931ad4
oops: remove notes
pepopowitz 2993f7c
fix: regenerate 8.6 operate api docs to accommodate updated plugin
pepopowitz 4dca1ab
feat: configure 8.6 tasklist api generation
pepopowitz 9b53e49
fix: regenerate 8.6 tasklist api docs to accommodate updated plugin
pepopowitz b799ae0
feat: configure 8.6 admin-sm api generation
pepopowitz d0beadb
fix: regenerate 8.6 admin-sm api docs to accommodate updated plugin
pepopowitz 9dd5707
feat: configure 8.6 camunda api generation
pepopowitz b3e1598
fix: regenerate 8.6 camunda api docs to accommodate updated plugin
pepopowitz 7ad6e9b
fix: revert id of sm-admin 8.6 info page
pepopowitz 71733bd
feat: configure 8.6 zeebe api generation
pepopowitz 7e2a795
fix: regenerate 8.6 zeebe api docs to accommodate updated plugin
pepopowitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
const { makeServerDynamic } = require("../make-server-dynamic"); | ||
const removeDuplicateVersionBadge = require("../remove-duplicate-version-badge"); | ||
|
||
const outputDir = "docs/apis-tools/administration-sm-api/specifications"; | ||
const specFile = "api/administration-sm/administration-sm-openapi.yaml"; | ||
|
||
function preGenerateDocs() { | ||
makeServerDynamic(specFile); | ||
function preGenerateDocs(config) { | ||
makeServerDynamic(config.specPath); | ||
} | ||
|
||
function postGenerateDocs() { | ||
function postGenerateDocs(config) { | ||
removeDuplicateVersionBadge( | ||
`${outputDir}/administration-api-self-managed.info.mdx` | ||
`${config.outputDir}/administration-api-self-managed.info.mdx` | ||
); | ||
} | ||
|
||
module.exports = { | ||
outputDir, | ||
preGenerateDocs, | ||
postGenerateDocs, | ||
}; |
249 changes: 249 additions & 0 deletions
249
api/administration-sm/version-8.6/administration-sm-openapi.yaml
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specs were pulled in from the last version prior to the 8.6 launch, and placed in a version-8.6 folder. As I work backwards through these versions, I'll be able to add each APIs spec for each version side by side. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
openapi: 3.0.0 | ||
components: | ||
examples: {} | ||
headers: {} | ||
parameters: {} | ||
requestBodies: {} | ||
responses: {} | ||
schemas: | ||
ConsoleSMAdminApi.UsageMetricsInstances: | ||
properties: | ||
total: | ||
type: number | ||
format: double | ||
description: The number of usage metrics for a specific type. | ||
required: | ||
- total | ||
type: object | ||
additionalProperties: false | ||
ConsoleSMAdminApi.UsageMetricsTaskUsers: | ||
properties: | ||
total: | ||
type: number | ||
format: double | ||
description: The number of usage metrics for a specific type. | ||
assignees: | ||
items: | ||
type: string | ||
type: array | ||
description: The users that tasks have been assigned to. | ||
required: | ||
- total | ||
- assignees | ||
type: object | ||
additionalProperties: false | ||
ConsoleSMAdminApi.UsageMetricsForCluster: | ||
properties: | ||
id: | ||
type: string | ||
description: The identifier of the cluster. | ||
processInstances: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.UsageMetricsInstances" | ||
description: The usage metrics for started process instances. | ||
decisionInstances: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.UsageMetricsInstances" | ||
description: The usage metrics for executed decision instances. | ||
taskUsers: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.UsageMetricsTaskUsers" | ||
description: The usage metrics for assigned task users. | ||
required: | ||
- id | ||
- processInstances | ||
- decisionInstances | ||
- taskUsers | ||
type: object | ||
additionalProperties: false | ||
ConsoleSMAdminApi.Status: | ||
type: string | ||
enum: | ||
- healthy | ||
- unhealthy | ||
- unknown | ||
ConsoleSMAdminApi.ClusterType: | ||
type: string | ||
enum: | ||
- automation | ||
- management | ||
ConsoleSMAdminApi.AppType: | ||
type: string | ||
enum: | ||
- zeebe-broker | ||
- zeebe-gateway | ||
- operate | ||
- tasklist | ||
- optimize | ||
- modeler | ||
- console | ||
- identity | ||
- unknown | ||
ConsoleSMAdminApi.App: | ||
properties: | ||
type: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.AppType" | ||
description: | ||
What application is running in the cluster, like Zeebe, Operate, | ||
Tasklist, ... | ||
id: | ||
type: string | ||
description: Unique identifier of the application | ||
status: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.Status" | ||
description: Indicates if an application is healthy or not | ||
url: | ||
type: string | ||
description: The public URL of the application | ||
generation: | ||
type: string | ||
description: This is the current version of the running application | ||
readiness: | ||
type: string | ||
description: The readiness URL of the application | ||
metrics: | ||
type: string | ||
description: The metrics URL of the application | ||
required: | ||
- type | ||
- id | ||
- status | ||
- url | ||
- generation | ||
type: object | ||
additionalProperties: false | ||
ConsoleSMAdminApi.Cluster: | ||
properties: | ||
uuid: | ||
type: string | ||
description: Unique identifier of the cluster | ||
name: | ||
type: string | ||
description: Name of the cluster | ||
namespace: | ||
type: string | ||
description: Namespace the cluster is running in. | ||
status: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.Status" | ||
description: Indicates if a cluster is healthy or not | ||
generation: | ||
type: string | ||
description: This is the current version of the running cluster | ||
type: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.ClusterType" | ||
description: | ||
We're distinguishing between automation and management clusters. | ||
Management clusters include applications that act globally in an | ||
installed context, like Console or Modeler. Automation clusters are | ||
the Zeebe clusters including applications like Operate, Tasklist and | ||
Optimize. | ||
apps: | ||
items: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.App" | ||
type: array | ||
description: The list of applications running in the cluster | ||
required: | ||
- uuid | ||
- name | ||
- namespace | ||
- status | ||
- generation | ||
- type | ||
- apps | ||
type: object | ||
additionalProperties: false | ||
securitySchemes: | ||
bearer: | ||
type: http | ||
scheme: bearer | ||
bearerFormat: JWT | ||
info: | ||
title: Administration API (Self-Managed) | ||
description: Access the administration API of Console Self-Managed. | ||
version: 1.0.0 | ||
contact: | ||
url: https://www.camunda.com | ||
license: | ||
name: License | ||
url: https://docs.camunda.io/docs/reference/licenses/ | ||
paths: | ||
/admin-api/usage-metrics: | ||
get: | ||
operationId: getUsageMetrics | ||
responses: | ||
"200": | ||
description: Ok | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.UsageMetricsForCluster" | ||
"403": | ||
description: Forbidden | ||
"500": | ||
description: Server-side error | ||
description: Returns usage metrics for a specific cluster for a given time | ||
range. The usage metrics are aggregated over the time range and include | ||
number of started process instances, executed decision instances, and | ||
assigned task users. | ||
summary: Get usage metrics for clusters | ||
tags: | ||
- Usage Metrics | ||
security: | ||
- bearer: [] | ||
parameters: | ||
- description: The unique identifier of the cluster | ||
in: query | ||
name: id | ||
required: true | ||
schema: | ||
type: string | ||
- description: | ||
The start timestamp of the time range as UNIX timestamp in | ||
milliseconds | ||
in: query | ||
name: start | ||
required: true | ||
schema: | ||
format: double | ||
type: number | ||
- description: The end timestamp of the time range as UNIX timestamp in milliseconds | ||
in: query | ||
name: end | ||
required: true | ||
schema: | ||
format: double | ||
type: number | ||
/admin-api/clusters: | ||
get: | ||
operationId: getClusters | ||
responses: | ||
"200": | ||
description: Ok | ||
content: | ||
application/json: | ||
schema: | ||
items: | ||
$ref: "#/components/schemas/ConsoleSMAdminApi.Cluster" | ||
type: array | ||
"403": | ||
description: Forbidden | ||
"500": | ||
description: Server-side error | ||
description: | ||
Returns a list of all automation and management clusters. Each | ||
cluster entry contains the running apps and their status. | ||
summary: Get current clusters | ||
tags: | ||
- Clusters | ||
security: | ||
- bearer: [] | ||
parameters: [] | ||
servers: | ||
- url: "{schema}://{host}:{port}" | ||
variables: | ||
host: | ||
default: localhost | ||
description: The hostname of the API server. | ||
port: | ||
default: "8080" | ||
description: The port of the API server. | ||
schema: | ||
default: http | ||
description: The schema of the API server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All generation strategies are re-written to take configuration passed in, so that we can use the docusaurus configuration directly instead of duplicating in these files.