commit 63e22609c407e92fd205793c0e91b7bb9371493a Author: upstream Date: Sat Oct 17 03:33:16 2026 +0200 Upstream strapi/strapi state of the touched files before b5854586e1 diff --git a/packages/core/core/src/core-api/routes/validation/__tests__/content-type.test.ts b/packages/core/core/src/core-api/routes/validation/__tests__/content-type.test.ts new file mode 100644 index 0000000..a833d59 --- /dev/null +++ b/packages/core/core/src/core-api/routes/validation/__tests__/content-type.test.ts @@ -0,0 +1,40 @@ +import type { Core } from '@strapi/types'; + +import * as z from 'zod/v4'; + +import { CoreContentTypeRouteValidator } from '../content-type'; + +describe('CoreContentTypeRouteValidator query parameters', () => { + const strapi = { + getModel: jest.fn(() => ({ + attributes: { + title: { type: 'string' }, + rating: { type: 'integer' }, + }, + })), + } as unknown as Core.Strapi; + + const validator = new CoreContentTypeRouteValidator(strapi, 'api::article.article'); + + test('Zod enum-keyed records are exhaustive by default', () => { + const exhaustiveRecord = z.record(z.enum(['title', 'rating']), z.string()); + + expect(exhaustiveRecord.safeParse({ title: 'asc' }).success).toBe(false); + }); + + test('sort accepts sparse enum-keyed objects', () => { + const { sort } = validator.queryParams(['sort']); + + expect(sort?.parse({ title: 'asc' })).toEqual({ title: 'asc' }); + expect(sort?.safeParse({ unknown: 'asc' }).success).toBe(false); + }); + + test('filters accept sparse enum-keyed objects', () => { + const { filters } = validator.queryParams(['filters']); + + expect(filters?.parse({ title: { $eq: 'hello' } })).toEqual({ + title: { $eq: 'hello' }, + }); + expect(filters?.safeParse({ unknown: { $eq: 'hello' } }).success).toBe(false); + }); +}); diff --git a/packages/core/core/src/core-api/routes/validation/attributes.ts b/packages/core/core/src/core-api/routes/validation/attributes.ts new file mode 100644 index 0000000..ae08723 --- /dev/null +++ b/packages/core/core/src/core-api/routes/validation/attributes.ts @@ -0,0 +1,723 @@ +/** + * @file This module provides a set of functions to convert Strapi schema attributes into Zod schemas. + * It handles various attribute types, including primitive types, components, dynamic zones, media, and relations. + * The module also provides functions to create input schemas for these attributes, which are used for validation + * of incoming data. + */ + +import { type Core, type Schema, UID } from '@strapi/types'; + +import { + relations, + maybeRequired, + maybeReadonly, + maybeWithDefault, + maybeWithMinMax, + augmentSchema, +} from '@strapi/utils'; +import { z } from 'zod/v4'; + +import { BOOLEAN_LITERAL_VALUES } from './constants'; + +// eslint-disable-next-line import/no-cycle +import { CoreComponentRouteValidator } from './component'; +import { CoreContentTypeRouteValidator } from './content-type'; + +import { safeSchemaCreation } from './utils'; + +/** + * Converts a BigInteger attribute to a Zod schema. + * @param attribute - The BigInteger attribute object from the Strapi schema. + * @returns A Zod schema representing the BigInteger field. + */ +export const bigIntegerToSchema = (attribute: Schema.Attribute.BigInteger): z.Schema => { + const { writable, required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + (schema) => (min !== undefined ? schema.min(min as unknown as number) : schema), + (schema) => (max !== undefined ? schema.max(max as unknown as number) : schema), + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A biginteger field'); +}; + +/** + * Converts a blocks attribute to a Zod schema. + * @returns A Zod schema representing the blocks field. + */ +export const blocksToSchema = (): z.Schema => { + return z.array(z.any()).describe('A blocks field'); +}; + +/** + * Converts a boolean attribute to a Zod schema. + * @param attribute - The Boolean attribute object from the Strapi schema. + * @returns A Zod schema representing the boolean field. + */ +export const booleanToSchema = (attribute: Schema.Attribute.Boolean): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.boolean().nullable(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A boolean field'); +}; + +/** + * Converts a component attribute to a Zod schema. + * @param attribute - The Component attribute object from the Strapi schema. + * @returns A Zod schema representing the component field. + */ +export const componentToSchema = ( + strapi: Core.Strapi, + attribute: Schema.Attribute.Component +): z.Schema => { + const { writable, required, min, max, component, repeatable } = attribute; + + const componentSchema = safeSchemaCreation( + strapi, + component, + () => new CoreComponentRouteValidator(strapi, component).entry + ) as z.ZodType; + + const baseSchema = repeatable ? z.array(componentSchema) : componentSchema; + + const schema = augmentSchema(baseSchema, [ + (schema) => (min !== undefined && schema instanceof z.ZodArray ? schema.min(min) : schema), + (schema) => (max !== undefined && schema instanceof z.ZodArray ? schema.max(max) : schema), + maybeRequired(required), + maybeReadonly(writable), + ]); + + return schema.describe('A component field'); +}; + +/** + * Converts a date attribute to a Zod schema. + * @param attribute - The Date attribute object from the Strapi schema. + * @returns A Zod schema representing the date field. + */ +export const dateToSchema = (attribute: Schema.Attribute.Date): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A date field'); +}; + +/** + * Converts a datetime attribute to a Zod schema. + * @param attribute - The DateTime attribute object from the Strapi schema. + * @returns A Zod schema representing the datetime field. + */ +export const datetimeToSchema = (attribute: Schema.Attribute.DateTime): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A datetime field'); +}; + +/** + * Converts a decimal attribute to a Zod schema. + * @param attribute - The Decimal attribute object from the Strapi schema. + * @returns A Zod schema representing the decimal field. + */ +export const decimalToSchema = (attribute: Schema.Attribute.Decimal): z.Schema => { + const { writable, required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.number(), [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A decimal field'); +}; + +/** + * Converts a dynamic zone attribute to a Zod schema. + * @param attribute - The DynamicZone attribute object from the Strapi schema. + * @returns A Zod schema representing the dynamic zone field. + */ +export const dynamicZoneToSchema = (attribute: Schema.Attribute.DynamicZone): z.Schema => { + const { writable, required, min, max } = attribute; + + const baseSchema = z.array(z.any()); + + const schema = augmentSchema(baseSchema, [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeReadonly(writable), + ]); + + return schema.describe('A dynamic zone field'); +}; + +/** + * Converts an email attribute to a Zod schema. + * @param attribute - The Email attribute object from the Strapi schema. + * @returns A Zod schema representing the email field. + */ +export const emailToSchema = (attribute: Schema.Attribute.Email): z.Schema => { + const { writable, required, default: defaultValue, minLength, maxLength } = attribute; + + const baseSchema = z.email(); + + const schema = augmentSchema(baseSchema, [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('An email field'); +}; + +/** + * Converts an enumeration attribute to a Zod schema. + * @param attribute - The Enumeration attribute object from the Strapi schema. + * @returns A Zod schema representing the enumeration field. + */ +export const enumToSchema = (attribute: Schema.Attribute.Enumeration): z.Schema => { + const { writable, required, default: defaultValue, enum: enumValues } = attribute; + + const baseSchema = z.enum(enumValues); + + const schema = augmentSchema(baseSchema, [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('An enum field'); +}; + +/** + * Converts a float attribute to a Zod schema. + * @param attribute - The Float attribute object from the Strapi schema. + * @returns A Zod schema representing the float field. + */ +export const floatToSchema = (attribute: Schema.Attribute.Float): z.Schema => { + const { writable, required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.number(), [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeReadonly(writable), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A float field'); +}; + +/** + * Converts an integer attribute to a Zod schema. + * @param attribute - The Integer attribute object from the Strapi schema. + * @returns A Zod schema representing the integer field. + */ +export const integerToSchema = (attribute: Schema.Attribute.Integer): z.Schema => { + const { writable, required, min, max, default: defaultValue } = attribute; + + const baseSchema = z.number().int(); + + const schema = augmentSchema(baseSchema, [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeReadonly(writable), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('An integer field'); +}; + +/** + * Converts a JSON attribute to a Zod schema. + * @param attribute - The JSON attribute object from the Strapi schema. + * @returns A Zod schema representing the JSON field. + */ +export const jsonToSchema = (attribute: Schema.Attribute.JSON): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.any(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A JSON field'); +}; + +/** + * Converts a media attribute to a Zod schema. + * @param attribute - The Media attribute object from the Strapi schema. + * @returns A Zod schema representing the media field. + */ +export const mediaToSchema = ( + strapi: Core.Strapi, + attribute: Schema.Attribute.Media +): z.Schema => { + const { writable, required, multiple } = attribute; + + const uploadPlugin = strapi.plugin('upload'); + + // @ts-expect-error there is a mismatch between a raw module and a loader module + const fileSchema = uploadPlugin.contentTypes.file as Struct.ContentTypeSchema; + + const mediaSchema = safeSchemaCreation( + strapi, + fileSchema.uid, + () => new CoreContentTypeRouteValidator(strapi, fileSchema.uid).document + ) as z.ZodType; + + const baseSchema = multiple ? z.array(mediaSchema) : mediaSchema; + + const schema = augmentSchema(baseSchema, [maybeRequired(required), maybeReadonly(writable)]); + + return schema.describe('A media field'); +}; + +/** + * Converts a relation attribute to a Zod schema. + * @param attribute - The Relation attribute object from the Strapi schema. + * @returns A Zod schema representing the relational field. + */ +export const relationToSchema = ( + strapi: Core.Strapi, + attribute: Schema.Attribute.Relation +): z.Schema => { + if (!('target' in attribute)) { + return z.any(); + } + + const { writable, required, target } = attribute as Schema.Attribute.RelationWithTarget; + + const targetSchema = safeSchemaCreation( + strapi, + target, + () => new CoreContentTypeRouteValidator(strapi, target).document + ) as z.ZodType; + + const baseSchema = relations.isAnyToMany(attribute) ? z.array(targetSchema) : targetSchema; + + const schema = augmentSchema(baseSchema, [maybeRequired(required), maybeReadonly(writable)]); + + return schema.describe('A relational field'); +}; + +/** + * Converts a string, text, rich text, or password attribute to a Zod schema. + * @param attribute - The String, Text, RichText, or Password attribute object from the Strapi schema. + * @returns A Zod schema representing the field. + */ +export const stringToSchema = ( + attribute: + | Schema.Attribute.String + | Schema.Attribute.Text + | Schema.Attribute.RichText + | Schema.Attribute.Password +): z.Schema => { + const { writable, required, default: defaultValue, minLength, maxLength } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe(`A ${attribute.type} field`); +}; + +/** + * Converts a time attribute to a Zod schema. + * @param attribute - The Time attribute object from the Strapi schema. + * @returns A Zod schema representing the time field. + */ +export const timeToSchema = (attribute: Schema.Attribute.Time): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A time field'); +}; + +/** + * Converts a timestamp attribute to a Zod schema. + * @param attribute - The Timestamp attribute object from the Strapi schema. + * @returns A Zod schema representing the timestamp field. + */ +export const timestampToSchema = (attribute: Schema.Attribute.Timestamp): z.Schema => { + const { writable, required, default: defaultValue } = attribute; + + const baseSchema = z.union([z.string(), z.number()]); + + const schema = augmentSchema(baseSchema, [ + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A timestamp field'); +}; + +/** + * Converts a UID attribute to a Zod schema. + * @param attribute - The UID attribute object from the Strapi schema. + * @returns A Zod schema representing the UID field. + */ +export const uidToSchema = (attribute: Schema.Attribute.UID): z.Schema => { + const { writable, required, default: defaultValue, minLength, maxLength } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + maybeReadonly(writable), + ]); + + return schema.describe('A UID field'); +}; + +/** + * Converts a BigInteger attribute to a Zod schema for input validation. + * @param attribute - The BigInteger attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the BigInteger field. + */ +export const bigIntegerToInputSchema = (attribute: Schema.Attribute.BigInteger) => { + const { required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + (schema) => (min !== undefined ? schema.min(min as unknown as number) : schema), + (schema) => (max !== undefined ? schema.max(max as unknown as number) : schema), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A biginteger field'); +}; + +/** + * Converts a blocks attribute to a Zod schema for input validation. + * @returns A Zod schema for input validation of the blocks field. + */ +export const blocksToInputSchema = () => { + // TODO: better support blocks data structure + return z.array(z.any()).describe('A blocks field'); +}; + +/** + * Converts a boolean attribute to a Zod schema for input validation. + * @param attribute - The Boolean attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the boolean field. + */ +export const booleanToInputSchema = (attribute: Schema.Attribute.Boolean) => { + const { required, default: defaultValue } = attribute; + + const baseSchema = z.enum(BOOLEAN_LITERAL_VALUES).nullable(); + + const schema = augmentSchema(baseSchema, [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A boolean field'); +}; + +/** + * Converts a component attribute to a Zod schema for input validation. + * @param attribute - The Component attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the component field. + */ +export const componentToInputSchema = ( + attribute: Schema.Attribute.Component +) => { + const { required, repeatable, min, max } = attribute; + + const baseSchema = repeatable ? z.array(z.any()) : z.any(); + + const schema = augmentSchema(baseSchema, [ + (schema) => (min !== undefined && schema instanceof z.ZodArray ? schema.min(min) : schema), + (schema) => (max !== undefined && schema instanceof z.ZodArray ? schema.max(max) : schema), + maybeRequired(required), + ]); + + return schema.describe('A component field'); +}; + +/** + * Converts a date attribute to a Zod schema for input validation. + * @param attribute - The Date attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the date field. + */ +export const dateToInputSchema = (attribute: Schema.Attribute.Date) => { + const { required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A date field'); +}; + +/** + * Converts a datetime attribute to a Zod schema for input validation. + * @param attribute - The DateTime attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the datetime field. + */ +export const datetimeToInputSchema = (attribute: Schema.Attribute.DateTime) => { + const { required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A datetime field'); +}; + +/** + * Converts a decimal attribute to a Zod schema for input validation. + * @param attribute - The Decimal attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the decimal field. + */ +export const decimalToInputSchema = (attribute: Schema.Attribute.Decimal) => { + const { required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.number(), [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A decimal field'); +}; + +/** + * Converts a dynamic zone attribute to a Zod schema for input validation. + * @param attribute - The DynamicZone attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the dynamic zone field. + */ +export const dynamicZoneToInputSchema = (attribute: Schema.Attribute.DynamicZone) => { + const { required, min, max } = attribute; + + const baseSchema = z.array(z.any()); + + const schema = augmentSchema(baseSchema, [maybeWithMinMax(min, max), maybeRequired(required)]); + + return schema.describe('A dynamic zone field'); +}; + +/** + * Converts an email attribute to a Zod schema for input validation. + * @param attribute - The Email attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the email field. + */ +export const emailToInputSchema = (attribute: Schema.Attribute.Email) => { + const { required, default: defaultValue, minLength, maxLength } = attribute; + + const baseSchema = z.email(); + + const schema = augmentSchema(baseSchema, [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('An email field'); +}; + +/** + * Converts an enumeration attribute to a Zod schema for input validation. + * @param attribute - The Enumeration attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the enumeration field. + */ +export const enumerationToInputSchema = (attribute: Schema.Attribute.Enumeration) => { + const { required, default: defaultValue, enum: enumValues } = attribute; + + const baseSchema = z.enum(enumValues); + + const schema = augmentSchema(baseSchema, [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('An enum field'); +}; + +/** + * Converts a float attribute to a Zod schema for input validation. + * @param attribute - The Float attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the float field. + */ +export const floatToInputSchema = (attribute: Schema.Attribute.Float) => { + const { required, min, max, default: defaultValue } = attribute; + + const schema = augmentSchema(z.number(), [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A float field'); +}; + +/** + * Converts an integer attribute to a Zod schema for input validation. + * @param attribute - The Integer attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the integer field. + */ +export const integerToInputSchema = (attribute: Schema.Attribute.Integer) => { + const { required, min, max, default: defaultValue } = attribute; + + const baseSchema = z.number().int(); + + const schema = augmentSchema(baseSchema, [ + maybeWithMinMax(min, max), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A float field'); +}; + +/** + * Converts a JSON attribute to a Zod schema for input validation. + * @param attribute - The JSON attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the JSON field. + */ +export const jsonToInputSchema = (attribute: Schema.Attribute.JSON) => { + const { required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.any(), [maybeRequired(required), maybeWithDefault(defaultValue)]); + + return schema.describe('A JSON field'); +}; + +/** + * Converts a media attribute to a Zod schema for input validation. + * @param attribute - The Media attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the media field. + */ +export const mediaToInputSchema = ( + attribute: Schema.Attribute.Media +) => { + const { required, multiple } = attribute; + + const baseSchema = multiple ? z.array(z.any()) : z.any(); + + const schema = augmentSchema(baseSchema, [maybeRequired(required)]); + + return schema.describe('A media field'); +}; + +/** + * Converts a relation attribute to a Zod schema for input validation. + * @param attribute - The Relation attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the relational field. + */ +export const relationToInputSchema = (attribute: Schema.Attribute.Relation) => { + const { required } = attribute; + + const isToMany = relations.isAnyToMany(attribute); + const uuid = z.string().uuid(); + const baseSchema = isToMany ? z.array(uuid) : uuid; + + const schema = augmentSchema(baseSchema, [maybeRequired(required)]); + + return schema.describe('A relational field'); +}; + +/** + * Converts a string, text, rich text, or password attribute to a Zod schema for input validation. + * @param attribute - The String, Text, RichText, or Password attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the field. + */ +export const textToInputSchema = ( + attribute: + | Schema.Attribute.String + | Schema.Attribute.Text + | Schema.Attribute.RichText + | Schema.Attribute.Password +) => { + const { required, default: defaultValue, minLength, maxLength } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe(`A ${attribute.type} field`); +}; + +/** + * Converts a time attribute to a Zod schema for input validation. + * @param attribute - The Time attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the time field. + */ +export const timeToInputSchema = (attribute: Schema.Attribute.Time) => { + const { required, default: defaultValue } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A time field'); +}; + +/** + * Converts a timestamp attribute to a Zod schema for input validation. + * @param attribute - The Timestamp attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the timestamp field. + */ +export const timestampToInputSchema = (attribute: Schema.Attribute.Timestamp) => { + const { required, default: defaultValue } = attribute; + + const baseSchema = z.union([z.string(), z.number()]); + + const schema = augmentSchema(baseSchema, [ + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A timestamp field'); +}; + +/** + * Converts a UID attribute to a Zod schema for input validation. + * @param attribute - The UID attribute object from the Strapi schema. + * @returns A Zod schema for input validation of the UID field. + */ +export const uidToInputSchema = (attribute: Schema.Attribute.UID) => { + const { required, default: defaultValue, minLength, maxLength } = attribute; + + const schema = augmentSchema(z.string(), [ + maybeWithMinMax(minLength, maxLength), + maybeRequired(required), + maybeWithDefault(defaultValue), + ]); + + return schema.describe('A UID field'); +}; diff --git a/packages/core/core/src/core-api/routes/validation/mappers.ts b/packages/core/core/src/core-api/routes/validation/mappers.ts new file mode 100644 index 0000000..33b74fa --- /dev/null +++ b/packages/core/core/src/core-api/routes/validation/mappers.ts @@ -0,0 +1,271 @@ +/** + * @fileoverview + * This file contains functions responsible for mapping Strapi attribute definitions to Zod schemas. + */ + +import type { Core, Schema } from '@strapi/types'; +import * as z from 'zod/v4'; + +// eslint-disable-next-line import/no-cycle +import * as attributes from './attributes'; + +const isCustomFieldAttribute = ( + attribute: unknown +): attribute is { type: 'customField'; customField: string } => { + return ( + !!attribute && + typeof attribute === 'object' && + (attribute as any).type === 'customField' && + typeof (attribute as any).customField === 'string' + ); +}; + +/** + * Creates a Zod schema for a collection of Strapi attributes. + * + * @param attributes - An array of tuples, where each tuple contains the attribute name and its schema definition. + * @returns A Zod object schema representing the combined attributes. + * + * @example + * ```typescript + * const myAttributes = [ + * ['title', { type: 'string', required: true }], + * ['description', { type: 'text' }], + * ]; + * const schema = createAttributesSchema(myAttributes); + * // schema will be a Zod object with 'title' and 'description' fields, + * // each mapped to their respective Zod schemas based on their Strapi attribute types. + * ``` + */ +export const createAttributesSchema = ( + strapi: Core.Strapi, + attributes: [name: string, attribute: Schema.Attribute.AnyAttribute][] +) => { + return attributes.reduce((acc, [name, attribute]) => { + return acc.extend({ + get [name]() { + return mapAttributeToSchema(strapi, attribute); + }, + }); + }, z.object({})); +}; + +/** + * Creates a Zod input schema for a collection of Strapi attributes. + * This is typically used for validating incoming data (e.g., from API requests). + * + * @param attributes - An array of tuples, where each tuple contains the attribute name and its schema definition. + * @returns A Zod object schema representing the combined input attributes. + * + * @example + * ```typescript + * const myInputAttributes = [ + * ['email', { type: 'email', required: true }], + * ['description', { type: 'text', minLength: 8 }], + * ]; + * const inputSchema = createAttributesInputSchema(myInputAttributes); + * // inputSchema will be a Zod object with 'email' and 'description' fields, + * // mapped to Zod schemas suitable for input validation. + * ``` + */ +export const createAttributesInputSchema = ( + strapi: Core.Strapi, + attributes: [name: string, attribute: Schema.Attribute.AnyAttribute][] +) => { + return attributes.reduce((acc, [name, attribute]) => { + return acc.extend({ + get [name]() { + return mapAttributeToInputSchema(strapi, attribute); + }, + }); + }, z.object({})); +}; + +/** + * Maps a Strapi attribute definition to a corresponding Zod validation schema. + * + * This function handles every Strapi attribute types and converts them into + * appropriate Zod validation schemas. + * + * @param attribute - The Strapi attribute configuration object. + * @returns A Zod schema that corresponds to the input attribute's type. + * @throws {Error} Throws an error if an unsupported attribute type is provided. + * + * @example + * ```typescript + * const stringAttribute = { type: 'string', minLength: 3 }; + * const stringSchema = mapAttributeToSchema(stringAttribute); // Returns a Zod string schema with minLength. + * + * const booleanAttribute = { type: 'boolean', default: false }; + * const booleanSchema = mapAttributeToSchema(booleanAttribute); // Returns a Zod boolean schema with a default. + * ``` + */ +export const mapAttributeToSchema = ( + strapi: Core.Strapi, + attribute: Schema.Attribute.AnyAttribute +): z.ZodTypeAny => { + switch (attribute.type) { + case 'biginteger': + return attributes.bigIntegerToSchema(attribute); + case 'blocks': + return attributes.blocksToSchema(); + case 'boolean': + return attributes.booleanToSchema(attribute); + case 'component': + return attributes.componentToSchema(strapi, attribute); + case 'date': + return attributes.dateToSchema(attribute); + case 'datetime': + return attributes.datetimeToSchema(attribute); + case 'decimal': + return attributes.decimalToSchema(attribute); + case 'dynamiczone': + return attributes.dynamicZoneToSchema(attribute); + case 'email': + return attributes.emailToSchema(attribute); + case 'enumeration': + return attributes.enumToSchema(attribute); + case 'float': + return attributes.floatToSchema(attribute); + case 'integer': + return attributes.integerToSchema(attribute); + case 'json': + return attributes.jsonToSchema(attribute); + case 'media': + return attributes.mediaToSchema(strapi, attribute); + case 'relation': + return attributes.relationToSchema(strapi, attribute); + case 'password': + case 'text': + case 'richtext': + case 'string': + return attributes.stringToSchema(attribute); + case 'time': + return attributes.timeToSchema(attribute); + case 'timestamp': + return attributes.timestampToSchema(attribute); + case 'uid': + return attributes.uidToSchema(attribute); + default: { + if (isCustomFieldAttribute(attribute)) { + const attrCF = attribute as { type: 'customField'; customField: string }; + const customField = strapi.get('custom-fields').get(attrCF.customField); + if (!customField) { + throw new Error(`Custom field '${attrCF.customField}' not found`); + } + + // Re-dispatch with the resolved underlying Strapi kind + return mapAttributeToSchema(strapi, { ...attrCF, type: customField.type }); + } + + const { type } = attribute as Schema.Attribute.AnyAttribute; + + throw new Error(`Unsupported attribute type: ${type}`); + } + } +}; + +/** + * Maps a Strapi attribute definition to a corresponding Zod input validation schema. + * + * This function handles every Strapi attribute types and converts them into + * appropriate Zod validation schemas with their respective constraints. + * + * @param attribute - The Strapi attribute configuration object. Contains type information + * and validation rules for the attribute. + * + * @returns A Zod schema that corresponds to the input attribute's type and validation rules + * + * @example + * ```typescript + * // String attribute with constraints + * const stringAttribute = { + * type: 'string', + * minLength: 3, + * maxLength: 50, + * required: true + * }; + * const stringSchema = mapAttributeToInputSchema(stringAttribute); + * + * // Enumeration attribute + * const enumAttribute = { + * type: 'enumeration', + * enum: ['draft', 'published', 'archived'] + * }; + * const enumSchema = mapAttributeToInputSchema(enumAttribute); + * + * // Media attribute with multiple files + * const mediaAttribute = { + * type: 'media', + * multiple: true + * }; + * const mediaSchema = mapAttributeToInputSchema(mediaAttribute); + * ``` + * + * @throws {Error} Throws an error if an unsupported attribute type is provided + * + */ +export const mapAttributeToInputSchema = ( + strapi: Core.Strapi, + attribute: Schema.Attribute.AnyAttribute +): z.ZodTypeAny => { + switch (attribute.type) { + case 'biginteger': + return attributes.bigIntegerToInputSchema(attribute); + case 'blocks': + return attributes.blocksToInputSchema(); + case 'boolean': + return attributes.booleanToInputSchema(attribute); + case 'component': + return attributes.componentToInputSchema(attribute); + case 'date': + return attributes.dateToInputSchema(attribute); + case 'datetime': + return attributes.datetimeToInputSchema(attribute); + case 'decimal': + return attributes.decimalToInputSchema(attribute); + case 'dynamiczone': + return attributes.dynamicZoneToInputSchema(attribute); + case 'email': + return attributes.emailToInputSchema(attribute); + case 'enumeration': + return attributes.enumerationToInputSchema(attribute); + case 'float': + return attributes.floatToInputSchema(attribute); + case 'integer': + return attributes.integerToInputSchema(attribute); + case 'json': + return attributes.jsonToInputSchema(attribute); + case 'media': + return attributes.mediaToInputSchema(attribute); + case 'relation': + return attributes.relationToInputSchema(attribute); + case 'password': + case 'text': + case 'richtext': + case 'string': + return attributes.textToInputSchema(attribute); + case 'time': + return attributes.timeToInputSchema(attribute); + case 'timestamp': + return attributes.timestampToInputSchema(attribute); + case 'uid': + return attributes.uidToInputSchema(attribute); + default: { + if (isCustomFieldAttribute(attribute)) { + const attrCF = attribute as { type: 'customField'; customField: string }; + const customField = strapi.get('custom-fields').get(attrCF.customField); + if (!customField) { + throw new Error(`Custom field '${attrCF.customField}' not found`); + } + + // Re-dispatch with the resolved underlying Strapi kind + return mapAttributeToInputSchema(strapi, { ...attrCF, type: customField.type }); + } + + const { type } = attribute as Schema.Attribute.AnyAttribute; + + throw new Error(`Unsupported attribute type: ${type}`); + } + } +}; diff --git a/tests/cli/tests/strapi/strapi/__snapshots__/openapi-generate.test.cli.ts.snap b/tests/cli/tests/strapi/strapi/__snapshots__/openapi-generate.test.cli.ts.snap new file mode 100644 index 0000000..aa8a2f2 --- /dev/null +++ b/tests/cli/tests/strapi/strapi/__snapshots__/openapi-generate.test.cli.ts.snap @@ -0,0 +1,31146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`openapi:generate should generate a spec describing i18n and users-permissions content API routes 1`] = ` +{ + "components": { + "schemas": { + "AdminUserDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "firstname": { + "description": "A string field", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "lastname": { + "description": "A string field", + "type": "string", + }, + "preferedLanguage": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "username": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ApiArticleArticleDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + "ApiAuthorAuthorDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ApiCategoryCategoryDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ApiComplexComplexDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + "ApiCountryCountryDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + "ApiHomepageHomepageDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "admin_user": { + "$ref": "#/components/schemas/AdminUserDocument", + "description": "A relational field", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiHomepageHomepageDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + "ApiProductProductDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + "ApiRelationLabRelationLabDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + "ApiRelationTargetRelationTargetDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + "ApiShopShopDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "content": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiShopShopDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + "content", + ], + "type": "object", + }, + "ApiSingleTypeLocalizedSingleTypeLocalizedDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiSingleTypeLocalizedSingleTypeLocalizedDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ApiTeamTeamDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ApiUniqueUniqueDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "ComponentCategoryComponentEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first comp value", + "second comp value", + "third comp value", + ], + "type": "string", + }, + "json": { + "description": "A JSON field", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "markdown": { + "description": "A richtext field", + "type": "string", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "password": { + "description": "A password field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "user": { + "$ref": "#/components/schemas/AdminUserDocument", + "description": "A relational field", + }, + }, + "required": [ + "blocks", + ], + "type": "object", + }, + "ComponentCategoryComponentTwoEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "nested_component": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + }, + "type": "array", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + "MetaSeoEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "description": { + "description": "A text field", + "type": "string", + }, + "image": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "indexable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": false, + "description": "A boolean field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "indexable", + ], + "type": "object", + }, + "PluginUploadFileDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "alternativeText": { + "description": "A text field", + "type": "string", + }, + "caption": { + "description": "A text field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "description": "A string field", + "type": "string", + }, + "focalPoint": { + "description": "A JSON field", + }, + "formats": { + "description": "A JSON field", + }, + "hash": { + "description": "A string field", + "type": "string", + }, + "height": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "mime": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "previewUrl": { + "description": "A text field", + "type": "string", + }, + "provider": { + "description": "A string field", + "type": "string", + }, + "provider_metadata": { + "description": "A JSON field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "related": {}, + "size": { + "description": "A decimal field", + "type": "number", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "url": { + "description": "A text field", + "type": "string", + }, + "width": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "documentId", + "id", + "name", + "hash", + "mime", + "size", + "url", + "provider", + "publishedAt", + "related", + ], + "type": "object", + }, + "PluginUsersPermissionsPermissionDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "action": { + "description": "A string field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "role": { + "$ref": "#/components/schemas/PluginUsersPermissionsRoleDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "action", + "publishedAt", + ], + "type": "object", + }, + "PluginUsersPermissionsRoleDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A string field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "permissions": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/PluginUsersPermissionsPermissionDocument", + }, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "type": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "users": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + "PluginUsersPermissionsUserDocument": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": false, + "description": "A boolean field", + }, + "confirmed": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": false, + "description": "A boolean field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "provider": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "role": { + "$ref": "#/components/schemas/PluginUsersPermissionsRoleDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "username": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "username", + "email", + "confirmed", + "blocked", + "publishedAt", + ], + "type": "object", + }, + "ProductVariationsEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "description": { + "description": "A text field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "price": { + "description": "A decimal field", + "type": "number", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "type": "object", + }, + "UniqueAllEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "ComponentDateDate": { + "description": "A date field", + "type": "string", + }, + "ComponentDateDateTime": { + "description": "A datetime field", + "type": "string", + }, + "ComponentDateTime": { + "description": "A time field", + "type": "string", + }, + "ComponentEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "ComponentNumberBigInteger": { + "description": "A biginteger field", + "type": "string", + }, + "ComponentNumberDecimal": { + "description": "A decimal field", + "type": "number", + }, + "ComponentNumberFloat": { + "description": "A float field", + "type": "number", + }, + "ComponentNumberInteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "ComponentTextLong": { + "description": "A text field", + "type": "string", + }, + "ComponentTextShort": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + "UniqueTopLevelEntry": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "nestedUnique": { + "$ref": "#/components/schemas/UniqueAllEntry", + "description": "A component field", + }, + }, + "type": "object", + }, + }, + "securitySchemes": { + "bearerAuth": { + "bearerFormat": "JWT", + "description": "JWT Bearer token for authentication", + "scheme": "bearer", + "type": "http", + }, + }, + }, + "info": { + "description": "API documentation for test-app-0 v0.1.0", + "title": "test-app-0", + "version": "0.1.0", + }, + "openapi": "3.1.0", + "paths": { + "/articles": { + "get": { + "operationId": "article/get/articles", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "authors", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "authors", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "article", + ], + }, + "post": { + "operationId": "article/post/articles", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "authors", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "authors", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "article", + ], + }, + }, + "/articles/{id}": { + "delete": { + "operationId": "article/delete/articles_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "authors", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "authors", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "article", + ], + }, + "get": { + "operationId": "article/get/articles_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "authors", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "authors", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "article", + ], + }, + "put": { + "operationId": "article/put/articles_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "slug", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "authors", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "authors", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "authors": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiAuthorAuthorDocument", + }, + "type": "array", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "article", + ], + }, + }, + "/auth/change-password": { + "post": { + "operationId": "users-permissions/post/auth_change_password", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "currentPassword": { + "type": "string", + }, + "password": { + "type": "string", + }, + "passwordConfirmation": { + "type": "string", + }, + }, + "required": [ + "currentPassword", + "password", + "passwordConfirmation", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "jwt": { + "type": "string", + }, + "refreshToken": { + "type": "string", + }, + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "jwt", + "user", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/email-confirmation": { + "get": { + "operationId": "users-permissions/get/auth_email_confirmation", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/forgot-password": { + "post": { + "operationId": "users-permissions/post/auth_forgot_password", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + }, + "required": [ + "email", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "ok": { + "type": "boolean", + }, + }, + "required": [ + "ok", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/local": { + "post": { + "operationId": "users-permissions/post/auth_local", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "identifier": { + "type": "string", + }, + "password": { + "type": "string", + }, + }, + "required": [ + "identifier", + "password", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "jwt": { + "type": "string", + }, + "refreshToken": { + "type": "string", + }, + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "jwt", + "user", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/local/register": { + "post": { + "operationId": "users-permissions/post/auth_local_register", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "password": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "username", + "email", + "password", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "jwt": { + "type": "string", + }, + "refreshToken": { + "type": "string", + }, + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "jwt", + "user", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "user", + ], + "type": "object", + }, + ], + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/logout": { + "post": { + "operationId": "users-permissions/post/auth_logout", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/refresh": { + "post": { + "operationId": "users-permissions/post/auth_refresh", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/reset-password": { + "post": { + "operationId": "users-permissions/post/auth_reset_password", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "code": { + "type": "string", + }, + "password": { + "type": "string", + }, + "passwordConfirmation": { + "type": "string", + }, + }, + "required": [ + "code", + "password", + "passwordConfirmation", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "jwt": { + "type": "string", + }, + "refreshToken": { + "type": "string", + }, + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "jwt", + "user", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/send-email-confirmation": { + "post": { + "operationId": "users-permissions/post/auth_send_email_confirmation", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + }, + "required": [ + "email", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "type": "string", + }, + "sent": { + "type": "boolean", + }, + }, + "required": [ + "email", + "sent", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/sessions": { + "get": { + "operationId": "users-permissions/get/auth_sessions", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/sessions/{sessionId}": { + "delete": { + "operationId": "users-permissions/delete/auth_sessions_by_sessionId", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/auth/{provider}/callback": { + "get": { + "operationId": "users-permissions/get/auth_by_provider_callback", + "parameters": [ + { + "in": "path", + "name": "provider", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "jwt": { + "type": "string", + }, + "refreshToken": { + "type": "string", + }, + "user": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "jwt", + "user", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/authors": { + "get": { + "operationId": "author/get/authors", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "profile", + "articles", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "profile", + "articles", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "author", + ], + }, + "post": { + "operationId": "author/post/authors", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "profile", + "articles", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "profile", + "articles", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "author", + ], + }, + }, + "/authors/{id}": { + "delete": { + "operationId": "author/delete/authors_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "profile", + "articles", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "profile", + "articles", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "author", + ], + }, + "get": { + "operationId": "author/get/authors_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "profile", + "articles", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "profile", + "articles", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "author", + ], + }, + "put": { + "operationId": "author/put/authors_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "profile", + "articles", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "profile", + "articles", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "articles": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "profile": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "author", + ], + }, + }, + "/categories": { + "get": { + "operationId": "category/get/categories", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complexes", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complexes", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "category", + ], + }, + "post": { + "operationId": "category/post/categories", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complexes", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complexes", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "category", + ], + }, + }, + "/categories/{id}": { + "delete": { + "operationId": "category/delete/categories_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complexes", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complexes", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "category", + ], + }, + "get": { + "operationId": "category/get/categories_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complexes", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complexes", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "category", + ], + }, + "put": { + "operationId": "category/put/categories_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complexes", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complexes", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complexes": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "category", + ], + }, + }, + "/complexes": { + "get": { + "operationId": "complex/get/complexes", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "complex", + ], + }, + "post": { + "operationId": "complex/post/complexes", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "component_single": { + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": {}, + "type": "array", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": {}, + "type": "array", + }, + "mediasingle": { + "description": "A media field", + }, + "morph2many": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "morph_to_many": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "password": { + "description": "A password field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + "required": [ + "blocks", + "required", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "complex", + ], + }, + }, + "/complexes/{id}": { + "delete": { + "operationId": "complex/delete/complexes_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "complex", + ], + }, + "get": { + "operationId": "complex/get/complexes_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "complex", + ], + }, + "put": { + "operationId": "complex/put/complexes_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "longtext", + "boolean", + "blocks", + "json", + "numberinteger", + "numberbiginteger", + "numberdecimal", + "numberfloat", + "email", + "date", + "datetime", + "time", + "password", + "enum", + "uidunattached", + "uidshorttext", + "uidlongtext", + "nonlocal_text", + "required", + "unique", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "morph2many", + "mediamultiple", + "mediasingle", + "component_single", + "up_user_o2o", + "admin_users_o2m", + "categories_m2m", + "morph_to_many", + "component_two", + "dynamic_zone", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "component_single": { + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": {}, + "type": "array", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": {}, + "type": "array", + }, + "mediasingle": { + "description": "A media field", + }, + "morph2many": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "morph_to_many": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "password": { + "description": "A password field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_users_o2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/AdminUserDocument", + }, + "type": "array", + }, + "blocks": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "boolean": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "categories_m2m": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCategoryCategoryDocument", + }, + "type": "array", + }, + "component_single": { + "$ref": "#/components/schemas/ComponentCategoryComponentEntry", + "description": "A component field", + }, + "component_two": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ComponentCategoryComponentTwoEntry", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "date": { + "description": "A date field", + "type": "string", + }, + "datetime": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "dynamic_zone": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "email": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "enum": { + "description": "An enum field", + "enum": [ + "first value", + "second value", + "third value", + "fourth value", + ], + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "json": { + "description": "A JSON field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "readOnly": true, + "type": "array", + }, + "longtext": { + "description": "A text field", + "type": "string", + }, + "mediamultiple": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "mediasingle": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + "description": "A media field", + }, + "morph2many": {}, + "morph_to_many": {}, + "nonlocal_text": { + "description": "A string field", + "type": "string", + }, + "numberbiginteger": { + "description": "A biginteger field", + "type": "string", + }, + "numberdecimal": { + "description": "A decimal field", + "type": "number", + }, + "numberfloat": { + "description": "A float field", + "type": "number", + }, + "numberinteger": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "required": { + "description": "A string field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "time": { + "description": "A time field", + "type": "string", + }, + "uidlongtext": { + "description": "A UID field", + "type": "string", + }, + "uidshorttext": { + "description": "A UID field", + "type": "string", + }, + "uidunattached": { + "description": "A UID field", + "type": "string", + }, + "unique": { + "description": "A string field", + "type": "string", + }, + "up_user_o2o": { + "$ref": "#/components/schemas/PluginUsersPermissionsUserDocument", + "description": "A relational field", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "blocks", + "required", + "publishedAt", + "morph2many", + "morph_to_many", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "complex", + ], + }, + }, + "/conditions": { + "get": { + "operationId": "condition/get/conditions", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "country", + "Author", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "country", + "Author", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "country": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + "description": "A relational field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "isActive": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "condition", + ], + }, + "post": { + "operationId": "condition/post/conditions", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "country", + "Author", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "country", + "Author", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "country": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "isActive": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + }, + "required": [ + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "country": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + "description": "A relational field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "isActive": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "condition", + ], + }, + }, + "/conditions/{id}": { + "delete": { + "operationId": "condition/delete/conditions_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "country", + "Author", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "country", + "Author", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "country": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + "description": "A relational field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "isActive": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "condition", + ], + }, + "get": { + "operationId": "condition/get/conditions_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "country", + "Author", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "country", + "Author", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "country": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + "description": "A relational field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "isActive": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "condition", + ], + }, + "put": { + "operationId": "condition/put/conditions_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "isActive", + "roles", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "country", + "Author", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "country", + "Author", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "country": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "isActive": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "Author": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiArticleArticleDocument", + }, + "type": "array", + }, + "country": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + "description": "A relational field", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "isActive": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "roles": { + "description": "An enum field", + "enum": [ + "tank", + "dps", + "heal", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "condition", + ], + }, + }, + "/config/permissions/prune": { + "post": { + "operationId": "config/post/config_permissions_prune", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "config", + ], + }, + }, + "/config/permissions/resync-super-admin": { + "post": { + "operationId": "config/post/config_permissions_resync_super_admin", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "config", + ], + }, + }, + "/config/ratelimit/enable": { + "post": { + "operationId": "config/post/config_ratelimit_enable", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "config", + ], + }, + }, + "/config/reset-admin-fixture": { + "post": { + "operationId": "config/post/config_reset_admin_fixture", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "config", + ], + }, + }, + "/config/resettransfertoken": { + "post": { + "operationId": "config/post/config_resettransfertoken", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "config", + ], + }, + }, + "/connect/(.*)": { + "get": { + "operationId": "users-permissions/get/connect_____", + "parameters": [], + "responses": { + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/content-type-builder/components": { + "get": { + "operationId": "content-type-builder/get/content_type_builder_components", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "apiId": { + "type": "string", + }, + "category": { + "type": "string", + }, + "schema": { + "additionalProperties": false, + "properties": { + "attributes": { + "additionalProperties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "allowedTypes": { + "items": { + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "multiple": { + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "media", + "type": "string", + }, + }, + "required": [ + "type", + "multiple", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "autoPopulate": { + "type": "boolean", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "inversedBy": { + "type": "string", + }, + "mappedBy": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "relation": { + "type": "string", + }, + "target": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + "targetAttribute": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "type": { + "const": "relation", + "type": "string", + }, + }, + "required": [ + "type", + "relation", + "target", + "targetAttribute", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "component": { + "type": "string", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "repeatable": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "component", + "type": "string", + }, + }, + "required": [ + "type", + "component", + "repeatable", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "components": { + "items": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "dynamiczone", + "type": "string", + }, + }, + "required": [ + "type", + "components", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "const": false, + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "targetField": { + "type": "string", + }, + "type": { + "const": "uid", + "type": "string", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "type": "boolean", + }, + "default": {}, + "enum": { + "items": { + "type": "string", + }, + "type": "array", + }, + "max": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "maxLength": { + "type": "number", + }, + "min": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "minLength": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "regex": { + "type": "string", + }, + "required": { + "type": "boolean", + }, + "type": { + "type": "string", + }, + "unique": { + "type": "boolean", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + ], + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "collectionName": { + "type": "string", + }, + "connection": { + "type": "string", + }, + "description": { + "type": "string", + }, + "displayName": { + "type": "string", + }, + "icon": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "displayName", + "description", + "attributes", + ], + "type": "object", + }, + "uid": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + }, + "required": [ + "uid", + "category", + "apiId", + "schema", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "content-type-builder", + ], + }, + }, + "/content-type-builder/components/{uid}": { + "get": { + "operationId": "content-type-builder/get/content_type_builder_components_by_uid", + "parameters": [ + { + "in": "path", + "name": "uid", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "apiId": { + "type": "string", + }, + "category": { + "type": "string", + }, + "schema": { + "additionalProperties": false, + "properties": { + "attributes": { + "additionalProperties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "allowedTypes": { + "items": { + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "multiple": { + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "media", + "type": "string", + }, + }, + "required": [ + "type", + "multiple", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "autoPopulate": { + "type": "boolean", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "inversedBy": { + "type": "string", + }, + "mappedBy": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "relation": { + "type": "string", + }, + "target": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + "targetAttribute": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "type": { + "const": "relation", + "type": "string", + }, + }, + "required": [ + "type", + "relation", + "target", + "targetAttribute", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "component": { + "type": "string", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "repeatable": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "component", + "type": "string", + }, + }, + "required": [ + "type", + "component", + "repeatable", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "components": { + "items": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "dynamiczone", + "type": "string", + }, + }, + "required": [ + "type", + "components", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "const": false, + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "targetField": { + "type": "string", + }, + "type": { + "const": "uid", + "type": "string", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "type": "boolean", + }, + "default": {}, + "enum": { + "items": { + "type": "string", + }, + "type": "array", + }, + "max": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "maxLength": { + "type": "number", + }, + "min": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "minLength": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "regex": { + "type": "string", + }, + "required": { + "type": "boolean", + }, + "type": { + "type": "string", + }, + "unique": { + "type": "boolean", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + ], + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "collectionName": { + "type": "string", + }, + "connection": { + "type": "string", + }, + "description": { + "type": "string", + }, + "displayName": { + "type": "string", + }, + "icon": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "displayName", + "description", + "attributes", + ], + "type": "object", + }, + "uid": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + }, + "required": [ + "uid", + "category", + "apiId", + "schema", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "content-type-builder", + ], + }, + }, + "/content-type-builder/content-types": { + "get": { + "operationId": "content-type-builder/get/content_type_builder_content_types", + "parameters": [ + { + "in": "query", + "name": "kind", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "enum": [ + "collectionType", + "singleType", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "apiID": { + "type": "string", + }, + "plugin": { + "type": "string", + }, + "schema": { + "additionalProperties": false, + "properties": { + "attributes": { + "additionalProperties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "allowedTypes": { + "items": { + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "multiple": { + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "media", + "type": "string", + }, + }, + "required": [ + "type", + "multiple", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "autoPopulate": { + "type": "boolean", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "inversedBy": { + "type": "string", + }, + "mappedBy": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "relation": { + "type": "string", + }, + "target": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + "targetAttribute": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "type": { + "const": "relation", + "type": "string", + }, + }, + "required": [ + "type", + "relation", + "target", + "targetAttribute", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "component": { + "type": "string", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "repeatable": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "component", + "type": "string", + }, + }, + "required": [ + "type", + "component", + "repeatable", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "components": { + "items": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "dynamiczone", + "type": "string", + }, + }, + "required": [ + "type", + "components", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "const": false, + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "targetField": { + "type": "string", + }, + "type": { + "const": "uid", + "type": "string", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "type": "boolean", + }, + "default": {}, + "enum": { + "items": { + "type": "string", + }, + "type": "array", + }, + "max": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "maxLength": { + "type": "number", + }, + "min": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "minLength": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "regex": { + "type": "string", + }, + "required": { + "type": "boolean", + }, + "type": { + "type": "string", + }, + "unique": { + "type": "boolean", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + ], + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "collectionName": { + "type": "string", + }, + "comment": { + "type": "string", + }, + "description": { + "type": "string", + }, + "displayName": { + "type": "string", + }, + "draftAndPublish": { + "type": "boolean", + }, + "kind": { + "enum": [ + "collectionType", + "singleType", + ], + "type": "string", + }, + "options": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "pluralName": { + "type": "string", + }, + "populateCreatorFields": { + "type": "boolean", + }, + "restrictRelationsTo": { + "anyOf": [ + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "type": "null", + }, + ], + }, + "reviewWorkflows": { + "type": "boolean", + }, + "singularName": { + "type": "string", + }, + "version": { + "type": "string", + }, + "visible": { + "type": "boolean", + }, + }, + "required": [ + "displayName", + "singularName", + "pluralName", + "description", + "draftAndPublish", + "kind", + "attributes", + "visible", + "restrictRelationsTo", + ], + "type": "object", + }, + "uid": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + }, + "required": [ + "uid", + "apiID", + "schema", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "content-type-builder", + ], + }, + }, + "/content-type-builder/content-types/{uid}": { + "get": { + "operationId": "content-type-builder/get/content_type_builder_content_types_by_uid", + "parameters": [ + { + "in": "path", + "name": "uid", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "apiID": { + "type": "string", + }, + "plugin": { + "type": "string", + }, + "schema": { + "additionalProperties": false, + "properties": { + "attributes": { + "additionalProperties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "allowedTypes": { + "items": { + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "multiple": { + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "media", + "type": "string", + }, + }, + "required": [ + "type", + "multiple", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "autoPopulate": { + "type": "boolean", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "inversedBy": { + "type": "string", + }, + "mappedBy": { + "type": "string", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "relation": { + "type": "string", + }, + "target": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + "targetAttribute": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "type": { + "const": "relation", + "type": "string", + }, + }, + "required": [ + "type", + "relation", + "target", + "targetAttribute", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "component": { + "type": "string", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "repeatable": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "component", + "type": "string", + }, + }, + "required": [ + "type", + "component", + "repeatable", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "components": { + "items": { + "pattern": "^[\\w-]+\\.[\\w-]+$", + "type": "string", + }, + "type": "array", + }, + "configurable": { + "const": false, + "type": "boolean", + }, + "max": { + "type": "number", + }, + "min": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "required": { + "type": "boolean", + }, + "type": { + "const": "dynamiczone", + "type": "string", + }, + }, + "required": [ + "type", + "components", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "const": false, + "type": "boolean", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "targetField": { + "type": "string", + }, + "type": { + "const": "uid", + "type": "string", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "configurable": { + "type": "boolean", + }, + "default": {}, + "enum": { + "items": { + "type": "string", + }, + "type": "array", + }, + "max": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "maxLength": { + "type": "number", + }, + "min": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + "minLength": { + "type": "number", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "private": { + "type": "boolean", + }, + "regex": { + "type": "string", + }, + "required": { + "type": "boolean", + }, + "type": { + "type": "string", + }, + "unique": { + "type": "boolean", + }, + }, + "required": [ + "type", + ], + "type": "object", + }, + ], + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "collectionName": { + "type": "string", + }, + "comment": { + "type": "string", + }, + "description": { + "type": "string", + }, + "displayName": { + "type": "string", + }, + "draftAndPublish": { + "type": "boolean", + }, + "kind": { + "enum": [ + "collectionType", + "singleType", + ], + "type": "string", + }, + "options": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "pluginOptions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "pluralName": { + "type": "string", + }, + "populateCreatorFields": { + "type": "boolean", + }, + "restrictRelationsTo": { + "anyOf": [ + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "type": "null", + }, + ], + }, + "reviewWorkflows": { + "type": "boolean", + }, + "singularName": { + "type": "string", + }, + "version": { + "type": "string", + }, + "visible": { + "type": "boolean", + }, + }, + "required": [ + "displayName", + "singularName", + "pluralName", + "description", + "draftAndPublish", + "kind", + "attributes", + "visible", + "restrictRelationsTo", + ], + "type": "object", + }, + "uid": { + "pattern": "^((strapi|admin)::[\\w-]+|(api|plugin)::[\\w-]+\\.[\\w-]+)$", + "type": "string", + }, + }, + "required": [ + "uid", + "apiID", + "schema", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "content-type-builder", + ], + }, + }, + "/countries": { + "get": { + "operationId": "country/get/countries", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "product", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "product", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "country", + ], + }, + "post": { + "operationId": "country/post/countries", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "product", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "product", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "country", + ], + }, + }, + "/countries/{id}": { + "delete": { + "operationId": "country/delete/countries_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "product", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "product", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "country", + ], + }, + "get": { + "operationId": "country/get/countries_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "product", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "product", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "country", + ], + }, + "put": { + "operationId": "country/put/countries_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "code", + "visible", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "product", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "product", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "code": { + "description": "A string field", + "maxLength": 3, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "product": { + "$ref": "#/components/schemas/ApiProductProductDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "visible": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "description": "A boolean field", + }, + }, + "required": [ + "documentId", + "id", + "name", + "code", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "country", + ], + }, + }, + "/email": { + "post": { + "operationId": "email/post/email", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": { + "type": "string", + }, + "properties": { + "bcc": { + "type": "string", + }, + "cc": { + "type": "string", + }, + "from": { + "type": "string", + }, + "html": { + "type": "string", + }, + "replyTo": { + "type": "string", + }, + "subject": { + "type": "string", + }, + "text": { + "type": "string", + }, + "to": { + "type": "string", + }, + }, + "required": [ + "to", + "subject", + "text", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": {}, + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "email", + ], + }, + }, + "/homepage": { + "delete": { + "operationId": "homepage/delete/homepage", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_user": { + "$ref": "#/components/schemas/AdminUserDocument", + "description": "A relational field", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiHomepageHomepageDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "homepage", + ], + }, + "get": { + "operationId": "homepage/get/homepage", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "content", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_user": { + "$ref": "#/components/schemas/AdminUserDocument", + "description": "A relational field", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiHomepageHomepageDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "homepage", + ], + }, + "put": { + "operationId": "homepage/put/homepage", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "content", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "admin_user", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_user": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "admin_user": { + "$ref": "#/components/schemas/AdminUserDocument", + "description": "A relational field", + }, + "content": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiHomepageHomepageDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "content", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "homepage", + ], + }, + }, + "/i18n/locales": { + "get": { + "operationId": "i18n/get/i18n_locales", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "items": { + "additionalProperties": false, + "properties": { + "code": { + "maxLength": 2, + "minLength": 2, + "type": "string", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "isDefault": { + "type": "boolean", + }, + "name": { + "type": "string", + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "name", + "code", + "createdAt", + "updatedAt", + "publishedAt", + "isDefault", + ], + "type": "object", + }, + "type": "array", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "i18n", + ], + }, + }, + "/products": { + "get": { + "operationId": "product/get/products", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "product", + ], + }, + "post": { + "operationId": "product/post/products", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "images": { + "description": "A media field", + "items": {}, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "sku": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "variations": { + "description": "A component field", + "items": {}, + "type": "array", + }, + }, + "required": [ + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "product", + ], + }, + }, + "/products/{id}": { + "delete": { + "operationId": "product/delete/products_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "product", + ], + }, + "get": { + "operationId": "product/get/products_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "product", + ], + }, + "put": { + "operationId": "product/put/products_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "slug", + "isAvailable", + "description", + "sku", + "type", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "images", + "seo", + "variations", + "countries", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "images": { + "description": "A media field", + "items": {}, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "enum": [ + "0", + "1", + "t", + "true", + "f", + "false", + ], + "type": "string", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "sku": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "variations": { + "description": "A component field", + "items": {}, + "type": "array", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "countries": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiCountryCountryDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "description": { + "description": "A blocks field", + "items": {}, + "type": "array", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "images": { + "description": "A media field", + "items": { + "$ref": "#/components/schemas/PluginUploadFileDocument", + }, + "type": "array", + }, + "isAvailable": { + "anyOf": [ + { + "type": "boolean", + }, + { + "type": "null", + }, + ], + "default": true, + "description": "A boolean field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiProductProductDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "sku": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "slug": { + "description": "A UID field", + "type": "string", + }, + "type": { + "description": "An enum field", + "enum": [ + "standard", + "custom", + "cheap", + "fancy", + ], + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + "variations": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/ProductVariationsEntry", + }, + "type": "array", + }, + }, + "required": [ + "documentId", + "id", + "name", + "slug", + "isAvailable", + "description", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "product", + ], + }, + }, + "/relation-labs": { + "get": { + "operationId": "relation-lab/get/relation_labs", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-lab", + ], + }, + "post": { + "operationId": "relation-lab/post/relation_labs", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "manyToMany": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "manyToOne": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "oneToOne": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "title", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-lab", + ], + }, + }, + "/relation-labs/{id}": { + "delete": { + "operationId": "relation-lab/delete/relation_labs_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-lab", + ], + }, + "get": { + "operationId": "relation-lab/get/relation_labs_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-lab", + ], + }, + "put": { + "operationId": "relation-lab/put/relation_labs_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "manyToOne", + "oneToOne", + "oneToMany", + "manyToMany", + "manyToManyBi", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "manyToMany": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "manyToOne": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "oneToOne": { + "description": "A relational field", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "manyToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToManyBi": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "manyToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "oneToMany": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + }, + "type": "array", + }, + "oneToOne": { + "$ref": "#/components/schemas/ApiRelationTargetRelationTargetDocument", + "description": "A relational field", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-lab", + ], + }, + }, + "/relation-targets": { + "get": { + "operationId": "relation-target/get/relation_targets", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "relationLabs", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "relationLabs", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-target", + ], + }, + "post": { + "operationId": "relation-target/post/relation_targets", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "relationLabs", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "relationLabs", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + }, + "required": [ + "name", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-target", + ], + }, + }, + "/relation-targets/{id}": { + "delete": { + "operationId": "relation-target/delete/relation_targets_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "relationLabs", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "relationLabs", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-target", + ], + }, + "get": { + "operationId": "relation-target/get/relation_targets_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "relationLabs", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "relationLabs", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-target", + ], + }, + "put": { + "operationId": "relation-target/put/relation_targets_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "relationLabs", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "relationLabs", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "relationLabs": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiRelationLabRelationLabDocument", + }, + "type": "array", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "name", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "relation-target", + ], + }, + }, + "/shop": { + "delete": { + "operationId": "shop/delete/shop", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "content", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "content", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "content": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiShopShopDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + "content", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "shop", + ], + }, + "get": { + "operationId": "shop/get/shop", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "content", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "content", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "content": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiShopShopDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + "content", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "shop", + ], + }, + "put": { + "operationId": "shop/put/shop", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "content", + "seo", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "content", + "seo", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "content": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "content": { + "description": "A dynamic zone field", + "items": {}, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiShopShopDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "seo": { + "$ref": "#/components/schemas/MetaSeoEntry", + "description": "A component field", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "title", + "publishedAt", + "content", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "shop", + ], + }, + }, + "/single-type-localized": { + "delete": { + "operationId": "single-type-localized/delete/single_type_localized", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiSingleTypeLocalizedSingleTypeLocalizedDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-localized", + ], + }, + "get": { + "operationId": "single-type-localized/get/single_type_localized", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiSingleTypeLocalizedSingleTypeLocalizedDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-localized", + ], + }, + "put": { + "operationId": "single-type-localized/put/single_type_localized", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiSingleTypeLocalizedSingleTypeLocalizedDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-localized", + ], + }, + }, + "/single-type-non-local": { + "delete": { + "operationId": "single-type-non-local/delete/single_type_non_local", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complex_contents", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complex_contents", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complex_contents": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-non-local", + ], + }, + "get": { + "operationId": "single-type-non-local/get/single_type_non_local", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complex_contents", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complex_contents", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complex_contents": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-non-local", + ], + }, + "put": { + "operationId": "single-type-non-local/put/single_type_non_local", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "complex_contents", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "complex_contents", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complex_contents": { + "description": "A relational field", + "items": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "complex_contents": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiComplexComplexDocument", + }, + "type": "array", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-non-local", + ], + }, + }, + "/single-type-unpublished": { + "delete": { + "operationId": "single-type-unpublished/delete/single_type_unpublished", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-unpublished", + ], + }, + "get": { + "operationId": "single-type-unpublished/get/single_type_unpublished", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-unpublished", + ], + }, + "put": { + "operationId": "single-type-unpublished/put/single_type_unpublished", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "shorttext", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "shorttext": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "single-type-unpublished", + ], + }, + }, + "/teams": { + "get": { + "operationId": "team/get/teams", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "team", + ], + }, + "post": { + "operationId": "team/post/teams", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "founded": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "team", + ], + }, + }, + "/teams/{id}": { + "delete": { + "operationId": "team/delete/teams_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "team", + ], + }, + "get": { + "operationId": "team/get/teams_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "team", + ], + }, + "put": { + "operationId": "team/put/teams_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "name", + "founded", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "founded": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "founded": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiTeamTeamDocument", + }, + "readOnly": true, + "type": "array", + }, + "name": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "team", + ], + }, + }, + "/uniques": { + "get": { + "operationId": "unique/get/uniques", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "_q", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "unique", + ], + }, + "post": { + "operationId": "unique/post/uniques", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "identifiers": { + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": {}, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + }, + "required": [ + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "unique", + ], + }, + }, + "/uniques/{id}": { + "delete": { + "operationId": "unique/delete/uniques_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "unique", + ], + }, + "get": { + "operationId": "unique/get/uniques_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + { + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the result", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "unique", + ], + }, + "put": { + "operationId": "unique/put/uniques_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "uniqueString", + "uniqueNumber", + "uniqueEmail", + "uniqueDate", + "UID", + "createdAt", + "updatedAt", + "publishedAt", + "locale", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [ + "identifiers", + "repeatableIdentifiers", + "localizations", + ], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Select a locale", + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "identifiers": { + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": {}, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "UID": { + "description": "A UID field", + "type": "string", + }, + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "identifiers": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + "description": "A component field", + }, + "locale": { + "description": "A string field", + "type": "string", + }, + "localizations": { + "description": "A relational field", + "items": { + "$ref": "#/components/schemas/ApiUniqueUniqueDocument", + }, + "readOnly": true, + "type": "array", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "repeatableIdentifiers": { + "description": "A component field", + "items": { + "$ref": "#/components/schemas/UniqueTopLevelEntry", + }, + "type": "array", + }, + "uniqueDate": { + "description": "A date field", + "type": "string", + }, + "uniqueEmail": { + "description": "An email field", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "uniqueNumber": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "uniqueString": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "unique", + ], + }, + }, + "/upcoming-match": { + "delete": { + "operationId": "upcoming-match/delete/upcoming_match", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "number_of_upcoming_matches", + "next_match", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "next_match": { + "description": "A date field", + "type": "string", + }, + "number_of_upcoming_matches": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upcoming-match", + ], + }, + "get": { + "operationId": "upcoming-match/get/upcoming_match", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "number_of_upcoming_matches", + "next_match", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Filters to apply to the query", + "propertyNames": { + "enum": [ + "title", + "number_of_upcoming_matches", + "next_match", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "next_match": { + "description": "A date field", + "type": "string", + }, + "number_of_upcoming_matches": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upcoming-match", + ], + }, + "put": { + "operationId": "upcoming-match/put/upcoming_match", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "The fields to return, this doesn't include populatable fields like relations, components, files, or dynamic zones", + "items": { + "enum": [ + "title", + "number_of_upcoming_matches", + "next_match", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "string", + }, + "readOnly": true, + "type": "array", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "description": "Populate all the first level relations, components, files, and dynamic zones for the entry", + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a single relation, component, file, or dynamic zone", + "enum": [], + "readOnly": true, + "type": "string", + }, + { + "description": "Populate a selection of multiple relations, components, files, or dynamic zones", + "items": { + "enum": [], + "type": "string", + }, + "type": "array", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Fetch documents based on their status. Default to "published" if not specified.", + "enum": [ + "draft", + "published", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "publicationFilter", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Derived publication cohort: pair-scoped (per documentId+locale), document-scoped variants (-document), or published-slice diagnostics (published-without-draft / published-with-draft)", + "enum": [ + "never-published", + "has-published-version", + "modified", + "unmodified", + "never-published-document", + "has-published-version-document", + "published-without-draft", + "published-with-draft", + ], + "type": "string", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "hasPublishedVersion", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "boolean", + }, + { + "enum": [ + "true", + "false", + ], + "type": "string", + }, + ], + "description": "[Deprecated: prefer publicationFilter] Filter documents by whether they have a published version. Use with status=draft to find documents that have never been published", + }, + "x-strapi-serialize": "querystring", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "next_match": { + "description": "A date field", + "type": "string", + }, + "number_of_upcoming_matches": { + "description": "A float field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "additionalProperties": false, + "properties": { + "createdAt": { + "description": "A datetime field", + "type": "string", + }, + "documentId": { + "description": "The document ID, represented by a UUID", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "number", + }, + ], + }, + "next_match": { + "description": "A date field", + "type": "string", + }, + "number_of_upcoming_matches": { + "description": "An integer field", + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "publishedAt": { + "default": "", + "description": "A datetime field", + "type": "string", + }, + "title": { + "description": "A string field", + "type": "string", + }, + "updatedAt": { + "description": "A datetime field", + "type": "string", + }, + }, + "required": [ + "documentId", + "id", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "data", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upcoming-match", + ], + }, + }, + "/upload": { + "post": { + "operationId": "upload/post/upload", + "parameters": [ + { + "in": "query", + "name": "id", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + { + "type": "string", + }, + ], + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + { + "items": { + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + "type": "array", + }, + ], + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upload", + ], + }, + }, + "/upload/files": { + "get": { + "operationId": "upload/get/upload_files", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the results by specified fields", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Apply filters to the query", + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "items": { + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upload", + ], + }, + }, + "/upload/files/page": { + "get": { + "operationId": "upload/get/upload_files_page", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the results by specified fields", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Apply filters to the query", + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "data": { + "items": { + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + "type": "array", + }, + "meta": { + "additionalProperties": false, + "properties": { + "pagination": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "page": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "pageCount": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "pageSize": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "total": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "page", + "pageSize", + ], + "type": "object", + }, + { + "additionalProperties": false, + "properties": { + "limit": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "start": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "total": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "start", + "limit", + ], + "type": "object", + }, + ], + }, + }, + "required": [ + "pagination", + ], + "type": "object", + }, + }, + "required": [ + "data", + "meta", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upload", + ], + }, + }, + "/upload/files/{id}": { + "delete": { + "operationId": "upload/delete/upload_files_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + { + "type": "string", + }, + ], + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upload", + ], + }, + "get": { + "operationId": "upload/get/upload_files_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + { + "type": "string", + }, + ], + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "alternativeText": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "caption": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "createdAt": { + "type": "string", + }, + "createdBy": { + "type": "number", + }, + "documentId": { + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", + "type": "string", + }, + "ext": { + "type": "string", + }, + "folder": { + "type": "number", + }, + "folderPath": { + "type": "string", + }, + "formats": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "hash": { + "type": "string", + }, + "height": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + "id": { + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "mime": { + "type": "string", + }, + "name": { + "type": "string", + }, + "previewUrl": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "provider": { + "type": "string", + }, + "provider_metadata": { + "anyOf": [ + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "type": "null", + }, + ], + }, + "size": { + "type": "number", + }, + "updatedAt": { + "type": "string", + }, + "updatedBy": { + "type": "number", + }, + "url": { + "type": "string", + }, + "width": { + "maximum": 9007199254740991, + "minimum": -9007199254740991, + "type": "integer", + }, + }, + "required": [ + "id", + "documentId", + "name", + "hash", + "mime", + "size", + "url", + "folderPath", + "provider", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "upload", + ], + }, + }, + "/users": { + "get": { + "operationId": "users-permissions/get/users", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + { + "items": { + "additionalProperties": { + "enum": [ + "asc", + "desc", + ], + "type": "string", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "type": "array", + }, + ], + "description": "Sort the results by specified fields", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[withCount]", + "required": false, + "schema": { + "description": "Include total count in response", + "type": "boolean", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[page]", + "required": false, + "schema": { + "description": "Page number (1-based)", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[pageSize]", + "required": false, + "schema": { + "description": "Number of entries per page", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[start]", + "required": false, + "schema": { + "description": "Number of entries to skip", + "maximum": 9007199254740991, + "minimum": 0, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "pagination[limit]", + "required": false, + "schema": { + "description": "Maximum number of entries to return", + "exclusiveMinimum": 0, + "maximum": 9007199254740991, + "type": "integer", + }, + "x-strapi-serialize": "querystring", + }, + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Apply filters to the query", + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "items": { + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + "post": { + "operationId": "users-permissions/post/users", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "password": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + { + "additionalProperties": false, + "properties": { + "connect": { + "items": { + "additionalProperties": false, + "properties": { + "documentId": { + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + }, + "type": "object", + }, + "type": "array", + }, + "disconnect": { + "items": { + "additionalProperties": false, + "properties": { + "documentId": { + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + ], + }, + "username": { + "type": "string", + }, + }, + "required": [ + "username", + "email", + "password", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users-permissions/permissions": { + "get": { + "operationId": "users-permissions/get/users_permissions_permissions", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "permissions": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "controllers": { + "additionalProperties": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + }, + "policy": { + "type": "string", + }, + }, + "required": [ + "enabled", + "policy", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "controllers", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "permissions", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users-permissions/roles": { + "get": { + "operationId": "users-permissions/get/users_permissions_roles", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "roles": { + "items": { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "documentId": { + "type": "string", + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "nb_users": { + "type": "number", + }, + "permissions": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "controllers": { + "additionalProperties": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + }, + "policy": { + "type": "string", + }, + }, + "required": [ + "enabled", + "policy", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "controllers", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "publishedAt": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + "users": { + "items": {}, + "type": "array", + }, + }, + "required": [ + "id", + "documentId", + "name", + "description", + "type", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + "type": "array", + }, + }, + "required": [ + "roles", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + "post": { + "operationId": "users-permissions/post/users_permissions_roles", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "description": { + "type": "string", + }, + "name": { + "type": "string", + }, + "permissions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "type": { + "type": "string", + }, + }, + "required": [ + "name", + "type", + ], + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "ok": { + "type": "boolean", + }, + }, + "required": [ + "ok", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users-permissions/roles/{id}": { + "get": { + "operationId": "users-permissions/get/users_permissions_roles_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "role": { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "documentId": { + "type": "string", + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "nb_users": { + "type": "number", + }, + "permissions": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "controllers": { + "additionalProperties": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + }, + "policy": { + "type": "string", + }, + }, + "required": [ + "enabled", + "policy", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + }, + "required": [ + "controllers", + ], + "type": "object", + }, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "publishedAt": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + "users": { + "items": {}, + "type": "array", + }, + }, + "required": [ + "id", + "documentId", + "name", + "description", + "type", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + "required": [ + "role", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users-permissions/roles/{role}": { + "delete": { + "operationId": "users-permissions/delete/users_permissions_roles_by_role", + "parameters": [ + { + "in": "path", + "name": "role", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "ok": { + "type": "boolean", + }, + }, + "required": [ + "ok", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + "put": { + "operationId": "users-permissions/put/users_permissions_roles_by_role", + "parameters": [ + { + "in": "path", + "name": "role", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "description": { + "type": "string", + }, + "name": { + "type": "string", + }, + "permissions": { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "type": { + "type": "string", + }, + }, + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "ok": { + "type": "boolean", + }, + }, + "required": [ + "ok", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users/count": { + "get": { + "operationId": "users-permissions/get/users_count", + "parameters": [ + { + "explode": true, + "in": "query", + "name": "filters", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": {}, + "description": "Apply filters to the query", + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + "style": "deepObject", + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "number", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users/me": { + "get": { + "operationId": "users-permissions/get/users_me", + "parameters": [ + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + "/users/{id}": { + "delete": { + "operationId": "users-permissions/delete/users_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + "get": { + "operationId": "users-permissions/get/users_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + { + "in": "query", + "name": "fields", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + ], + "description": "Select specific fields to return in the response", + }, + "x-strapi-serialize": "querystring", + }, + { + "in": "query", + "name": "populate", + "required": false, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "anyOf": [ + { + "const": "*", + "type": "string", + }, + { + "type": "string", + }, + { + "items": { + "type": "string", + }, + "type": "array", + }, + { + "additionalProperties": {}, + "propertyNames": { + "type": "string", + }, + "type": "object", + }, + ], + "description": "Specify which relations to populate in the response", + }, + "x-strapi-serialize": "querystring", + }, + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + "put": { + "operationId": "users-permissions/put/users_by_id", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + }, + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "email": { + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", + "type": "string", + }, + "password": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + { + "additionalProperties": false, + "properties": { + "connect": { + "items": { + "additionalProperties": false, + "properties": { + "documentId": { + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + }, + "type": "object", + }, + "type": "array", + }, + "disconnect": { + "items": { + "additionalProperties": false, + "properties": { + "documentId": { + "type": "string", + }, + "id": { + "anyOf": [ + { + "type": "number", + }, + { + "type": "string", + }, + ], + }, + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + ], + }, + "username": { + "type": "string", + }, + }, + "type": "object", + }, + }, + }, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "properties": { + "blocked": { + "type": "boolean", + }, + "confirmed": { + "type": "boolean", + }, + "createdAt": { + "type": "string", + }, + "documentId": { + "type": "string", + }, + "email": { + "type": "string", + }, + "id": { + "type": "number", + }, + "provider": { + "type": "string", + }, + "publishedAt": { + "type": "string", + }, + "role": { + "anyOf": [ + { + "type": "number", + }, + { + "additionalProperties": false, + "properties": { + "createdAt": { + "type": "string", + }, + "description": { + "anyOf": [ + { + "type": "string", + }, + { + "type": "null", + }, + ], + }, + "id": { + "type": "number", + }, + "name": { + "type": "string", + }, + "type": { + "type": "string", + }, + "updatedAt": { + "type": "string", + }, + }, + "required": [ + "id", + "name", + "description", + "type", + "createdAt", + "updatedAt", + ], + "type": "object", + }, + ], + }, + "updatedAt": { + "type": "string", + }, + "username": { + "type": "string", + }, + }, + "required": [ + "id", + "documentId", + "username", + "email", + "provider", + "confirmed", + "blocked", + "createdAt", + "updatedAt", + "publishedAt", + ], + "type": "object", + }, + }, + }, + "description": "OK", + }, + "400": { + "description": "Bad request", + }, + "401": { + "description": "Unauthorized", + }, + "403": { + "description": "Forbidden", + }, + "404": { + "description": "Not found", + }, + "500": { + "description": "Internal server error", + }, + }, + "tags": [ + "users-permissions", + ], + }, + }, + }, + "security": [ + { + "bearerAuth": [], + }, + ], + "servers": [ + { + "description": "Default server", + "url": "", + }, + ], + "x-powered-by": "strapi", + "x-strapi-version": "", +} +`;