API:GET /submission/:id

From SoFurry
Revision as of 14:28, 15 May 2016 by Tetsudra (talk | contribs) (Response: Success)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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