Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
667b11e9
Commit
667b11e9
authored
Jun 21, 2018
by
Aris Angelogiannopoulos
Browse files
FTS-1242
Update datamanagement controller doc
parent
4fa1142c
Pipeline
#422520
passed with stage
in 12 minutes and 26 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/controllers/banning.py
View file @
667b11e9
...
...
@@ -12,6 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#import sys
#sys.path.append('/home/aris/projects/fts-rest/src/fts3rest/fts3rest')
#sys.path.append('/home/aris/projects/fts-rest/src/fts3rest/fts3rest/controllers')
from
fts3rest.controllers.config
import
audit_configuration
try
:
...
...
src/fts3rest/fts3rest/controllers/datamanagement.py
View file @
667b11e9
...
...
@@ -242,7 +242,8 @@ class DatamanagementController(BaseController):
finally
:
os
.
unlink
(
proxy
.
name
)
@
doc
.
query_arg
(
'surl'
,
'Remote SURL'
,
required
=
True
)
@
doc
.
query_arg
(
'old'
,
'Old SURL name'
,
required
=
True
)
@
doc
.
query_arg
(
'new'
,
'New SURL name'
,
required
=
True
)
@
doc
.
response
(
400
,
'Protocol not supported OR the SURL is not a directory'
)
@
doc
.
response
(
403
,
'Permission denied'
)
@
doc
.
response
(
404
,
'The SURL does not exist'
)
...
...
@@ -284,6 +285,7 @@ class DatamanagementController(BaseController):
finally
:
os
.
unlink
(
proxy
.
name
)
@
doc
.
query_arg
(
'surl'
,
'Remote SURL'
,
required
=
True
)
@
doc
.
response
(
400
,
'Protocol not supported OR the SURL is not a directory'
)
@
doc
.
response
(
403
,
'Permission denied'
)
@
doc
.
response
(
404
,
'The SURL does not exist'
)
...
...
@@ -325,6 +327,7 @@ class DatamanagementController(BaseController):
finally
:
os
.
unlink
(
proxy
.
name
)
@
doc
.
query_arg
(
'surl'
,
'Remote SURL'
,
required
=
True
)
@
doc
.
response
(
400
,
'Protocol not supported OR the SURL is not a directory'
)
@
doc
.
response
(
403
,
'Permission denied'
)
@
doc
.
response
(
404
,
'The SURL does not exist'
)
...
...
src/fts3rest/generate-api-doc.py
View file @
667b11e9
...
...
@@ -43,7 +43,7 @@ def write_resources(options, resources):
def
write_apis
(
options
,
resources
,
apis
,
models
):
for
resource
in
resources
:
resource_path
=
resource
[
'
path
'
]
resource_path
=
resource
[
'
id
'
]
swagger_api
=
{
'swaggerVersion'
:
'1.2'
,
'produces'
:
[
'application/json'
],
...
...
@@ -71,7 +71,7 @@ if __name__ == '__main__':
resources
,
apis
,
models
=
api
.
introspect
()
resources
.
sort
(
key
=
lambda
r
:
r
[
'
path
'
])
resources
.
sort
(
key
=
lambda
r
:
r
[
'
id
'
])
for
api
in
apis
.
values
():
api
.
sort
(
key
=
lambda
a
:
a
[
'path'
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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