docs: add oauth2
tag
This commit is contained in:
parent
7e305429b4
commit
8e69511e3e
@ -22,7 +22,7 @@ export const serviceGenerator = {
|
|||||||
type: 'list',
|
type: 'list',
|
||||||
name: 'tag',
|
name: 'tag',
|
||||||
message: 'tag',
|
message: 'tag',
|
||||||
choices: ['users', 'guilds', 'channels', 'messages', 'members']
|
choices: ['users', 'oauth2', 'guilds', 'channels', 'messages', 'members']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
|
@ -14,7 +14,7 @@ type Parameters = Static<typeof parametersSchema>
|
|||||||
|
|
||||||
const deleteServiceSchema: FastifySchema = {
|
const deleteServiceSchema: FastifySchema = {
|
||||||
description: 'DELETE a provider to authenticate with for a user.',
|
description: 'DELETE a provider to authenticate with for a user.',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
security: [
|
security: [
|
||||||
{
|
{
|
||||||
bearerAuth: []
|
bearerAuth: []
|
||||||
|
@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Discord OAuth2 - add-strategy',
|
description: 'Discord OAuth2 - add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
security: [
|
security: [
|
||||||
{
|
{
|
||||||
bearerAuth: []
|
bearerAuth: []
|
||||||
|
@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Discord OAuth2 - callback-add-strategy',
|
description: 'Discord OAuth2 - callback-add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Discord OAuth2 - callback',
|
description: 'Discord OAuth2 - callback',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Discord OAuth2 - signin',
|
description: 'Discord OAuth2 - signin',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'GitHub OAuth2 - add-strategy',
|
description: 'GitHub OAuth2 - add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
security: [
|
security: [
|
||||||
{
|
{
|
||||||
bearerAuth: []
|
bearerAuth: []
|
||||||
|
@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'GitHub OAuth2 - callback-add-strategy',
|
description: 'GitHub OAuth2 - callback-add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'GitHub OAuth2 - callback',
|
description: 'GitHub OAuth2 - callback',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'GitHub OAuth2 - signin',
|
description: 'GitHub OAuth2 - signin',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Google OAuth2 - add-strategy',
|
description: 'Google OAuth2 - add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
security: [
|
security: [
|
||||||
{
|
{
|
||||||
bearerAuth: []
|
bearerAuth: []
|
||||||
|
@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Google OAuth2 - callback-add-strategy',
|
description: 'Google OAuth2 - callback-add-strategy',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Google OAuth2 - callback',
|
description: 'Google OAuth2 - callback',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
|
|||||||
|
|
||||||
const getServiceSchema: FastifySchema = {
|
const getServiceSchema: FastifySchema = {
|
||||||
description: 'Google OAuth2 - signin',
|
description: 'Google OAuth2 - signin',
|
||||||
tags: ['users'] as string[],
|
tags: ['oauth2'] as string[],
|
||||||
querystring: querySchema,
|
querystring: querySchema,
|
||||||
response: {
|
response: {
|
||||||
200: Type.String(),
|
200: Type.String(),
|
||||||
|
@ -16,6 +16,7 @@ export const swaggerOptions: FastifyDynamicSwaggerOptions = {
|
|||||||
},
|
},
|
||||||
tags: [
|
tags: [
|
||||||
{ name: 'users' },
|
{ name: 'users' },
|
||||||
|
{ name: 'oauth2' },
|
||||||
{ name: 'guilds' },
|
{ name: 'guilds' },
|
||||||
{ name: 'channels' },
|
{ name: 'channels' },
|
||||||
{ name: 'messages' },
|
{ name: 'messages' },
|
||||||
|
Reference in New Issue
Block a user