Skip to content

Commit 8ce5591

Browse files
authored
Meme (Independent Publisher) (#1714)
* Revert "Merge branch 'microsoft:dev' into dev" This reverts commit 096a7c3, reversing changes made to cb09486. * Revert "Merge branch 'microsoft:dev' into dev" This reverts commit cb09486, reversing changes made to dc26e8a. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commit 01764d0. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commit a3f086e. * Add files via upload
1 parent 24ad08d commit 8ce5591

File tree

3 files changed

+218
-0
lines changed

3 files changed

+218
-0
lines changed
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"properties": {
3+
"connectionParameters": {},
4+
"iconBrandColor": "#da3b01",
5+
"capabilities": [],
6+
"publisher": "Troy Taylor",
7+
"stackOwner": "Dev Daksan"
8+
}
9+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Meme
2+
Meme is a JSON API for a random meme from reddit. Information and links to the image are returned.
3+
4+
## Publisher: Troy Taylor, Hitachi Solutions
5+
6+
## Prerequisites
7+
There are no prerequisites to using this service.
8+
9+
## Obtaining Credentials
10+
There are no credentials needed for this service.
11+
12+
## Supported Operations
13+
### Get random meme
14+
Retrieves a random meme scraped from reddit.
15+
### Get random meme from a subreddit
16+
Retrieves a random meme from a specific subreddit.
17+
18+
## Known Issues and Limitations
19+
There are no known issues at this time.

0 commit comments

Comments
 (0)