This page returns a paginated list of all Resource Attachments.

The HTTP POST operation is allowed for purposes of creating a new Resource Attachment instance; a single Resource Attachment may be created per post. The ability to POST depends upon on account permissions and Resource ownership.

Filtering by Resource owner and/or Resource is available using the 'username' and 'resource' GET parameters. The 'resource' GET parameter takes an integer value, corresponding to the internal id of the Resource. Example: https://specimens.cancer.gov/api/resource-attachment/?username=jdoe&resource=12

The 'resource' element in the POST data must be the full API URL of the desired Resource to which the attachment belongs. Example: https://specimens.cancer.gov/api/resource/12/

Current page: GET /api/resource-attachment/?page=2View Plain JSON
HTTP 200 OK
Content-Type: application/json
Vary: Accept
Allow: GET, POST, HEAD, OPTIONS

{
    "count": 11,
    "next": null,
    "previous": "https://specimens.cancer.gov/api/resource-attachment/",
    "results": [
        {
            "id": "https://specimens.cancer.gov/api/resource-attachment/12/",
            "user": "dayh",
            "resource": "https://specimens.cancer.gov/api/resource/73/",
            "file_name": "Copy of NIH_SRL_Data_COG_2017_submitted.xlsx",
            "file_size": 12872,
            "date_attached": "2017-05-17T17:00:15.559",
            "file": "https://specimens.cancer.gov/backend/resource/attach/serve/12/"
        }
    ]
}