Skip to content

Commit

Permalink
fix: turn off online debug (#1903)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran committed May 18, 2021
1 parent f70324a commit 9728a43
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 457 deletions.
97 changes: 0 additions & 97 deletions api/internal/handler/route_online_debug/route_online_debug_test.go

This file was deleted.

2 changes: 0 additions & 2 deletions api/internal/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/apisix/manager-api/internal/handler/label"
"github.com/apisix/manager-api/internal/handler/plugin_config"
"github.com/apisix/manager-api/internal/handler/route"
"github.com/apisix/manager-api/internal/handler/route_online_debug"
"github.com/apisix/manager-api/internal/handler/schema"
"github.com/apisix/manager-api/internal/handler/server_info"
"github.com/apisix/manager-api/internal/handler/service"
Expand Down Expand Up @@ -70,7 +69,6 @@ func SetUpRouter() *gin.Engine {
healthz.NewHandler,
authentication.NewHandler,
global_rule.NewHandler,
route_online_debug.NewHandler,
server_info.NewHandler,
label.NewHandler,
data_loader.NewHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

func TestRoute(t *testing.T) {
gomega.RegisterFailHandler(ginkgo.Fail)
ginkgo.RunSpecs(t, "route online debug suite")
//ginkgo.RunSpecs(t, "route online debug suite")
}

var _ = ginkgo.AfterSuite(func() {
Expand Down
28 changes: 0 additions & 28 deletions docs/en/latest/USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,6 @@ The Route module aims to control routes by UI instead of calling APIs.

![route-create-done-list-en](https://user-images.githubusercontent.com/40708551/112923280-a0a94080-912b-11eb-8b83-3960778ecf8a.png)

### Online debug

We can debug a route both published or offline with the online debug function, which is located in the routes list page.

1. Debug a published route

![route-debug-published](../../assets/images/route-debug-published.png)

2. Debug a offline route

![route-debug-offline](https://user-images.githubusercontent.com/40708551/112923419-e5cd7280-912b-11eb-8e7e-57c3c4fe31ef.png)

3. Debug a published route with query params

![route-debug-query-params](../../assets/images/route-debug-query-params.png)

4. Debug a published route with header params

![route-debug-header-params](../../assets/images/route-debug-header-params.png)

5. Debug a published route with body params

![route-debug-body-params](../../assets/images/route-debug-body-params.png)

6. Debug a published route with basic auth

![route-debug-basic-auth](../../assets/images/route-debug-basic-auth.png)

## Setting

![setting](https://user-images.githubusercontent.com/40708551/112923561-22996980-912c-11eb-926f-45177500eb65.png)
Loading

0 comments on commit 9728a43

Please sign in to comment.