Skip to content

Commit

Permalink
update topology API response to capture node's type and parent
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Jul 2, 2024
1 parent 85b825d commit c714f2a
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 13 deletions.
26 changes: 13 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 @@ -98,6 +98,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 @@ -107,8 +107,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 c714f2a

Please sign in to comment.