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,
|
schemaEventTypeCustomInputPublic,
|
||||||
} from "~/lib/validations/event-type-custom-input";
|
} 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
|
* @swagger
|
||||||
* /custom-inputs:
|
* /custom-inputs:
|
||||||
|
|
|
@ -14,6 +14,12 @@ import {
|
||||||
* get:
|
* get:
|
||||||
* summary: Find a payment
|
* summary: Find a payment
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - in: query
|
||||||
|
* name: apiKey
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* description: Your API key
|
||||||
* - in: path
|
* - in: path
|
||||||
* name: id
|
* name: id
|
||||||
* schema:
|
* schema:
|
||||||
|
|
|
@ -19,6 +19,12 @@ import { checkPermissions } from "./_auth-middleware";
|
||||||
* type: integer
|
* type: integer
|
||||||
* required: true
|
* required: true
|
||||||
* description: ID of the team to delete
|
* description: ID of the team to delete
|
||||||
|
* - in: query
|
||||||
|
* name: apiKey
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* description: Your API key
|
||||||
* tags:
|
* tags:
|
||||||
* - teams
|
* - teams
|
||||||
* responses:
|
* responses:
|
||||||
|
|
|
@ -19,6 +19,12 @@ import { schemaTeamReadPublic } from "~/lib/validations/team";
|
||||||
* type: integer
|
* type: integer
|
||||||
* required: true
|
* required: true
|
||||||
* description: ID of the team to get
|
* description: ID of the team to get
|
||||||
|
* - in: query
|
||||||
|
* name: apiKey
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* description: Your API key
|
||||||
* tags:
|
* tags:
|
||||||
* - teams
|
* - teams
|
||||||
* responses:
|
* responses:
|
||||||
|
|
|
@ -24,6 +24,26 @@ import { schemaTeamReadPublic, schemaTeamUpdateBodyParams } from "~/lib/validati
|
||||||
* type: integer
|
* type: integer
|
||||||
* required: true
|
* required: true
|
||||||
* description: ID of the team to edit
|
* 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:
|
* tags:
|
||||||
* - teams
|
* - teams
|
||||||
* responses:
|
* responses:
|
||||||
|
|
|
@ -11,6 +11,13 @@ import { schemaTeamsReadPublic } from "~/lib/validations/team";
|
||||||
* get:
|
* get:
|
||||||
* operationId: listTeams
|
* operationId: listTeams
|
||||||
* summary: Find all teams
|
* summary: Find all teams
|
||||||
|
* parameters:
|
||||||
|
* - in: query
|
||||||
|
* name: apiKey
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* description: Your API key
|
||||||
* tags:
|
* tags:
|
||||||
* - teams
|
* - teams
|
||||||
* responses:
|
* responses:
|
||||||
|
|
|
@ -14,6 +14,30 @@ import { schemaTeamBodyParams, schemaTeamReadPublic } from "~/lib/validations/te
|
||||||
* post:
|
* post:
|
||||||
* operationId: addTeam
|
* operationId: addTeam
|
||||||
* summary: Creates a new team
|
* 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:
|
* tags:
|
||||||
* - teams
|
* - teams
|
||||||
* responses:
|
* responses:
|
||||||
|
|
Loading…
Reference in New Issue