Skip to content

Commit

Permalink
feat: localstatequery rest endpoints (part 2)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Apr 12, 2024
1 parent 6a6112e commit f8ec26b
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 0 deletions.
84 changes: 84 additions & 0 deletions docs/docs.go

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

84 changes: 84 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,81 @@
}
}
},
"/localstatequery/era-history": {
"get": {
"produces": [
"application/json"
],
"tags": [
"localstatequery"
],
"summary": "Query Era History",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.responseLocalStateQueryEraHistory"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.responseApiError"
}
}
}
}
},
"/localstatequery/genesis-config": {
"get": {
"produces": [
"application/json"
],
"tags": [
"localstatequery"
],
"summary": "Query Genesis Config",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.responseLocalStateQueryGenesisConfig"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.responseApiError"
}
}
}
}
},
"/localstatequery/protocol-params": {
"get": {
"produces": [
"application/json"
],
"tags": [
"localstatequery"
],
"summary": "Query Current Protocol Parameters",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.responseLocalStateQueryProtocolParams"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.responseApiError"
}
}
}
}
},
"/localstatequery/system-start": {
"get": {
"produces": [
Expand Down Expand Up @@ -251,6 +326,15 @@
}
}
},
"api.responseLocalStateQueryEraHistory": {
"type": "object"
},
"api.responseLocalStateQueryGenesisConfig": {
"type": "object"
},
"api.responseLocalStateQueryProtocolParams": {
"type": "object"
},
"api.responseLocalStateQuerySystemStart": {
"type": "object",
"properties": {
Expand Down
54 changes: 54 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ definitions:
name:
type: string
type: object
api.responseLocalStateQueryEraHistory:
type: object
api.responseLocalStateQueryGenesisConfig:
type: object
api.responseLocalStateQueryProtocolParams:
type: object
api.responseLocalStateQuerySystemStart:
properties:
day:
Expand Down Expand Up @@ -89,6 +95,54 @@ paths:
summary: Query Current Era
tags:
- localstatequery
/localstatequery/era-history:
get:
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/api.responseLocalStateQueryEraHistory'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/api.responseApiError'
summary: Query Era History
tags:
- localstatequery
/localstatequery/genesis-config:
get:
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/api.responseLocalStateQueryGenesisConfig'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/api.responseApiError'
summary: Query Genesis Config
tags:
- localstatequery
/localstatequery/protocol-params:
get:
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/api.responseLocalStateQueryProtocolParams'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/api.responseApiError'
summary: Query Current Protocol Parameters
tags:
- localstatequery
/localstatequery/system-start:
get:
produces:
Expand Down
Loading

0 comments on commit f8ec26b

Please sign in to comment.