Skip to content

Commit

Permalink
feat: add SocketIoConnectionPathV1 constant to OpenAPI specs
Browse files Browse the repository at this point in the history
This defines a constant in the OpenAPI specification so that it can be
reused everywhere else in the code, including in the generated
documentation that we intend to create from the OpenAPI specifications
later on and also other packages in the Typescript code who import the
core-api package.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed May 25, 2021
1 parent 6e280e8 commit 405865d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/cactus-core-api/src/main/json/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
],
"components": {
"schemas": {
"Constants": {
"type": "string",
"enum": [
"/api/v1/async/socket-io/connect"
],
"x-enum-varnames": [
"SocketIoConnectionPathV1"
]
},
"PluginImport": {
"type": "object",
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ export interface ConsortiumMember {
*/
nodeIds: Array<string>;
}
/**
*
* @export
* @enum {string}
*/
export enum Constants {
SocketIoConnectionPathV1 = '/api/v1/async/socket-io/connect'
}

/**
*
* @export
Expand Down

0 comments on commit 405865d

Please sign in to comment.