/v1/projects/{project_id}/files

GET /v1/projects/{project_id}/files

List files of a project

Parameters

  • project_id: The UUID of the project

Response status codes

  • 200: Return list of files
  • 404: The project doesn’t exist

Sample session

curl -i -X GET 'http://localhost:8000/v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files'

GET /v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files HTTP/1.1



HTTP/1.1 200
ACCESS-CONTROL-ALLOW-ORIGIN: *
CONNECTION: keep-alive
CONTENT-LENGTH: 204
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/1.4.0dev13
X-ROUTE: /v1/projects/{project_id}/files

[
    {
        "md5sum": "ad0234829205b9033196ba818f7a872b",
        "path": "test.txt"
    },
    {
        "md5sum": "098f6bcd4621d373cade4e832627b4f6",
        "path": "vm-1/dynamips/test.bin"
    }
]