2022-06-19 22:02:44 -07:00
|
|
|
basePath: /api
|
|
|
|
info:
|
|
|
|
contact: {}
|
|
|
|
title: NewsBot collector
|
|
|
|
version: "0.1"
|
|
|
|
paths:
|
|
|
|
/articles:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Lists the top 50 records
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2022-06-19 22:02:44 -07:00
|
|
|
/articles/{id}:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: uuid
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns an article based on defined ID.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2022-06-30 14:54:58 -07:00
|
|
|
/articles/by/sourceid:
|
2022-07-13 21:31:53 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Source ID UUID
|
|
|
|
in: query
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Finds the articles based on the SourceID provided. Returns the top
|
|
|
|
50.
|
|
|
|
tags:
|
|
|
|
- Articles
|
|
|
|
/articles/by/tag:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
2022-07-13 15:52:25 -07:00
|
|
|
- description: Tag name
|
2022-06-30 14:54:58 -07:00
|
|
|
in: query
|
2022-07-13 21:31:53 -07:00
|
|
|
name: tag
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Finds the articles based on the SourceID provided. Returns the top
|
|
|
|
50.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Lists the top 50 records
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/{id}:
|
|
|
|
delete:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Deletes a record by ID.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: uuid
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns a single entity by ID
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/{id}/disable:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Disables a source from processing.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/{id}/enable:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Enables a source to continue processing.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
2022-07-26 13:27:34 -07:00
|
|
|
/config/sources/by/source:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Source Name
|
|
|
|
in: query
|
|
|
|
name: source
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: 'Lists the top 50 records based on the name given. Example: reddit'
|
|
|
|
tags:
|
|
|
|
- Config
|
|
|
|
- Source
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/new/reddit:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: name
|
|
|
|
in: query
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Creates a new reddit source to monitor.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
|
|
|
- Reddit
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/new/twitch:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: name
|
|
|
|
in: query
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: tags
|
|
|
|
in: query
|
|
|
|
name: tags
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Creates a new twitch source to monitor.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
|
|
|
- Twitch
|
2022-06-19 22:02:44 -07:00
|
|
|
/config/sources/new/youtube:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: name
|
|
|
|
in: query
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: tags
|
|
|
|
in: query
|
|
|
|
name: tags
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Creates a new youtube source to monitor.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Source
|
|
|
|
- YouTube
|
2022-06-19 22:02:44 -07:00
|
|
|
/discord/queue:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Debug
|
2022-06-19 22:02:44 -07:00
|
|
|
- Discord
|
|
|
|
- Queue
|
|
|
|
/discord/webhooks:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
2022-06-19 22:02:44 -07:00
|
|
|
- Discord
|
2022-07-12 15:28:31 -07:00
|
|
|
- Webhook
|
2022-06-19 22:02:44 -07:00
|
|
|
/discord/webhooks/byId:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: query
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
2022-06-19 22:02:44 -07:00
|
|
|
- Discord
|
2022-07-12 15:28:31 -07:00
|
|
|
- Webhook
|
2022-06-19 22:02:44 -07:00
|
|
|
/discord/webhooks/new:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Server name
|
|
|
|
in: query
|
|
|
|
name: server
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-07-12 15:28:31 -07:00
|
|
|
- description: Channel name
|
2022-06-19 22:02:44 -07:00
|
|
|
in: query
|
|
|
|
name: channel
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Creates a new record for a discord web hook to post data to.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
2022-06-19 22:02:44 -07:00
|
|
|
- Discord
|
2022-07-12 15:28:31 -07:00
|
|
|
- Webhook
|
2022-06-19 22:02:44 -07:00
|
|
|
/hello/{who}:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Who
|
|
|
|
in: path
|
|
|
|
name: who
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- text/plain
|
|
|
|
responses: {}
|
|
|
|
summary: Responds back with "Hello x" depending on param passed in.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Debug
|
2022-06-19 22:02:44 -07:00
|
|
|
/helloworld:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- text/plain
|
|
|
|
responses: {}
|
|
|
|
summary: Responds back with "Hello world!"
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Debug
|
2022-06-19 22:02:44 -07:00
|
|
|
/ping:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- text/plain
|
|
|
|
responses: {}
|
|
|
|
summary: Sends back "pong". Good to test with.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Debug
|
2022-06-19 22:02:44 -07:00
|
|
|
/settings/{key}:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: Settings Key value
|
|
|
|
in: path
|
|
|
|
name: key
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
2022-07-12 15:28:31 -07:00
|
|
|
summary: Returns a object based on the Key that was given.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Settings
|
2022-06-19 22:02:44 -07:00
|
|
|
/subscriptions:
|
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Subscription
|
2022-06-19 22:02:44 -07:00
|
|
|
/subscriptions/byDiscordId:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: query
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Subscription
|
2022-06-19 22:02:44 -07:00
|
|
|
/subscriptions/bySourceId:
|
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: query
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses: {}
|
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Config
|
|
|
|
- Subscription
|
|
|
|
/subscriptions/new/discordwebhook:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: discordWebHookId
|
|
|
|
in: query
|
|
|
|
name: discordWebHookId
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: sourceId
|
|
|
|
in: query
|
|
|
|
name: sourceId
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
summary: Creates a new subscription to link a post from a Source to a DiscordWebHook.
|
|
|
|
tags:
|
|
|
|
- Config
|
|
|
|
- Source
|
|
|
|
- Discord
|
|
|
|
- Subscription
|
2022-06-19 22:02:44 -07:00
|
|
|
swagger: "2.0"
|