Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Harbor
Commits
85240019
Commit
85240019
authored
6 years ago
by
stonezdj
Browse files
Options
Download
Email Patches
Plain Diff
Remove reset API
parent
f8c18e4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/swagger.yaml
+0
-18
docs/swagger.yaml
src/core/router.go
+0
-1
src/core/router.go
with
0 additions
and
19 deletions
+0
-19
docs/swagger.yaml
+
0
-
18
View file @
85240019
...
...
@@ -2697,24 +2697,6 @@ paths:
description
:
User does not have permission of admin role.
'
500'
:
description
:
Unexpected internal errors.
/configurations/reset
:
post
:
summary
:
Reset system configurations.
description
:
|
Reset system configurations from environment variables. Can only be accessed by admin user.
tags
:
-
Products
responses
:
'
200'
:
description
:
Reset system configurations successfully.
'
401'
:
description
:
User need to log in first.
'
403'
:
description
:
User does not have permission of admin role.
'
415'
:
$ref
:
'
#/responses/UnsupportedMediaType'
'
500'
:
description
:
Unexpected internal errors.
/email/ping
:
post
:
summary
:
Test connection and authentication with email server.
...
...
This diff is collapsed.
Click to expand it.
src/core/router.go
+
0
-
1
View file @
85240019
...
...
@@ -102,7 +102,6 @@ func initRouters() {
beego
.
Router
(
"/api/config/:group"
,
&
api
.
ConfigSettingAPI
{},
"get:GetConfigByGroup"
)
beego
.
Router
(
"/api/configurations"
,
&
api
.
ConfigAPI
{})
beego
.
Router
(
"/api/configurations/reset"
,
&
api
.
ConfigAPI
{},
"post:Reset"
)
beego
.
Router
(
"/api/statistics"
,
&
api
.
StatisticAPI
{})
beego
.
Router
(
"/api/replications"
,
&
api
.
ReplicationAPI
{})
beego
.
Router
(
"/api/labels"
,
&
api
.
LabelAPI
{},
"post:Post;get:List"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment