Commit 667b11e9 authored by Aris Angelogiannopoulos's avatar Aris Angelogiannopoulos
Browse files

FTS-1242 Update datamanagement controller doc

parent 4fa1142c
Pipeline #422520 passed with stage
in 12 minutes and 26 seconds
......@@ -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:
......
......@@ -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')
......
......@@ -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'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment