Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modify wasm grpc query api path. #453

Merged
merged 2 commits into from
Mar 7, 2022

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented Mar 7, 2022

Description

Modify wasm grpc query api path.

  • /line/wasm/v1/contract/{address} -> /lbm/wasm/v1/contract/{address}
  • /line/wasm/v1/contract/{address}/history -> /lbm/wasm/v1/code/{address}/history
  • /line/wasm/v1/code/{code_id}/contracts -> /lbm/wasm/v1/code/{code_id}/contracts
  • /line/wasm/v1/contract/{address}/state -> /lbm/wasm/v1/contract/{address}/state
  • /wasm/v1/contract/{address}/raw/{query_data} -> /lbm/wasm/v1/contract/{address}/raw/{query_data}
  • /wasm/v1/contract/{address}/smart/{query_data} -> /lbm/wasm/v1/contract/{address}/smart/{query_data}
  • /line/wasm/v1/code/{code_id} -> /lbm/wasm/v1/code/{code_id}
  • /line/wasm/v1/code -> /lbm/wasm/v1/code

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@zemyblue zemyblue self-assigned this Mar 7, 2022
@zemyblue zemyblue requested a review from shiki-tak March 7, 2022 03:23
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

❗ No coverage uploaded for pull request base (release/v0.45.x@7184063). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##             release/v0.45.x     #453   +/-   ##
==================================================
  Coverage                   ?   55.72%           
==================================================
  Files                      ?      719           
  Lines                      ?    73921           
  Branches                   ?        0           
==================================================
  Hits                       ?    41195           
  Misses                     ?    29613           
  Partials                   ?     3113           


It is less efficient than using key. Only one of offset or key
should

Copy link
Contributor

@shiki-tak shiki-tak Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Unnecessary line breaks in a sentence?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swagger.yaml file is generated by make proto-swagger-gen.
So, we don't need to modify swagger file.

description: >-
count_total is set to true to indicate that the result set should
include

Copy link
Contributor

@shiki-tak shiki-tak Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto


count_total is only respected when offset is used. It is ignored
when key

Copy link
Contributor

@shiki-tak shiki-tak Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@zemyblue zemyblue merged commit 2ce2faa into Finschia:release/v0.45.x Mar 7, 2022
@zemyblue zemyblue mentioned this pull request Oct 27, 2022
5 tasks
@zemyblue zemyblue mentioned this pull request Nov 28, 2022
5 tasks
@zemyblue zemyblue deleted the wasm_rest_api branch December 23, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants