Skip to content

Commit 4520ddb

Browse files
authored
update swagger (#63)
1 parent 66c4c2e commit 4520ddb

File tree

5 files changed

+344
-32
lines changed

5 files changed

+344
-32
lines changed

client/docs/config.json

+8
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@
137137
}
138138
}
139139
},
140+
{
141+
"url": "./tmp-swagger-gen/initia/ibchooks/v1/query.swagger.json",
142+
"operationIds": {
143+
"rename": {
144+
"Params": "IBCHooksParams"
145+
}
146+
}
147+
},
140148
{
141149
"url": "./tmp-swagger-gen/opinit/opchild/v1/query.swagger.json",
142150
"operationIds": {

client/docs/statik/statik.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/docs/swagger-ui/swagger.yaml

+301
Original file line numberDiff line numberDiff line change
@@ -36650,6 +36650,228 @@ paths:
3665036650
format: uint64
3665136651
tags:
3665236652
- Query
36653+
/initia/ibchooks/v1/acls:
36654+
get:
36655+
summary: ACLs gets ACL entries.
36656+
operationId: ACLs
36657+
responses:
36658+
'200':
36659+
description: A successful response.
36660+
schema:
36661+
type: object
36662+
properties:
36663+
acls:
36664+
type: array
36665+
items:
36666+
type: object
36667+
properties:
36668+
address:
36669+
type: string
36670+
allowed:
36671+
type: boolean
36672+
description: ACL defines the ACL entry of an address.
36673+
pagination:
36674+
description: pagination defines the pagination in the response.
36675+
type: object
36676+
properties:
36677+
next_key:
36678+
type: string
36679+
format: byte
36680+
description: |-
36681+
next_key is the key to be passed to PageRequest.key to
36682+
query the next page most efficiently. It will be empty if
36683+
there are no more results.
36684+
total:
36685+
type: string
36686+
format: uint64
36687+
title: >-
36688+
total is total number of results available if
36689+
PageRequest.count_total
36690+
36691+
was set, its value is undefined otherwise
36692+
title: |-
36693+
QueryACLsResponse is the response type for the
36694+
Query/ACLAddrs RPC method
36695+
default:
36696+
description: An unexpected error response.
36697+
schema:
36698+
type: object
36699+
properties:
36700+
error:
36701+
type: string
36702+
code:
36703+
type: integer
36704+
format: int32
36705+
message:
36706+
type: string
36707+
details:
36708+
type: array
36709+
items:
36710+
type: object
36711+
properties:
36712+
type_url:
36713+
type: string
36714+
value:
36715+
type: string
36716+
format: byte
36717+
parameters:
36718+
- name: pagination.key
36719+
description: |-
36720+
key is a value returned in PageResponse.next_key to begin
36721+
querying the next page most efficiently. Only one of offset or key
36722+
should be set.
36723+
in: query
36724+
required: false
36725+
type: string
36726+
format: byte
36727+
- name: pagination.offset
36728+
description: >-
36729+
offset is a numeric offset that can be used when key is unavailable.
36730+
36731+
It is less efficient than using key. Only one of offset or key
36732+
should
36733+
36734+
be set.
36735+
in: query
36736+
required: false
36737+
type: string
36738+
format: uint64
36739+
- name: pagination.limit
36740+
description: >-
36741+
limit is the total number of results to be returned in the result
36742+
page.
36743+
36744+
If left empty it will default to a value to be set by each app.
36745+
in: query
36746+
required: false
36747+
type: string
36748+
format: uint64
36749+
- name: pagination.count_total
36750+
description: >-
36751+
count_total is set to true to indicate that the result set should
36752+
include
36753+
36754+
a count of the total number of items available for pagination in
36755+
UIs.
36756+
36757+
count_total is only respected when offset is used. It is ignored
36758+
when key
36759+
36760+
is set.
36761+
in: query
36762+
required: false
36763+
type: boolean
36764+
- name: pagination.reverse
36765+
description: >-
36766+
reverse is set to true if results are to be returned in the
36767+
descending order.
36768+
36769+
36770+
Since: cosmos-sdk 0.43
36771+
in: query
36772+
required: false
36773+
type: boolean
36774+
tags:
36775+
- Query
36776+
/initia/ibchooks/v1/acls/{address}:
36777+
get:
36778+
summary: ACL gets ACL entry of an address.
36779+
operationId: ACL
36780+
responses:
36781+
'200':
36782+
description: A successful response.
36783+
schema:
36784+
type: object
36785+
properties:
36786+
acl:
36787+
type: object
36788+
properties:
36789+
address:
36790+
type: string
36791+
allowed:
36792+
type: boolean
36793+
description: ACL defines the ACL entry of an address.
36794+
title: |-
36795+
QueryACLResponse is the response type for the Query/ACL RPC
36796+
method
36797+
default:
36798+
description: An unexpected error response.
36799+
schema:
36800+
type: object
36801+
properties:
36802+
error:
36803+
type: string
36804+
code:
36805+
type: integer
36806+
format: int32
36807+
message:
36808+
type: string
36809+
details:
36810+
type: array
36811+
items:
36812+
type: object
36813+
properties:
36814+
type_url:
36815+
type: string
36816+
value:
36817+
type: string
36818+
format: byte
36819+
parameters:
36820+
- name: address
36821+
description: >-
36822+
Address is a contract address (wasm, evm) or a contract deployer
36823+
address (move).
36824+
in: path
36825+
required: true
36826+
type: string
36827+
tags:
36828+
- Query
36829+
/initia/ibchooks/v1/params:
36830+
get:
36831+
summary: Params queries all parameters.
36832+
operationId: IBCHooksParams
36833+
responses:
36834+
'200':
36835+
description: A successful response.
36836+
schema:
36837+
type: object
36838+
properties:
36839+
params:
36840+
description: params defines the parameters of the module.
36841+
type: object
36842+
properties:
36843+
default_allowed:
36844+
type: boolean
36845+
description: |-
36846+
if the ACL of a address is not set,
36847+
then we use this value to decide the ACL.
36848+
description: >-
36849+
QueryParamsResponse is the response type for the Query/Params RPC
36850+
method.
36851+
default:
36852+
description: An unexpected error response.
36853+
schema:
36854+
type: object
36855+
properties:
36856+
error:
36857+
type: string
36858+
code:
36859+
type: integer
36860+
format: int32
36861+
message:
36862+
type: string
36863+
details:
36864+
type: array
36865+
items:
36866+
type: object
36867+
properties:
36868+
type_url:
36869+
type: string
36870+
value:
36871+
type: string
36872+
format: byte
36873+
tags:
36874+
- Query
3665336875
/opinit/opchild/v1/base_denom/{denom}:
3665436876
get:
3665536877
operationId: BaseDenom
@@ -70387,6 +70609,85 @@ definitions:
7038770609
PacketId is an identifer for a unique Packet
7038870610
Source chains refer to packets by source port/channel
7038970611
Destination chains refer to packets by destination port/channel
70612+
initia.ibchooks.v1.ACL:
70613+
type: object
70614+
properties:
70615+
address:
70616+
type: string
70617+
allowed:
70618+
type: boolean
70619+
description: ACL defines the ACL entry of an address.
70620+
initia.ibchooks.v1.Params:
70621+
type: object
70622+
properties:
70623+
default_allowed:
70624+
type: boolean
70625+
description: |-
70626+
if the ACL of a address is not set,
70627+
then we use this value to decide the ACL.
70628+
description: Params defines the set of hook parameters.
70629+
initia.ibchooks.v1.QueryACLResponse:
70630+
type: object
70631+
properties:
70632+
acl:
70633+
type: object
70634+
properties:
70635+
address:
70636+
type: string
70637+
allowed:
70638+
type: boolean
70639+
description: ACL defines the ACL entry of an address.
70640+
title: |-
70641+
QueryACLResponse is the response type for the Query/ACL RPC
70642+
method
70643+
initia.ibchooks.v1.QueryACLsResponse:
70644+
type: object
70645+
properties:
70646+
acls:
70647+
type: array
70648+
items:
70649+
type: object
70650+
properties:
70651+
address:
70652+
type: string
70653+
allowed:
70654+
type: boolean
70655+
description: ACL defines the ACL entry of an address.
70656+
pagination:
70657+
description: pagination defines the pagination in the response.
70658+
type: object
70659+
properties:
70660+
next_key:
70661+
type: string
70662+
format: byte
70663+
description: |-
70664+
next_key is the key to be passed to PageRequest.key to
70665+
query the next page most efficiently. It will be empty if
70666+
there are no more results.
70667+
total:
70668+
type: string
70669+
format: uint64
70670+
title: >-
70671+
total is total number of results available if
70672+
PageRequest.count_total
70673+
70674+
was set, its value is undefined otherwise
70675+
title: |-
70676+
QueryACLsResponse is the response type for the
70677+
Query/ACLAddrs RPC method
70678+
initia.ibchooks.v1.QueryParamsResponse:
70679+
type: object
70680+
properties:
70681+
params:
70682+
description: params defines the parameters of the module.
70683+
type: object
70684+
properties:
70685+
default_allowed:
70686+
type: boolean
70687+
description: |-
70688+
if the ACL of a address is not set,
70689+
then we use this value to decide the ACL.
70690+
description: QueryParamsResponse is the response type for the Query/Params RPC method.
7039070691
cosmos.base.v1beta1.DecCoin:
7039170692
type: object
7039270693
properties:

0 commit comments

Comments
 (0)