Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
feat: update topology API (#9)
Browse files Browse the repository at this point in the history
Update response to capture node's type and parent
  • Loading branch information
lostbean authored Jul 2, 2024
1 parent 75b736f commit 2e96ff8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
27 changes: 14 additions & 13 deletions libs/cli-kontrol-api/api/golang/server/server.gen.go

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

17 changes: 17 additions & 0 deletions libs/cli-kontrol-api/api/golang/types/types.gen.go

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

7 changes: 7 additions & 0 deletions libs/cli-kontrol-api/api/typescript/client/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ export interface components {
id: string;
/** @description Label for the node. */
label?: string;
/**
* @description Type of the node
* @enum {string}
*/
type: "gateway" | "service" | "service-version" | "redis";
/** @description Parent node */
parent?: string;
};
Edge: {
/** @description The identifier of the source node of the edge. */
Expand Down
8 changes: 8 additions & 0 deletions libs/cli-kontrol-api/specs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,16 @@ components:
label:
type: string
description: Label for the node.
type:
type: string
enum: [gateway, service, service-version, redis]
description: Type of the node
parent:
type: string
description: Parent node
required:
- id
- type

Edge:
type: object
Expand Down

0 comments on commit 2e96ff8

Please sign in to comment.