CS3099JH2017 / cs3099jh

CS3099 Junior Honours Project Protocol and Discussion Central Repo
1 stars 6 forks source link

Clarification: Moving files #38

Open TheDuckGoesQuark opened 6 years ago

TheDuckGoesQuark commented 6 years ago

A file can be moved by making a post request to the file path with "action=move" and request body matching

alternative([
    {
        "id": string,
        "path": not_present
    },
    {
        "id": not_present,
        "path": string
    }
])

If we are supplied an id, do we move the file from the path given in the URL to the path of the file with that ID?