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

From SoFurry
Jump to: navigation, search
(Created page with "= Resource URL = https://api.sofurrybeta.com/submission/{id} = Request = GET /submission/5 X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b {} = Response: Success =...")
 
(Response: Success)
Line 25: Line 25:
 
   "created_at": "2016-04-25 13:23:41",
 
   "created_at": "2016-04-25 13:23:41",
 
   "updated_at": "2016-04-25 13:29:25",
 
   "updated_at": "2016-04-25 13:29:25",
   "url": "http://sfx-api-tetsudra.c9users.io/devgetcontent/70bee5de-a96e-9c45-fd7e-e6e92d3ee6cd.png"
+
   "url": "<nowiki>http://sfx-api-tetsudra.c9users.io/devgetcontent/70bee5de-a96e-9c45-fd7e-e6e92d3ee6cd.png</nowiki>"
 
  }
 
  }
  

Revision as of 13:38, 25 April 2016

Resource URL

https://api.sofurrybeta.com/submission/{id}

Request

GET /submission/5
X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b
{}

Response: Success

HTTP 200
{
  "id": 5,
  "user_id": "1",
  "title": "My awesome artwork",
  "type": "image",
  "description": "Some sample artwork",
  "guid": "f8a89ef6-34ac-a7a5-0c00-ad22165c46ba",
  "visible": "1",
  "reported": "0",
  "hold": "0",
  "rating": "clean",
  "created_at": "2016-04-25 13:23:41",
  "updated_at": "2016-04-25 13:29:25",
  "url": "http://sfx-api-tetsudra.c9users.io/devgetcontent/70bee5de-a96e-9c45-fd7e-e6e92d3ee6cd.png"
}

The resulting content will be a JSON object containing information about the submission