Swagger/multiple fixes (#248)

This PR adds

- Swagger fixes for Teams endpoint
- Removes unintended remnant from custom input
- Swagger fixes for Payments endpoint
pull/9078/head
Syed Ali Shahbaz 2023-03-10 22:34:14 +05:30 committed by GitHub
parent 8fc4eedf5f
commit 4e24b6f7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 6 deletions

View File

@ -8,12 +8,6 @@ import {
schemaEventTypeCustomInputPublic,
} from "~/lib/validations/event-type-custom-input";
// id: z.number().int(),
// eventTypeId: z.number().int(),
// label: z.string(),
// type: z.nativeEnum(EventTypeCustomInputType),
// required: z.boolean(),
// placeholder: z.string(),
/**
* @swagger
* /custom-inputs:

View File

@ -14,6 +14,12 @@ import {
* get:
* summary: Find a payment
* parameters:
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* - in: path
* name: id
* schema:

View File

@ -19,6 +19,12 @@ import { checkPermissions } from "./_auth-middleware";
* type: integer
* required: true
* description: ID of the team to delete
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* tags:
* - teams
* responses:

View File

@ -19,6 +19,12 @@ import { schemaTeamReadPublic } from "~/lib/validations/team";
* type: integer
* required: true
* description: ID of the team to get
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* tags:
* - teams
* responses:

View File

@ -24,6 +24,26 @@ import { schemaTeamReadPublic, schemaTeamUpdateBodyParams } from "~/lib/validati
* type: integer
* required: true
* description: ID of the team to edit
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* requestBody:
* description: Create a new custom input for an event type
* required: true
* content:
* application/json:
* schema:
* type: object
* properties:
* name:
* type: string
* description: Name of the team
* slug:
* type: string
* description: A unique slug that works as path for the team public page
* tags:
* - teams
* responses:

View File

@ -11,6 +11,13 @@ import { schemaTeamsReadPublic } from "~/lib/validations/team";
* get:
* operationId: listTeams
* summary: Find all teams
* parameters:
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* tags:
* - teams
* responses:

View File

@ -14,6 +14,30 @@ import { schemaTeamBodyParams, schemaTeamReadPublic } from "~/lib/validations/te
* post:
* operationId: addTeam
* summary: Creates a new team
* parameters:
* - in: query
* name: apiKey
* required: true
* schema:
* type: string
* description: Your API key
* requestBody:
* description: Create a new custom input for an event type
* required: true
* content:
* application/json:
* schema:
* type: object
* required:
* - name
* - slug
* properties:
* name:
* type: string
* description: Name of the team
* slug:
* type: string
* description: A unique slug that works as path for the team public page
* tags:
* - teams
* responses: