docs: add oauth2
tag
This commit is contained in:
parent
7e305429b4
commit
8e69511e3e
@ -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',
|
||||
|
@ -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: []
|
||||
|
@ -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: []
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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: []
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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: []
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -16,6 +16,7 @@ export const swaggerOptions: FastifyDynamicSwaggerOptions = {
|
||||
},
|
||||
tags: [
|
||||
{ name: 'users' },
|
||||
{ name: 'oauth2' },
|
||||
{ name: 'guilds' },
|
||||
{ name: 'channels' },
|
||||
{ name: 'messages' },
|
||||
|
Reference in New Issue
Block a user