Difference between revisions of "API:GET /submission/:id"

From SoFurry
Jump to: navigation, search
(Response: Success)
(Response: Success)
Line 13: Line 13:
 
  HTTP 200
 
  HTTP 200
 
  {
 
  {
  "id": 5,
+
  "id": 2000000,
  "user_id": "1",
+
  "title": "Untitled Submission",
  "title": "My awesome artwork",
+
  "type": "image",
  "type": "image",
+
  "description": null,
  "description": "Some sample artwork",
+
  "guid": "d84018f3-06b8-497a-d37b-7f3b5fb2ee37",
  "guid": "f8a89ef6-34ac-a7a5-0c00-ad22165c46ba",
+
  "rating": "clean",
  "visible": "1",
+
  "original_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=original",
  "reported": "0",
+
  "preview_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=preview",
  "hold": "0",
+
  "processed_url": "www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=processed",
  "rating": "clean",
+
  "published_at": "2016-05-15 05:34:44",
  "created_at": "2016-04-25 13:23:41",
+
  "tags": {
  "updated_at": "2016-04-25 13:29:25",
+
    "artist": [],
  "url": "<nowiki>http://sfx-api-tetsudra.c9users.io/devgetcontent/70bee5de-a96e-9c45-fd7e-e6e92d3ee6cd.png</nowiki>"
+
    "community": []
 +
  },
 +
  "allow": {
 +
    "comments": "1",
 +
    "likes": "1",
 +
    "favorites": "1",
 +
    "tags": "1"
 +
  },
 +
  "user": {
 +
    "user_id": "1",
 +
    "name": null,
 +
    "slug": "bob"
 +
  },
 +
  "favorites": [],
 +
  "likes": 0,
 +
  "comments": [],
 +
  "me": []
 
  }
 
  }
  

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": "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