You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: sqle/docs/docs.go
+92-1
Original file line number
Diff line number
Diff line change
@@ -477,6 +477,43 @@ var doc = `{
477
477
}
478
478
}
479
479
},
480
+
"/v1/configurations/git/test": {
481
+
"post": {
482
+
"security": [
483
+
{
484
+
"ApiKeyAuth": []
485
+
}
486
+
],
487
+
"description": "test git connection",
488
+
"consumes": [
489
+
"application/json"
490
+
],
491
+
"tags": [
492
+
"configuration"
493
+
],
494
+
"summary": "测试Git联通性",
495
+
"operationId": "TestGitConnectionV1",
496
+
"parameters": [
497
+
{
498
+
"description": "test git configuration req",
499
+
"name": "req",
500
+
"in": "body",
501
+
"required": true,
502
+
"schema": {
503
+
"$ref": "#/definitions/v1.TestGitConnectionReqV1"
504
+
}
505
+
}
506
+
],
507
+
"responses": {
508
+
"200": {
509
+
"description": "OK",
510
+
"schema": {
511
+
"$ref": "#/definitions/v1.TestGitConnectionResV1"
512
+
}
513
+
}
514
+
}
515
+
}
516
+
},
480
517
"/v1/configurations/license": {
481
518
"get": {
482
519
"security": [
@@ -4815,7 +4852,7 @@ var doc = `{
4815
4852
"ApiKeyAuth": []
4816
4853
}
4817
4854
],
4818
-
"description": "SQL audit\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.\n4. file[input_zip_file]: it is ZIP file that sql will be parsed from xml or sql file inside it.\n5. formData[git_http_url]:the url which scheme is http(s) and end with .git.\n6. formData[git_user_name]:The name of the user who owns the repository read access.\n7. formData[git_user_password]:The password corresponding to git_user_name.",
4855
+
"description": "SQL audit\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.\n4. file[input_zip_file]: it is ZIP file that sql will be parsed from xml or sql file inside it.\n5. formData[git_http_url]:the url which scheme is http(s) and end with .git.\n6. formData[git_user_name]:The name of the user who owns the repository read access.\n7. formData[git_branch_name]:The name of the repository branch.\n8. formData[git_user_password]:The password corresponding to git_user_name.",
4819
4856
"consumes": [
4820
4857
"multipart/form-data"
4821
4858
],
@@ -4895,6 +4932,12 @@ var doc = `{
4895
4932
"name": "git_user_name",
4896
4933
"in": "formData"
4897
4934
},
4935
+
{
4936
+
"type": "string",
4937
+
"description": "the name of repository branch",
4938
+
"name": "git_branch_name",
4939
+
"in": "formData"
4940
+
},
4898
4941
{
4899
4942
"type": "string",
4900
4943
"description": "the password corresponding to git_user_name",
0 commit comments