1+ {
2+   "swagger" : " 2.0" 
3+   "info" : {
4+     "title" : " Meme" 
5+     "description" : " Meme is a JSON API for a random meme from reddit." 
6+     "version" : " 1.0" 
7+     "contact" : {
8+       "name" : " Troy Taylor" 
9+       "url" : " https://www.hitachisolutions.com" 
10+       "email" : " ttaylor@hitachisolutions.com" 
11+     }
12+   },
13+   "host" : " meme-api.herokuapp.com" 
14+   "basePath" : " /" 
15+   "schemes" : [
16+     " https" 
17+   ],
18+   "consumes" : [
19+     " application/json" 
20+   ],
21+   "produces" : [
22+     " application/json" 
23+   ],
24+   "paths" : {
25+     "/gimme" : {
26+       "get" : {
27+         "responses" : {
28+           "200" : {
29+             "description" : " default" 
30+             "schema" : {
31+               "type" : " object" 
32+               "properties" : {
33+                 "postLink" : {
34+                   "type" : " string" 
35+                   "description" : " The post URL link." 
36+                   "title" : " Post Link" 
37+                 },
38+                 "subreddit" : {
39+                   "type" : " string" 
40+                   "description" : " The subreddit." 
41+                   "title" : " Subreddit" 
42+                 },
43+                 "title" : {
44+                   "type" : " string" 
45+                   "description" : " The title." 
46+                   "title" : " Title" 
47+                 },
48+                 "url" : {
49+                   "type" : " string" 
50+                   "description" : " The URL address." 
51+                   "title" : " URL" 
52+                 },
53+                 "nsfw" : {
54+                   "type" : " boolean" 
55+                   "description" : " Whether NSFW." 
56+                   "title" : " NSFW" 
57+                 },
58+                 "spoiler" : {
59+                   "type" : " boolean" 
60+                   "description" : " Whether spoiler." 
61+                   "title" : " Spoiler" 
62+                 },
63+                 "author" : {
64+                   "type" : " string" 
65+                   "description" : " The author." 
66+                   "title" : " Author" 
67+                 },
68+                 "ups" : {
69+                   "type" : " integer" 
70+                   "format" : " int32" 
71+                   "description" : " The UPS number." 
72+                   "title" : " UPS" 
73+                 },
74+                 "preview" : {
75+                   "type" : " array" 
76+                   "items" : {
77+                     "type" : " string" 
78+                   },
79+                   "description" : " The image previews." 
80+                   "title" : " Preview" 
81+                 }
82+               }
83+             }
84+           }
85+         },
86+         "summary" : " Get random meme" 
87+         "description" : " Retrieves a random meme scraped from reddit." 
88+         "operationId" : " MemeRandom" 
89+         "parameters" : []
90+       }
91+     },
92+     "/gimme/{subreddit}" : {
93+       "get" : {
94+         "responses" : {
95+           "200" : {
96+             "description" : " default" 
97+             "schema" : {
98+               "type" : " object" 
99+               "properties" : {
100+                 "postLink" : {
101+                   "type" : " string" 
102+                   "description" : " The post URL address." 
103+                   "title" : " Post Link" 
104+                 },
105+                 "subreddit" : {
106+                   "type" : " string" 
107+                   "description" : " The subredit." 
108+                   "title" : " Subreddit" 
109+                 },
110+                 "title" : {
111+                   "type" : " string" 
112+                   "description" : " The title." 
113+                   "title" : " Title" 
114+                 },
115+                 "url" : {
116+                   "type" : " string" 
117+                   "description" : " The URL address." 
118+                   "title" : " URL" 
119+                 },
120+                 "nsfw" : {
121+                   "type" : " boolean" 
122+                   "description" : " Whether NSFW." 
123+                   "title" : " NSFW" 
124+                 },
125+                 "spoiler" : {
126+                   "type" : " boolean" 
127+                   "description" : " Whether spoiler." 
128+                   "title" : " Spoiler" 
129+                 },
130+                 "author" : {
131+                   "type" : " string" 
132+                   "description" : " The author." 
133+                   "title" : " Author" 
134+                 },
135+                 "ups" : {
136+                   "type" : " integer" 
137+                   "format" : " int32" 
138+                   "description" : " The UPS number." 
139+                   "title" : " UPS" 
140+                 },
141+                 "preview" : {
142+                   "type" : " array" 
143+                   "items" : {
144+                     "type" : " string" 
145+                   },
146+                   "description" : " The preview images." 
147+                   "title" : " Preview" 
148+                 }
149+               }
150+             }
151+           }
152+         },
153+         "summary" : " Get random meme scraped from a subreddit" 
154+         "description" : " Retrieves a random meme from a specific subreddit." 
155+         "operationId" : " MemeSubreddit" 
156+         "parameters" : [
157+           {
158+             "name" : " subreddit" 
159+             "in" : " path" 
160+             "x-ms-summary" : " Subreddit" 
161+             "x-ms-url-encoding" : " single" 
162+             "description" : " The subreddit." 
163+             "required" : true ,
164+             "type" : " string" 
165+           }
166+         ]
167+       }
168+     }
169+   },
170+   "definitions" : {},
171+   "parameters" : {},
172+   "responses" : {},
173+   "securityDefinitions" : {},
174+   "security" : [],
175+   "tags" : [],
176+   "x-ms-connector-metadata" : [
177+     {
178+       "propertyName" : " Website" 
179+       "propertyValue" : " https://github.com/D3vd/Meme_Api" 
180+     },
181+     {
182+       "propertyName" : " Privacy policy" 
183+       "propertyValue" : " https://github.com/D3vd/Meme_Api" 
184+     },
185+     {
186+       "propertyName" : " Categories" 
187+       "propertyValue" : " Social Media" 
188+     }
189+   ]
190+ }
0 commit comments