Difference between revisions of "API:GET /submission/:id"
(Created page with "= Resource URL = https://api.sofurrybeta.com/submission/{id} = Request = GET /submission/5 X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b {} = Response: Success =...") |
(→Response: Success) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
HTTP 200 | HTTP 200 | ||
{ | { | ||
− | + | "id": 2000000, | |
− | + | "title": "Untitled Submission", | |
− | + | "type": "image", | |
− | + | "description": null, | |
− | + | "guid": "d84018f3-06b8-497a-d37b-7f3b5fb2ee37", | |
− | + | "rating": "clean", | |
− | + | "original_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=original</nowiki>", | |
− | + | "preview_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=preview</nowiki>", | |
− | + | "processed_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=processed</nowiki>", | |
− | + | "published_at": "2016-05-15 05:34:44", | |
− | + | "tags": { | |
− | + | "artist": [], | |
− | + | "community": [] | |
+ | }, | ||
+ | "allow": { | ||
+ | "comments": "1", | ||
+ | "likes": "1", | ||
+ | "favorites": "1", | ||
+ | "tags": "1" | ||
+ | }, | ||
+ | "user": { | ||
+ | "user_id": "1", | ||
+ | "name": null, | ||
+ | "slug": "bob" | ||
+ | }, | ||
+ | "favorites": [], | ||
+ | "likes": 0, | ||
+ | "comments": [], | ||
+ | "me": [] | ||
} | } | ||
Latest revision as of 14:28, 15 May 2016
Resource URL
https://api.sofurrybeta.com/submission/{id}
Request
GET /submission/5 X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b {}
Response: Success
HTTP 200 { "id": 2000000, "title": "Untitled Submission", "type": "image", "description": null, "guid": "d84018f3-06b8-497a-d37b-7f3b5fb2ee37", "rating": "clean", "original_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=original", "preview_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=preview", "processed_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=processed", "published_at": "2016-05-15 05:34:44", "tags": { "artist": [], "community": [] }, "allow": { "comments": "1", "likes": "1", "favorites": "1", "tags": "1" }, "user": { "user_id": "1", "name": null, "slug": "bob" }, "favorites": [], "likes": 0, "comments": [], "me": [] }
The resulting content will be a JSON object containing information about the submission