Skip to content

Commit ada8700

Browse files
authored
refactor: remove legacy REST APIs (#807)
* remove legacy REST API from swagger * feat: remove legacy REST-related things in client-side * feat: remove legacy REST-related things in server-side * refactor: remove all REST handlers in x modules * refactor: remove legacy REST API in `simapp` * refactor: remove `RegisterRESTRoutes` in all x modules * chore: update mocks * chore: update CHANGELOG * remove sdk_test (legacy) * revert mocks * go mod tidy * remove legact REST test in x/wasm * remove `getBlockByHash` which was used in legacy REST * test: modify an invalid grpc test case * fix typo * update statik * go mod tidy * goimports * chore: add missing norace tag * chore: combine CHANGELOG to one line
1 parent e8236e7 commit ada8700

File tree

124 files changed

+427
-9874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+427
-9874
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4545
### Bug Fixes
4646

4747
### Breaking Changes
48+
* (rest) [\#807](https://github.com/line/lbm-sdk/pull/807) remove legacy REST API
4849

4950
### Build, CI
5051

client/docs/config.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"swagger": "2.0",
33
"info": {
4-
"title": "LBM SDK - Legacy REST and gRPC Gateway docs",
4+
"title": "LBM SDK - gRPC Gateway docs",
55
"description": "A REST interface for state queries, legacy transactions",
66
"version": "1.0.0"
77
},
88
"apis": [
9-
{
10-
"url": "./client/docs/swagger_legacy.yaml",
11-
"dereference": {
12-
"circular": "ignore"
13-
}
14-
},
159
{
1610
"url": "./tmp-swagger-gen/cosmos/auth/v1beta1/query.swagger.json",
1711
"operationIds": {

client/docs/statik/statik.go

+4-5
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)