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

feat(BE): Export route from OpenAPI Specification3.0 #1245

Merged
merged 37 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
bbce7b9
Export route from OpenAPI Specification3.0
Jaycean Jan 8, 2021
018ed9a
Fix golang CI check error:` json.Unmarshal ` is not checked
Jaycean Jan 11, 2021
32981c1
Add E2E test for exporting route list,Modifying the writing of iterat…
Jaycean Jan 11, 2021
b51b3d7
Bug fix: fix not correct route.uri analysis
Jaycean Jan 11, 2021
1681b56
Fix the code format and create a method to parse pathitem
Jaycean Jan 12, 2021
5e8a274
Add data fusion of upstream, label and plugin in (route, service)
Jaycean Jan 13, 2021
2c7d2b2
Add judgment on mergejson error
Jaycean Jan 13, 2021
bf5775c
Split the function
Jaycean Jan 14, 2021
e64a7e1
Fix bugs and change the readability of E2E test cases
Jaycean Jan 14, 2021
e1a1c08
Modify folder name
Jaycean Jan 18, 2021
3839aad
Add test to delete service
Jaycean Jan 19, 2021
f938254
Delete route_export.go
Jaycean Jan 19, 2021
a6f8b8e
Temporary name: route_ export
Jaycean Jan 19, 2021
170073b
Folder name confirmation
Jaycean Jan 19, 2021
d5cb0d0
Add store context.Background () pass on the reference
Jaycean Jan 21, 2021
ede829c
add JWT authentication export test cases
Jaycean Jan 21, 2021
cc8cba6
Increase test case sleep
Jaycean Jan 21, 2021
fdde17f
Add test cases: export routes with basic-auth key-auth authentication…
Jaycean Jan 21, 2021
2fe7755
Add the interface to export all routes and E2E test cases
Jaycean Jan 22, 2021
12823a7
Modify the label processing logix and add E2E test cases
Jaycean Jan 22, 2021
36275ed
Bug fix: fixed body_schema data processing, adding label and request_…
Jaycean Jan 22, 2021
899fbf8
The fields of x-apisix need to be defined according to the definition…
Jaycean Jan 22, 2021
bbdcf83
test: add unit test case example
johzchen Jan 22, 2021
db5af01
Add some unit tests
Jaycean Jan 24, 2021
b41a80e
Add auth component unit test and modify code
Jaycean Jan 24, 2021
a396a8c
Add unit test
Jaycean Jan 25, 2021
d80d9e3
Fix format, add comments, package function of upstream data processing
Jaycean Jan 25, 2021
9d0e52e
avoid use context.Background,use c.Context()
Jaycean Jan 25, 2021
7c1b83e
Add suffixes and test cases when exporting the same URI
Jaycean Jan 25, 2021
b0da814
Fix the code format problem, add comments, and fix the unit test JSON…
Jaycean Jan 26, 2021
8af7769
Remove the comment code
Jaycean Jan 26, 2021
2cb620e
Modify test case upstream IP
Jaycean Jan 26, 2021
fbf404a
Label variable declaration
Jaycean Jan 26, 2021
934fab6
Add closure to create pathnumber
Jaycean Jan 26, 2021
0af3fd8
Update unit tests and E2E test cases
Jaycean Jan 26, 2021
3c16154
Modify closure writing, modify test cases
Jaycean Jan 26, 2021
eef0f5e
Remove the comment code
Jaycean Jan 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/internal/core/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ type UpstreamDef struct {
Labels map[string]string `json:"labels,omitempty"`
}

type RequestValidation struct {
Type string `json:"type,omitempty"`
Required []string `json:"required,omitempty"`
Properties interface{} `json:"properties,omitempty"`
}

// swagger:model Upstream
type Upstream struct {
BaseInfo
Expand Down
Loading