Skip to content

Commit

Permalink
Updated REST NodeVersionInfo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyanaAndrukhiv committed Aug 5, 2024
1 parent 42a3e66 commit 56b1cca
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openapi/access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,8 @@ components:
- protocol_version
- spork_root_block_height
- node_root_block_height
- start_height
- end_height
properties:
semver:
type: string
Expand All @@ -1218,6 +1220,12 @@ components:
node_root_block_height:
type: string
format: uint64
start_height:
type: string
format: uint64
end_height:
type: string
format: uint64
SubscribeEvents:
type: object
properties:
Expand Down
10 changes: 10 additions & 0 deletions openapi/go-client-generated/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2073,11 +2073,13 @@ components:
NodeVersionInfo:
required:
- commit
- end_height
- node_root_block_height
- protocol_version
- semver
- spork_id
- spork_root_block_height
- start_height
type: object
properties:
semver:
Expand All @@ -2095,10 +2097,18 @@ components:
node_root_block_height:
type: string
format: uint64
start_height:
type: string
format: uint64
end_height:
type: string
format: uint64
example:
protocol_version: protocol_version
end_height: end_height
semver: semver
commit: commit
start_height: start_height
node_root_block_height: node_root_block_height
spork_id: spork_id
spork_root_block_height: spork_root_block_height
Expand Down
2 changes: 2 additions & 0 deletions openapi/go-client-generated/docs/NodeVersionInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**ProtocolVersion** | **string** | | [default to null]
**SporkRootBlockHeight** | **string** | | [default to null]
**NodeRootBlockHeight** | **string** | | [default to null]
**StartHeight** | **string** | | [default to null]
**EndHeight** | **string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 2 additions & 0 deletions openapi/go-client-generated/model_node_version_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ type NodeVersionInfo struct {
ProtocolVersion string `json:"protocol_version"`
SporkRootBlockHeight string `json:"spork_root_block_height"`
NodeRootBlockHeight string `json:"node_root_block_height"`
StartHeight string `json:"start_height"`
EndHeight string `json:"end_height"`
}

0 comments on commit 56b1cca

Please sign in to comment.