2
1
mirror of https://github.com/Thream/api.git synced 2024-07-06 12:50:12 +02:00

docs: add oauth2 tag

This commit is contained in:
Divlo 2022-08-29 17:37:00 +00:00
parent 7e305429b4
commit 8e69511e3e
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
15 changed files with 15 additions and 14 deletions

View File

@ -22,7 +22,7 @@ export const serviceGenerator = {
type: 'list',
name: 'tag',
message: 'tag',
choices: ['users', 'guilds', 'channels', 'messages', 'members']
choices: ['users', 'oauth2', 'guilds', 'channels', 'messages', 'members']
},
{
type: 'confirm',

View File

@ -14,7 +14,7 @@ type Parameters = Static<typeof parametersSchema>
const deleteServiceSchema: FastifySchema = {
description: 'DELETE a provider to authenticate with for a user.',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
security: [
{
bearerAuth: []

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
security: [
{
bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - callback-add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - callback',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - signin',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
security: [
{
bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - callback-add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - callback',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - signin',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
security: [
{
bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - callback-add-strategy',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - callback',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - signin',
tags: ['users'] as string[],
tags: ['oauth2'] as string[],
querystring: querySchema,
response: {
200: Type.String(),

View File

@ -16,6 +16,7 @@ export const swaggerOptions: FastifyDynamicSwaggerOptions = {
},
tags: [
{ name: 'users' },
{ name: 'oauth2' },
{ name: 'guilds' },
{ name: 'channels' },
{ name: 'messages' },