GET
/v1/resources/attachment/{idatt}
¶Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Response Headers: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|
Request:
GET /v1/resources/attachments/53f1d8ab9437bdca80a97882 HTTP/1.1
Accept: application/json
Authorization: key my-very-secret-key
Host: ticketscloud.org
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
{
"author": "8ab53f1d94dca37b8088a972",
"content_type": "image/gif",
"created_at": "2014-10-02T10:42:28.288000+00:00",
"id": "53f1d8ab9437bdca80a97882",
"length": 4201,
"md5": "bfd55d7efd971d30d1b429cfebde0b71",
"removed": false,
"updated_at": "2014-10-02T10:42:28.288000+00:00"
}
GET
/v1/resources/attachments
¶Request Headers: | |
---|---|
|
|
Query Parameters: | |
|
|
Response Headers: | |
|
|
Response JSON Array of Objects: | |
|
|
Status Codes: |
|
Request:
GET /v1/resources/attachments HTTP/1.1
Accept: application/json
Authorization: key my-very-secret-key
Host: ticketscloud.org
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
[
{
"author": "8ab53f1d94dca37b8088a972",
"content_type": "image/gif",
"created_at": "2014-10-02T10:42:28.288000+00:00",
"id": "53f1d8ab9437bdca80a97882",
"length": 4201,
"md5": "bfd55d7efd971d30d1b429cfebde0b71",
"removed": false,
"updated_at": "2014-10-02T10:42:28.288000+00:00"
}
]
POST
/v1/resources/attachments
¶Creates a new file.
Request Headers: | |
---|---|
|
|
Parameters: |
|
Query Parameters: | |
|
|
Response Headers: | |
|
|
Response JSON Array of Objects: | |
|
|
Response JSON Object: | |
|
|
Status Codes: |
|
Request:
POST /v1/resources/attachments HTTP/1.1
Accept: application/json
Authorization: key my-very-secret-key
Content-Length: 4201
Content-Type: image/gif
Host: ticketscloud.org
<...data...>
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
{
"author": "8ab53f1d94dca37b8088a972",
"content_type": "image/gif",
"created_at": "2014-10-02T10:42:28.288000+00:00",
"id": "53f1d8ab9437bdca80a97882",
"length": 4201,
"md5": "bfd55d7efd971d30d1b429cfebde0b71",
"removed": false,
"updated_at": "2014-10-02T10:42:28.288000+00:00"
}