2022-06-19 22:02:44 -07:00
|
|
|
basePath: /api
|
2023-01-22 10:12:55 -08:00
|
|
|
definitions:
|
2024-04-28 12:32:51 -07:00
|
|
|
domain.ArticleAndSourceModel:
|
|
|
|
properties:
|
|
|
|
article:
|
|
|
|
$ref: '#/definitions/domain.ArticleDto'
|
|
|
|
source:
|
|
|
|
$ref: '#/definitions/domain.SourceDto'
|
|
|
|
type: object
|
|
|
|
domain.ArticleDetailedResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-04-28 12:32:51 -07:00
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
payload:
|
|
|
|
$ref: '#/definitions/domain.ArticleAndSourceModel'
|
|
|
|
type: object
|
|
|
|
domain.ArticleDto:
|
2023-01-22 10:12:55 -08:00
|
|
|
properties:
|
|
|
|
authorImage:
|
|
|
|
type: string
|
|
|
|
authorName:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
2024-04-28 12:32:51 -07:00
|
|
|
type: integer
|
|
|
|
isVideo:
|
|
|
|
type: boolean
|
|
|
|
pubDate:
|
2023-01-22 10:12:55 -08:00
|
|
|
type: string
|
2024-04-28 12:32:51 -07:00
|
|
|
sourceId:
|
|
|
|
type: integer
|
2023-01-22 10:12:55 -08:00
|
|
|
tags:
|
2024-04-28 12:32:51 -07:00
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
thumbnail:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
2024-04-28 12:32:51 -07:00
|
|
|
type: object
|
|
|
|
domain.ArticleResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-04-28 12:32:51 -07:00
|
|
|
message:
|
2023-01-22 10:12:55 -08:00
|
|
|
type: string
|
2024-04-28 12:32:51 -07:00
|
|
|
payload:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/domain.ArticleDto'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
domain.BaseResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-04-28 12:32:51 -07:00
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
domain.DiscordWebHookDto:
|
|
|
|
properties:
|
|
|
|
channel:
|
|
|
|
type: string
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
id:
|
2023-01-22 10:12:55 -08:00
|
|
|
type: integer
|
2024-04-28 12:32:51 -07:00
|
|
|
server:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
description: |-
|
|
|
|
Name string `json:"name"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
domain.DiscordWebhookResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-04-28 12:32:51 -07:00
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
payload:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebHookDto'
|
|
|
|
type: array
|
|
|
|
type: object
|
2024-05-07 18:19:41 -07:00
|
|
|
domain.LoginResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-05-07 18:19:41 -07:00
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
refreshToken:
|
|
|
|
type: string
|
|
|
|
token:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-07-10 07:23:01 -07:00
|
|
|
domain.NewSourceParamRequest:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-05-07 18:19:41 -07:00
|
|
|
domain.RefreshTokenRequest:
|
|
|
|
properties:
|
|
|
|
refreshToken:
|
|
|
|
type: string
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-04-28 12:32:51 -07:00
|
|
|
domain.SourceDto:
|
|
|
|
properties:
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
id:
|
2023-01-22 10:12:55 -08:00
|
|
|
type: integer
|
2024-04-28 12:32:51 -07:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
type: object
|
2024-04-28 19:29:49 -07:00
|
|
|
domain.SourcesResponse:
|
|
|
|
properties:
|
2024-06-02 17:27:36 -07:00
|
|
|
isError:
|
|
|
|
type: boolean
|
2024-04-28 19:29:49 -07:00
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
payload:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/domain.SourceDto'
|
|
|
|
type: array
|
|
|
|
type: object
|
2024-05-07 18:19:41 -07:00
|
|
|
domain.UpdateScopesRequest:
|
|
|
|
properties:
|
|
|
|
scopes:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- scopes
|
|
|
|
type: object
|
2022-06-19 22:02:44 -07:00
|
|
|
info:
|
|
|
|
contact: {}
|
|
|
|
title: NewsBot collector
|
|
|
|
version: "0.1"
|
|
|
|
paths:
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/articles:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
2023-01-31 08:19:23 -08:00
|
|
|
parameters:
|
|
|
|
- description: page number
|
|
|
|
in: query
|
|
|
|
name: page
|
|
|
|
type: string
|
2022-06-19 22:02:44 -07:00
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.ArticleResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-02-04 20:15:10 -08:00
|
|
|
summary: Lists the top 25 records ordering from newest to oldest.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/articles/{ID}:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
2024-04-28 12:32:51 -07:00
|
|
|
- description: int
|
2022-06-19 22:02:44 -07:00
|
|
|
in: path
|
2023-01-22 10:12:55 -08:00
|
|
|
name: ID
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.ArticleResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2022-06-19 22:02:44 -07:00
|
|
|
summary: Returns an article based on defined ID.
|
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/articles/{ID}/details:
|
2022-07-13 21:31:53 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
2024-04-28 12:32:51 -07:00
|
|
|
- description: int
|
2023-01-22 10:12:55 -08:00
|
|
|
in: path
|
|
|
|
name: ID
|
2022-07-13 21:31:53 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.ArticleDetailedResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Returns an article and source based on defined ID.
|
2022-07-13 21:31:53 -07:00
|
|
|
tags:
|
|
|
|
- Articles
|
2024-05-26 09:00:33 -07:00
|
|
|
/v1/articles/by/sourceId:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
2024-04-28 12:32:51 -07:00
|
|
|
- description: source id
|
2022-06-30 14:54:58 -07:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: id
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2023-02-04 21:43:07 -08:00
|
|
|
- description: Page to query
|
|
|
|
in: query
|
|
|
|
name: page
|
|
|
|
type: integer
|
2022-06-19 22:02:44 -07:00
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.ArticleResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2022-06-19 22:02:44 -07:00
|
|
|
summary: Finds the articles based on the SourceID provided. Returns the top
|
2023-02-04 21:43:07 -08:00
|
|
|
25.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2022-07-12 15:28:31 -07:00
|
|
|
- Articles
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/discord/webhooks:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
produces:
|
|
|
|
- application/json
|
2024-04-28 12:32:51 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2024-04-28 12:32:51 -07:00
|
|
|
summary: Returns the top 100
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/{ID}:
|
2023-01-22 10:12:55 -08:00
|
|
|
delete:
|
2022-06-19 22:02:44 -07:00
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: id
|
2022-06-19 22:02:44 -07:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-28 12:32:51 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Deletes a record by ID.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/{ID}/disable:
|
2022-12-07 22:48:31 -08:00
|
|
|
post:
|
2022-06-19 22:02:44 -07:00
|
|
|
parameters:
|
2022-12-07 22:48:31 -08:00
|
|
|
- description: id
|
2022-06-19 22:02:44 -07:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2024-04-28 12:32:51 -07:00
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Disables a Webhook from being used.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/{ID}/enable:
|
2022-06-19 22:02:44 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2024-04-28 12:32:51 -07:00
|
|
|
type: integer
|
2024-06-02 17:27:36 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Enables a source to continue processing.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/{id}:
|
2023-01-22 10:12:55 -08:00
|
|
|
get:
|
2022-06-19 22:02:44 -07:00
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2024-04-28 12:32:51 -07:00
|
|
|
type: integer
|
2023-01-22 10:12:55 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Returns the top 100 entries from the queue to be processed.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/by/serverAndChannel:
|
2022-11-30 21:43:53 -08:00
|
|
|
get:
|
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: Fancy Server
|
2022-11-30 21:43:53 -08:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: server
|
2022-11-30 21:43:53 -08:00
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: memes
|
2022-11-30 21:43:53 -08:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: channel
|
2022-11-30 21:43:53 -08:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-04-28 12:32:51 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Returns all the known web hooks based on the Server and Channel given.
|
2022-11-30 21:43:53 -08:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/discord/webhooks/new:
|
2022-06-19 22:02:44 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: Server name
|
2022-06-19 22:02:44 -07:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: server
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: Channel name
|
2022-06-19 22:02:44 -07:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: channel
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-28 12:32:51 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-04-28 12:32:51 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.DiscordWebhookResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Creates a new record for a discord web hook to post data to.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2024-05-02 17:36:39 -07:00
|
|
|
- DiscordWebhook
|
|
|
|
/v1/sources:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
2024-04-28 19:29:49 -07:00
|
|
|
parameters:
|
|
|
|
- description: page number
|
|
|
|
in: query
|
|
|
|
name: page
|
|
|
|
type: string
|
2022-06-19 22:02:44 -07:00
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"400":
|
|
|
|
description: Unable to reach SQL or Data problems
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Lists the top 50 records
|
2022-08-21 20:02:45 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/{id}:
|
2022-06-19 22:02:44 -07:00
|
|
|
get:
|
|
|
|
parameters:
|
2024-07-10 07:23:01 -07:00
|
|
|
- description: id
|
2022-08-21 20:02:45 -07:00
|
|
|
in: path
|
2022-06-19 22:02:44 -07:00
|
|
|
name: id
|
|
|
|
required: true
|
2024-04-28 19:29:49 -07:00
|
|
|
type: integer
|
2022-06-19 22:02:44 -07:00
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"400":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Bad Request
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"500":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Internal Server Error
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Returns a single entity by ID
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
|
|
|
post:
|
2022-11-30 21:43:53 -08:00
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2024-05-07 22:10:17 -07:00
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Marks a source as deleted based on its ID value.
|
2022-11-30 21:43:53 -08:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/{id}/disable:
|
2022-08-21 20:02:45 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
2024-04-28 19:29:49 -07:00
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-04-28 19:29:49 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Disables a source from processing.
|
2022-08-21 20:02:45 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/{id}/enable:
|
2022-08-21 20:02:45 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-28 19:29:49 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-04-28 19:29:49 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2022-08-21 20:02:45 -07:00
|
|
|
summary: Enables a source to continue processing.
|
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/by/source:
|
2022-11-30 21:43:53 -08:00
|
|
|
get:
|
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: Source Name
|
2022-11-30 21:43:53 -08:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: source
|
2022-11-30 21:43:53 -08:00
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-28 19:29:49 -07:00
|
|
|
- description: page number
|
|
|
|
in: query
|
|
|
|
name: page
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"400":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Bad Request
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"500":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Internal Server Error
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: 'Lists the top 50 records based on the name given. Example: reddit'
|
|
|
|
tags:
|
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/by/sourceAndName:
|
2023-01-22 10:12:55 -08:00
|
|
|
get:
|
|
|
|
parameters:
|
|
|
|
- description: dadjokes
|
2022-11-30 21:43:53 -08:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: reddit
|
|
|
|
in: query
|
|
|
|
name: source
|
2022-11-30 21:43:53 -08:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-22 10:12:55 -08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"400":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Bad Request
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2023-01-22 10:12:55 -08:00
|
|
|
"500":
|
2024-04-28 19:29:49 -07:00
|
|
|
description: Internal Server Error
|
2023-01-22 10:12:55 -08:00
|
|
|
schema:
|
2024-04-28 19:29:49 -07:00
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Returns a single entity by ID
|
2022-11-30 21:43:53 -08:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/new/reddit:
|
2022-06-19 22:02:44 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: name
|
2022-06-19 22:02:44 -07:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: name
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: url
|
2022-06-19 22:02:44 -07:00
|
|
|
in: query
|
2023-01-22 10:12:55 -08:00
|
|
|
name: url
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-28 19:29:49 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-04-28 19:29:49 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Creates a new reddit source to monitor.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/new/rss:
|
2024-04-28 19:29:49 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
2024-07-10 07:23:01 -07:00
|
|
|
- description: body
|
|
|
|
in: body
|
|
|
|
name: request
|
2024-04-28 19:29:49 -07:00
|
|
|
required: true
|
2024-07-10 07:23:01 -07:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.NewSourceParamRequest'
|
2024-04-28 19:29:49 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-04-28 19:29:49 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2024-04-28 19:29:49 -07:00
|
|
|
summary: Creates a new rss source to monitor.
|
|
|
|
tags:
|
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/new/twitch:
|
2023-01-22 10:12:55 -08:00
|
|
|
post:
|
2022-06-19 22:02:44 -07:00
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: name
|
|
|
|
in: query
|
|
|
|
name: name
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2024-06-02 17:27:36 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Creates a new twitch source to monitor.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-02 17:36:39 -07:00
|
|
|
/v1/sources/new/youtube:
|
2023-01-22 10:12:55 -08:00
|
|
|
post:
|
2022-06-19 22:02:44 -07:00
|
|
|
parameters:
|
2023-01-22 10:12:55 -08:00
|
|
|
- description: name
|
|
|
|
in: query
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: url
|
|
|
|
in: query
|
|
|
|
name: url
|
2022-06-19 22:02:44 -07:00
|
|
|
required: true
|
|
|
|
type: string
|
2024-06-02 17:27:36 -07:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.SourcesResponse'
|
2024-05-05 10:02:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2023-01-22 10:12:55 -08:00
|
|
|
summary: Creates a new youtube source to monitor.
|
2022-06-19 22:02:44 -07:00
|
|
|
tags:
|
2023-01-22 10:12:55 -08:00
|
|
|
- Source
|
2024-05-07 18:19:41 -07:00
|
|
|
/v1/users/login:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- in: formData
|
|
|
|
name: password
|
|
|
|
type: string
|
|
|
|
- in: formData
|
|
|
|
name: username
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.LoginResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.LoginResponse'
|
2024-05-07 18:19:41 -07:00
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
2024-06-02 17:27:36 -07:00
|
|
|
$ref: '#/definitions/domain.LoginResponse'
|
2024-05-07 18:19:41 -07:00
|
|
|
summary: Logs into the API and returns a bearer token if successful
|
|
|
|
tags:
|
|
|
|
- Users
|
2024-05-26 07:52:29 -07:00
|
|
|
/v1/users/refresh/sessionToken:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Revokes the current session token and replaces it with a new one.
|
|
|
|
tags:
|
|
|
|
- Users
|
2024-05-26 09:00:33 -07:00
|
|
|
/v1/users/refresh/token:
|
2024-05-07 18:19:41 -07:00
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- description: body
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.RefreshTokenRequest'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.LoginResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
security:
|
|
|
|
- Bearer: []
|
|
|
|
summary: Generates a new token
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
/v1/users/register:
|
|
|
|
post:
|
|
|
|
parameters:
|
|
|
|
- in: formData
|
|
|
|
name: password
|
|
|
|
type: string
|
|
|
|
- in: formData
|
|
|
|
name: username
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
2024-06-02 17:27:36 -07:00
|
|
|
"201":
|
|
|
|
description: Created
|
2024-05-07 18:19:41 -07:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
summary: Creates a new user
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
/v1/users/scopes/add:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: body
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.UpdateScopesRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2024-05-07 18:19:41 -07:00
|
|
|
summary: Adds a new scope to a user account
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
/v1/users/scopes/remove:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: body
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.UpdateScopesRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad Request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
|
|
|
"500":
|
|
|
|
description: Internal Server Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/domain.BaseResponse'
|
2024-05-07 22:10:17 -07:00
|
|
|
security:
|
|
|
|
- Bearer: []
|
2024-05-07 18:19:41 -07:00
|
|
|
summary: Adds a new scope to a user account
|
|
|
|
tags:
|
|
|
|
- Users
|
2024-05-05 10:02:17 -07:00
|
|
|
securityDefinitions:
|
|
|
|
Bearer:
|
|
|
|
description: Type "Bearer" followed by a space and JWT token.
|
|
|
|
in: header
|
|
|
|
name: Authorization
|
|
|
|
type: apiKey
|
2022-06-19 22:02:44 -07:00
|
|
|
swagger: "2.0"
|