You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (JIRA)" <ji...@apache.org> on 2019/05/23 13:36:00 UTC

[jira] [Resolved] (AIRAVATA-3033) REST API for viewing, modifying user storage

     [ https://issues.apache.org/jira/browse/AIRAVATA-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Christie resolved AIRAVATA-3033.
---------------------------------------
    Resolution: Fixed

> REST API for viewing, modifying user storage
> --------------------------------------------
>
>                 Key: AIRAVATA-3033
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3033
>             Project: Airavata
>          Issue Type: Sub-task
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.19
>
>
> h5. API design notes
> * URL is a user storage relative path, for example {{/api/user-storage/~/TestOct1/Gaussian_on_May_22_2019_1136_AM}}
> * paths are always directories
> * GET on a path returns a JSON response with two keys {{directories}} and {{files}}
> * POSTing to a missing path creates the path
> * POST is always a multipart/form-data request and may contain file uploads
> * DELETE must be to an existing path and will delete that path
> * downloading a file requires using /api/download with the data product URI
> * PUT to a new path creates the path. Request body must be JSON with {{directories}} and {{files}} to move to new or existing path.
> * With PUT requests, the JSON object for a directory or file can also have a {{rename}} key to support renames



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)