* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit 096a7c3199, reversing
changes made to cb0948670f.

* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit cb0948670f, reversing
changes made to dc26e8a026.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit 01764d0a6d.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit a3f086ef0f.

* Add files via upload
This commit is contained in:
Troy Taylor 2022-06-14 22:45:16 -04:00 коммит произвёл GitHub
Родитель 24ad08de1e
Коммит 8ce55916b2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 218 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,190 @@
{
"swagger": "2.0",
"info": {
"title": "Meme",
"description": "Meme is a JSON API for a random meme from reddit.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "meme-api.herokuapp.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/gimme": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"postLink": {
"type": "string",
"description": "The post URL link.",
"title": "Post Link"
},
"subreddit": {
"type": "string",
"description": "The subreddit.",
"title": "Subreddit"
},
"title": {
"type": "string",
"description": "The title.",
"title": "Title"
},
"url": {
"type": "string",
"description": "The URL address.",
"title": "URL"
},
"nsfw": {
"type": "boolean",
"description": "Whether NSFW.",
"title": "NSFW"
},
"spoiler": {
"type": "boolean",
"description": "Whether spoiler.",
"title": "Spoiler"
},
"author": {
"type": "string",
"description": "The author.",
"title": "Author"
},
"ups": {
"type": "integer",
"format": "int32",
"description": "The UPS number.",
"title": "UPS"
},
"preview": {
"type": "array",
"items": {
"type": "string"
},
"description": "The image previews.",
"title": "Preview"
}
}
}
}
},
"summary": "Get random meme",
"description": "Retrieves a random meme scraped from reddit.",
"operationId": "MemeRandom",
"parameters": []
}
},
"/gimme/{subreddit}": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"postLink": {
"type": "string",
"description": "The post URL address.",
"title": "Post Link"
},
"subreddit": {
"type": "string",
"description": "The subredit.",
"title": "Subreddit"
},
"title": {
"type": "string",
"description": "The title.",
"title": "Title"
},
"url": {
"type": "string",
"description": "The URL address.",
"title": "URL"
},
"nsfw": {
"type": "boolean",
"description": "Whether NSFW.",
"title": "NSFW"
},
"spoiler": {
"type": "boolean",
"description": "Whether spoiler.",
"title": "Spoiler"
},
"author": {
"type": "string",
"description": "The author.",
"title": "Author"
},
"ups": {
"type": "integer",
"format": "int32",
"description": "The UPS number.",
"title": "UPS"
},
"preview": {
"type": "array",
"items": {
"type": "string"
},
"description": "The preview images.",
"title": "Preview"
}
}
}
}
},
"summary": "Get random meme scraped from a subreddit",
"description": "Retrieves a random meme from a specific subreddit.",
"operationId": "MemeSubreddit",
"parameters": [
{
"name": "subreddit",
"in": "path",
"x-ms-summary": "Subreddit",
"x-ms-url-encoding": "single",
"description": "The subreddit.",
"required": true,
"type": "string"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://github.com/D3vd/Meme_Api"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://github.com/D3vd/Meme_Api"
},
{
"propertyName": "Categories",
"propertyValue": "Social Media"
}
]
}

Просмотреть файл

@ -0,0 +1,9 @@
{
"properties": {
"connectionParameters": {},
"iconBrandColor": "#da3b01",
"capabilities": [],
"publisher": "Troy Taylor",
"stackOwner": "Dev Daksan"
}
}

Просмотреть файл

@ -0,0 +1,19 @@
# Meme
Meme is a JSON API for a random meme from reddit. Information and links to the image are returned.
## Publisher: Troy Taylor, Hitachi Solutions
## Prerequisites
There are no prerequisites to using this service.
## Obtaining Credentials
There are no credentials needed for this service.
## Supported Operations
### Get random meme
Retrieves a random meme scraped from reddit.
### Get random meme from a subreddit
Retrieves a random meme from a specific subreddit.
## Known Issues and Limitations
There are no known issues at this time.