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

From SoFurry
Jump to: navigation, search
(Response: Success)
(Response: Success)
 
Line 19: Line 19:
 
   "guid": "d84018f3-06b8-497a-d37b-7f3b5fb2ee37",
 
   "guid": "d84018f3-06b8-497a-d37b-7f3b5fb2ee37",
 
   "rating": "clean",
 
   "rating": "clean",
   "original_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=original",
+
   "original_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=original</nowiki>",
   "preview_url": "https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=preview",
+
   "preview_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=preview</nowiki>",
   "processed_url": "www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=processed",
+
   "processed_url": "<nowiki>https://www.sofurryfiles.com/g/d84018f3-06b8-497a-d37b-7f3b5fb2ee37?version=processed</nowiki>",
 
   "published_at": "2016-05-15 05:34:44",
 
   "published_at": "2016-05-15 05:34:44",
 
   "tags": {
 
   "tags": {

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