- Versions Concepts Resources Extensions Statistics Resources Reference
Attachment GET Resources
Attachment by ID
GET /attachments/:id
Returns one attachment by ID.
{
"id": 42,
"name": "sherlock.zip",
"hash": "017eb2b4018cd555cdb3db0a79c1e65d68bd376a",
"size": 32054569,
"mime_type": "application/zip",
"created": "2012-05-20T14:35:27Z"
}
Get the attached file
GET /attachments/:id/file
Returns the file
List of attachments for a question
GET /questions/:id/attachments
List of attachments for the specified question id ordered by date of creation.
[
{
"id": 42,
"name": "sherlock.zip",
"hash": "017eb2b4018cd555cdb3db0a79c1e65d68bd376a",
"size": 32054569,
"mime_type": "application/zip",
"created": "2012-05-20T14:35:27.000Z"
}
]
List of attachments for a solution
GET /solutions/:id/attachments
List of attachments for the specified solution id ordered by date of creation.
[
{
"id": 42,
"name": "sherlock.zip",
"hash": "017eb2b4018cd555cdb3db0a79c1e65d68bd376a",
"size": 32054569,
"mime_type": "application/zip",
"created": "2012-05-20T14:35:27.000Z"
}
]