Swagger/multiple fixes (#248)
This PR adds - Swagger fixes for Teams endpoint - Removes unintended remnant from custom input - Swagger fixes for Payments endpointpull/9078/head
parent
8fc4eedf5f
commit
4e24b6f7c0
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue