From 78691799427de7a6f9c9d0029f7d6597c89fe6d9 Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Wed, 8 May 2024 18:30:42 +0300 Subject: [PATCH] feat: remember last consumed notification (#26) --- .../notification/controllers/notification.ts | 47 +- .../documentation/1.0.0/notification.json | 17 +- src/api/notification/routes/notification.ts | 2 +- src/api/notification/services/notification.ts | 4 +- .../notifications-consumer/schema.json | 18 + .../controllers/notifications-consumer.ts | 7 + .../1.0.0/notifications-consumer.json | 324 ++ .../routes/notifications-consumer.ts | 7 + .../services/notifications-consumer.ts | 7 + .../1.0.0/full_documentation.json | 4976 ++++++++++------- 10 files changed, 3249 insertions(+), 2160 deletions(-) create mode 100644 src/api/notifications-consumer/content-types/notifications-consumer/schema.json create mode 100644 src/api/notifications-consumer/controllers/notifications-consumer.ts create mode 100644 src/api/notifications-consumer/documentation/1.0.0/notifications-consumer.json create mode 100644 src/api/notifications-consumer/routes/notifications-consumer.ts create mode 100644 src/api/notifications-consumer/services/notifications-consumer.ts diff --git a/src/api/notification/controllers/notification.ts b/src/api/notification/controllers/notification.ts index 7dfae1d..9e9ba5c 100644 --- a/src/api/notification/controllers/notification.ts +++ b/src/api/notification/controllers/notification.ts @@ -5,19 +5,58 @@ import { factories } from '@strapi/strapi' const MODULE_ID = 'api::notification.notification' +const GLOBAL_MODULE_ID = 'api::notifications-consumer.notifications-consumer' +const SINGLETON_ID = 1 export default factories.createCoreController(MODULE_ID, ({ strapi }) => { return { async getNotificationList(context) { const account = context.params.account - return strapi.service(MODULE_ID).getNotificationList(account, false) + return strapi.service(MODULE_ID).getNotificationList(account) }, - async getPushNotifications(context) { - const account = context.params.account + async getPushNotifications() { + const global = await strapi.entityService.findOne(GLOBAL_MODULE_ID, SINGLETON_ID, { + populate: ['id', 'lastConsumedNotificationDate'] + }) + + const lastConsumedNotificationDate = global?.lastConsumedNotificationDate + + const notifications = await strapi.entityService.findMany( + MODULE_ID, + { + limit: 200, + filters: { + notification_template: { push: true }, + ...(lastConsumedNotificationDate ? { + createdAt: {$gt: lastConsumedNotificationDate} + } : undefined) + }, + populate: { + notification_template: { + fields: ['id', 'title', 'description', 'url', 'push'], + populate: { + thumbnail: { + fields: ['url'] + } + } + } + } + } + ) + + if (notifications.length) { + await strapi.entityService.update( + GLOBAL_MODULE_ID, + SINGLETON_ID, + { + data: { lastConsumedNotificationDate: new Date() } + } + ) + } - return strapi.service(MODULE_ID).getNotificationList(account, true) + return notifications }, } }); diff --git a/src/api/notification/documentation/1.0.0/notification.json b/src/api/notification/documentation/1.0.0/notification.json index ddcf66b..8e5bbb0 100644 --- a/src/api/notification/documentation/1.0.0/notification.json +++ b/src/api/notification/documentation/1.0.0/notification.json @@ -586,7 +586,7 @@ "operationId": "get/notification-list/{account}" } }, - "/push-notifications/{account}": { + "/push-notifications": { "get": { "responses": { "200": { @@ -653,19 +653,8 @@ "tags": [ "Notification" ], - "parameters": [ - { - "name": "account", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/push-notifications/{account}" + "parameters": [], + "operationId": "get/push-notifications" } } } diff --git a/src/api/notification/routes/notification.ts b/src/api/notification/routes/notification.ts index bcb2609..0df6a20 100644 --- a/src/api/notification/routes/notification.ts +++ b/src/api/notification/routes/notification.ts @@ -32,7 +32,7 @@ const myExtraRoutes = [ }, { method: 'GET', - path: '/push-notifications/:account', + path: '/push-notifications', handler: 'notification.getPushNotifications', config: { policies: [], diff --git a/src/api/notification/services/notification.ts b/src/api/notification/services/notification.ts index 765090b..32e43c7 100644 --- a/src/api/notification/services/notification.ts +++ b/src/api/notification/services/notification.ts @@ -8,7 +8,7 @@ const MODULE_ID = 'api::notification.notification' export default factories.createCoreService(MODULE_ID, ({ strapi }) => { return { - async getNotificationList(account: string, push: boolean) { + async getNotificationList(account: string) { const notifications = await strapi.entityService.findMany( MODULE_ID, { @@ -16,7 +16,7 @@ export default factories.createCoreService(MODULE_ID, ({ strapi }) => { limit: 50, filters: { account, - notification_template: { push } + notification_template: { push: false } }, populate: { notification_template: { diff --git a/src/api/notifications-consumer/content-types/notifications-consumer/schema.json b/src/api/notifications-consumer/content-types/notifications-consumer/schema.json new file mode 100644 index 0000000..a04d051 --- /dev/null +++ b/src/api/notifications-consumer/content-types/notifications-consumer/schema.json @@ -0,0 +1,18 @@ +{ + "kind": "singleType", + "collectionName": "notifications_consumers", + "info": { + "singularName": "notifications-consumer", + "pluralName": "notifications-consumers", + "displayName": "NotificationsConsumer" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": {}, + "attributes": { + "lastConsumedNotificationDate": { + "type": "datetime" + } + } +} diff --git a/src/api/notifications-consumer/controllers/notifications-consumer.ts b/src/api/notifications-consumer/controllers/notifications-consumer.ts new file mode 100644 index 0000000..f3b0656 --- /dev/null +++ b/src/api/notifications-consumer/controllers/notifications-consumer.ts @@ -0,0 +1,7 @@ +/** + * notifications-consumer controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::notifications-consumer.notifications-consumer'); diff --git a/src/api/notifications-consumer/documentation/1.0.0/notifications-consumer.json b/src/api/notifications-consumer/documentation/1.0.0/notifications-consumer.json new file mode 100644 index 0000000..2b066e3 --- /dev/null +++ b/src/api/notifications-consumer/documentation/1.0.0/notifications-consumer.json @@ -0,0 +1,324 @@ +{ + "/notifications-consumer": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationsConsumerResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Notifications-consumer" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/notifications-consumer" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationsConsumerResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Notifications-consumer" + ], + "parameters": [], + "operationId": "put/notifications-consumer", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationsConsumerRequest" + } + } + } + } + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Notifications-consumer" + ], + "parameters": [], + "operationId": "delete/notifications-consumer" + } + } +} diff --git a/src/api/notifications-consumer/routes/notifications-consumer.ts b/src/api/notifications-consumer/routes/notifications-consumer.ts new file mode 100644 index 0000000..3c3bdc9 --- /dev/null +++ b/src/api/notifications-consumer/routes/notifications-consumer.ts @@ -0,0 +1,7 @@ +/** + * notifications-consumer router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::notifications-consumer.notifications-consumer'); diff --git a/src/api/notifications-consumer/services/notifications-consumer.ts b/src/api/notifications-consumer/services/notifications-consumer.ts new file mode 100644 index 0000000..c274ffb --- /dev/null +++ b/src/api/notifications-consumer/services/notifications-consumer.ts @@ -0,0 +1,7 @@ +/** + * notifications-consumer service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::notifications-consumer.notifications-consumer'); diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index f5f46ed..2e20361 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2024-05-08T12:17:32.662Z" + "x-generation-date": "2024-05-08T15:28:37.728Z" }, "x-strapi-config": { "path": "/documentation", @@ -13286,187 +13286,41 @@ } } }, - "PageLocalizationRequest": { - "required": [ - "metadata", - "locale" - ], - "type": "object", - "properties": { - "shortName": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/MetaMetadataComponent" - }, - "contentSections": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SectionsHeroComponent" - }, - { - "$ref": "#/components/schemas/SectionsBottomActionsComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsLargeVideoComponent" - }, - { - "$ref": "#/components/schemas/SectionsRichTextComponent" - }, - { - "$ref": "#/components/schemas/SectionsPricingComponent" - }, - { - "$ref": "#/components/schemas/SectionsLeadFormComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeaturesComponent" - }, - { - "$ref": "#/components/schemas/SectionsHeadingComponent" - } - ] - } - }, - "slug": { - "type": "string" - }, - "heading": { - "type": "string" - }, - "description": { - "type": "string" - }, - "locale": { - "type": "string" - } - } - }, - "PageRequest": { + "NotificationsConsumerRequest": { "type": "object", "required": [ "data" ], "properties": { "data": { - "required": [ - "metadata" - ], "type": "object", "properties": { - "shortName": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/MetaMetadataComponent" - }, - "contentSections": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SectionsHeroComponent" - }, - { - "$ref": "#/components/schemas/SectionsBottomActionsComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsLargeVideoComponent" - }, - { - "$ref": "#/components/schemas/SectionsRichTextComponent" - }, - { - "$ref": "#/components/schemas/SectionsPricingComponent" - }, - { - "$ref": "#/components/schemas/SectionsLeadFormComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeaturesComponent" - }, - { - "$ref": "#/components/schemas/SectionsHeadingComponent" - } - ] - } - }, - "slug": { - "type": "string" - }, - "heading": { - "type": "string" - }, - "description": { - "type": "string" - }, - "locale": { - "type": "string" + "lastConsumedNotificationDate": { + "type": "string", + "format": "date-time" } } } } }, - "PageResponseDataObjectLocalized": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/Page" - } - } - }, - "PageLocalizationResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/PageResponseDataObjectLocalized" - }, - "meta": { - "type": "object" - } - } - }, - "PageListResponseDataItemLocalized": { + "NotificationsConsumerListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Page" + "$ref": "#/components/schemas/NotificationsConsumer" } } }, - "PageLocalizationListResponse": { + "NotificationsConsumerListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/PageListResponseDataItemLocalized" + "$ref": "#/components/schemas/NotificationsConsumerListResponseDataItem" } }, "meta": { @@ -13495,288 +13349,56 @@ } } }, - "PageListResponseDataItem": { + "NotificationsConsumer": { "type": "object", "properties": { - "id": { - "type": "number" + "lastConsumedNotificationDate": { + "type": "string", + "format": "date-time" }, - "attributes": { - "$ref": "#/components/schemas/Page" - } - } - }, - "PageListResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PageListResponseDataItem" - } + "createdAt": { + "type": "string", + "format": "date-time" }, - "meta": { + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { - "pagination": { + "data": { "type": "object", "properties": { - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer", - "minimum": 25 - }, - "pageCount": { - "type": "integer", - "maximum": 1 - }, - "total": { - "type": "integer" - } - } - } - } - } - } - }, - "Page": { - "type": "object", - "required": [ - "metadata" - ], - "properties": { - "shortName": { - "type": "string" - }, - "metadata": { - "$ref": "#/components/schemas/MetaMetadataComponent" - }, - "contentSections": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SectionsHeroComponent" - }, - { - "$ref": "#/components/schemas/SectionsBottomActionsComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" - }, - { - "$ref": "#/components/schemas/SectionsLargeVideoComponent" - }, - { - "$ref": "#/components/schemas/SectionsRichTextComponent" - }, - { - "$ref": "#/components/schemas/SectionsPricingComponent" - }, - { - "$ref": "#/components/schemas/SectionsLeadFormComponent" - }, - { - "$ref": "#/components/schemas/SectionsFeaturesComponent" - }, - { - "$ref": "#/components/schemas/SectionsHeadingComponent" - } - ] - } - }, - "slug": { - "type": "string" - }, - "heading": { - "type": "string" - }, - "description": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "localizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Page" - } - } - } - }, - "locale": { - "type": "string" - } - } - }, - "PageResponseDataObject": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "$ref": "#/components/schemas/Page" - } - } - }, - "PageResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/PageResponseDataObject" - }, - "meta": { - "type": "object" - } - } - }, - "LinksButtonLinkComponent": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "url": { - "type": "string" - }, - "newTab": { - "type": "boolean" - }, - "text": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "primary", - "secondary" - ] - } - } - }, - "SectionsHeroComponent": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "__component": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "picture": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" + "id": { + "type": "number" }, "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { + "firstname": { "type": "string" }, - "ext": { + "lastname": { "type": "string" }, - "mime": { + "username": { "type": "string" }, - "size": { - "type": "number", - "format": "float" + "email": { + "type": "string", + "format": "email" }, - "url": { + "resetPasswordToken": { "type": "string" }, - "previewUrl": { + "registrationToken": { "type": "string" }, - "provider": { - "type": "string" + "isActive": { + "type": "boolean" }, - "provider_metadata": {}, - "related": { + "roles": { "type": "object", "properties": { "data": { @@ -13789,127 +13411,62 @@ }, "attributes": { "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pathId": { - "type": "integer" - }, - "parent": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { + "properties": { + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" + }, + "users": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", - "properties": {} + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } } } } - } - }, - "children": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "files": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + }, + "permissions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "properties": {}, + "conditions": {}, + "role": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { "id": { @@ -13922,316 +13479,45 @@ } } } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "firstname": { - "type": "string" - }, - "lastname": { - "type": "string" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string", - "format": "email" - }, - "resetPasswordToken": { - "type": "string" - }, - "registrationToken": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "roles": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "users": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "permissions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "subject": { - "type": "string" - }, - "properties": {}, - "conditions": {}, - "role": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "blocked": { - "type": "boolean" - }, - "preferedLanguage": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -14242,48 +13528,45 @@ } } } - } - }, - "path": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } } } } @@ -14295,7 +13578,10 @@ } } }, - "folderPath": { + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { "type": "string" }, "createdAt": { @@ -14346,183 +13632,249 @@ } } }, - "buttons": { - "type": "array", - "items": { - "$ref": "#/components/schemas/LinksButtonLinkComponent" + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } } } } }, - "SectionsBottomActionsComponent": { + "NotificationsConsumerResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, - "__component": { - "type": "string" + "attributes": { + "$ref": "#/components/schemas/NotificationsConsumer" + } + } + }, + "NotificationsConsumerResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/NotificationsConsumerResponseDataObject" }, - "title": { + "meta": { + "type": "object" + } + } + }, + "PageLocalizationRequest": { + "required": [ + "metadata", + "locale" + ], + "type": "object", + "properties": { + "shortName": { "type": "string" }, - "buttons": { + "metadata": { + "$ref": "#/components/schemas/MetaMetadataComponent" + }, + "contentSections": { "type": "array", "items": { - "$ref": "#/components/schemas/LinksButtonLinkComponent" + "anyOf": [ + { + "$ref": "#/components/schemas/SectionsHeroComponent" + }, + { + "$ref": "#/components/schemas/SectionsBottomActionsComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsLargeVideoComponent" + }, + { + "$ref": "#/components/schemas/SectionsRichTextComponent" + }, + { + "$ref": "#/components/schemas/SectionsPricingComponent" + }, + { + "$ref": "#/components/schemas/SectionsLeadFormComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeaturesComponent" + }, + { + "$ref": "#/components/schemas/SectionsHeadingComponent" + } + ] } }, + "slug": { + "type": "string" + }, + "heading": { + "type": "string" + }, "description": { "type": "string" + }, + "locale": { + "type": "string" } } }, - "ElementsFeatureColumnComponent": { + "PageRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "metadata" + ], + "type": "object", + "properties": { + "shortName": { + "type": "string" + }, + "metadata": { + "$ref": "#/components/schemas/MetaMetadataComponent" + }, + "contentSections": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SectionsHeroComponent" + }, + { + "$ref": "#/components/schemas/SectionsBottomActionsComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsLargeVideoComponent" + }, + { + "$ref": "#/components/schemas/SectionsRichTextComponent" + }, + { + "$ref": "#/components/schemas/SectionsPricingComponent" + }, + { + "$ref": "#/components/schemas/SectionsLeadFormComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeaturesComponent" + }, + { + "$ref": "#/components/schemas/SectionsHeadingComponent" + } + ] + } + }, + "slug": { + "type": "string" + }, + "heading": { + "type": "string" + }, + "description": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + } + } + }, + "PageResponseDataObjectLocalized": { "type": "object", "properties": { "id": { "type": "number" }, - "title": { - "type": "string" + "attributes": { + "$ref": "#/components/schemas/Page" + } + } + }, + "PageLocalizationResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PageResponseDataObjectLocalized" }, - "description": { - "type": "string" + "meta": { + "type": "object" + } + } + }, + "PageListResponseDataItemLocalized": { + "type": "object", + "properties": { + "id": { + "type": "number" }, - "icon": { + "attributes": { + "$ref": "#/components/schemas/Page" + } + } + }, + "PageLocalizationListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PageListResponseDataItemLocalized" + } + }, + "meta": { "type": "object", "properties": { - "data": { + "pagination": { "type": "object", "properties": { - "id": { - "type": "number" + "page": { + "type": "integer" }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" } } } @@ -14530,36 +13882,126 @@ } } }, - "SectionsFeatureColumnsGroupComponent": { + "PageListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, - "__component": { - "type": "string" - }, - "features": { + "attributes": { + "$ref": "#/components/schemas/Page" + } + } + }, + "PageListResponse": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "$ref": "#/components/schemas/ElementsFeatureColumnComponent" + "$ref": "#/components/schemas/PageListResponseDataItem" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } } } } }, - "ElementsFeatureRowComponent": { + "Page": { "type": "object", + "required": [ + "metadata" + ], "properties": { - "id": { - "type": "number" + "shortName": { + "type": "string" }, - "title": { + "metadata": { + "$ref": "#/components/schemas/MetaMetadataComponent" + }, + "contentSections": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SectionsHeroComponent" + }, + { + "$ref": "#/components/schemas/SectionsBottomActionsComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureColumnsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeatureRowsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsTestimonialsGroupComponent" + }, + { + "$ref": "#/components/schemas/SectionsLargeVideoComponent" + }, + { + "$ref": "#/components/schemas/SectionsRichTextComponent" + }, + { + "$ref": "#/components/schemas/SectionsPricingComponent" + }, + { + "$ref": "#/components/schemas/SectionsLeadFormComponent" + }, + { + "$ref": "#/components/schemas/SectionsFeaturesComponent" + }, + { + "$ref": "#/components/schemas/SectionsHeadingComponent" + } + ] + } + }, + "slug": { + "type": "string" + }, + "heading": { "type": "string" }, "description": { "type": "string" }, - "media": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { "data": { @@ -14570,176 +14012,106 @@ }, "attributes": { "type": "object", - "properties": { - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } + "properties": {} } } } } }, - "link": { + "updatedBy": { "type": "object", "properties": { - "id": { - "type": "number" - }, - "url": { - "type": "string" - }, - "newTab": { - "type": "boolean" - }, - "text": { - "type": "string" + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "localizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Page" + } } } + }, + "locale": { + "type": "string" } } }, - "SectionsFeatureRowsGroupComponent": { + "PageResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, - "__component": { + "attributes": { + "$ref": "#/components/schemas/Page" + } + } + }, + "PageResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PageResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "LinksButtonLinkComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "url": { "type": "string" }, - "features": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ElementsFeatureRowComponent" - } + "newTab": { + "type": "boolean" + }, + "text": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "primary", + "secondary" + ] } } }, - "ElementsTestimonialComponent": { + "SectionsHeroComponent": { "type": "object", "properties": { "id": { "type": "number" }, + "__component": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, "picture": { "type": "object", "properties": { @@ -14822,78 +14194,1093 @@ }, "attributes": { "type": "object", - "properties": {} - } - } - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - } - } - } - } - } - }, - "text": { - "type": "string" - }, - "authorName": { - "type": "string" - } - } - }, - "SectionsTestimonialsGroupComponent": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "__component": { + "properties": { + "name": { + "type": "string" + }, + "pathId": { + "type": "integer" + }, + "parent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "children": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "files": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" + }, + "users": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "permissions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "properties": {}, + "conditions": {}, + "role": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + }, + "path": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "buttons": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LinksButtonLinkComponent" + } + } + } + }, + "SectionsBottomActionsComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "__component": { + "type": "string" + }, + "title": { + "type": "string" + }, + "buttons": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LinksButtonLinkComponent" + } + }, + "description": { + "type": "string" + } + } + }, + "ElementsFeatureColumnComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + } + } + }, + "SectionsFeatureColumnsGroupComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "__component": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ElementsFeatureColumnComponent" + } + } + } + }, + "ElementsFeatureRowComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "media": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "link": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "url": { + "type": "string" + }, + "newTab": { + "type": "boolean" + }, + "text": { + "type": "string" + } + } + } + } + }, + "SectionsFeatureRowsGroupComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "__component": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ElementsFeatureRowComponent" + } + } + } + }, + "ElementsTestimonialComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "picture": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, + "text": { + "type": "string" + }, + "authorName": { + "type": "string" + } + } + }, + "SectionsTestimonialsGroupComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "__component": { "type": "string" }, "title": { @@ -18285,256 +18672,761 @@ } } }, - "updatedBy": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + }, + "TelegramSubscriptionResponseDataObject": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/TelegramSubscription" + } + } + }, + "TelegramSubscriptionResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "UploadFile": { + "properties": { + "id": { + "type": "number" + }, + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "number", + "format": "integer" + }, + "height": { + "type": "number", + "format": "integer" + }, + "formats": { + "type": "number" + }, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "double" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": { + "type": "object" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "Users-Permissions-Role": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "Users-Permissions-User": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "username": { + "type": "string", + "example": "foo.bar" + }, + "email": { + "type": "string", + "example": "foo.bar@strapi.io" + }, + "provider": { + "type": "string", + "example": "local" + }, + "confirmed": { + "type": "boolean", + "example": true + }, + "blocked": { + "type": "boolean", + "example": false + }, + "createdAt": { + "type": "string", + "format": "date-time", + "example": "2022-06-02T08:32:06.258Z" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "example": "2022-06-02T08:32:06.267Z" + } + } + }, + "Users-Permissions-UserRegistration": { + "type": "object", + "properties": { + "jwt": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + }, + "user": { + "$ref": "#/components/schemas/Users-Permissions-User" + } + } + }, + "Users-Permissions-PermissionsTree": { + "type": "object", + "additionalProperties": { + "type": "object", + "description": "every api", + "properties": { + "controllers": { + "description": "every controller of the api", + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "description": "every action of every controller", + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "policy": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "requestBodies": { + "Users-Permissions-RoleRequest": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "permissions": { + "$ref": "#/components/schemas/Users-Permissions-PermissionsTree" + } + } + }, + "example": { + "name": "foo", + "description": "role foo", + "permissions": { + "api::content-type.content-type": { + "controllers": { + "controllerA": { + "find": { + "enabled": true + } + } + } + } + } + } + } + } + } + } + }, + "paths": { + "/articles": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } - } - } - }, - "TelegramSubscriptionResponseDataObject": { - "type": "object", - "properties": { - "id": { - "type": "number" }, - "attributes": { - "$ref": "#/components/schemas/TelegramSubscription" - } - } - }, - "TelegramSubscriptionResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "meta": { - "type": "object" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } - } - }, - "UploadFile": { - "properties": { - "id": { - "type": "number" - }, - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" + }, + "tags": [ + "Article" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } }, - "caption": { - "type": "string" + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } }, - "width": { - "type": "number", - "format": "integer" + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } }, - "height": { - "type": "number", - "format": "integer" + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } }, - "formats": { - "type": "number" + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } }, - "hash": { - "type": "string" + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } }, - "ext": { - "type": "string" + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } }, - "mime": { - "type": "string" + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } }, - "size": { - "type": "number", - "format": "double" + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" }, - "url": { - "type": "string" + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/articles" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleResponse" + } + } + } }, - "previewUrl": { - "type": "string" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "provider": { - "type": "string" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "provider_metadata": { - "type": "object" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "createdAt": { - "type": "string", - "format": "date-time" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "updatedAt": { - "type": "string", - "format": "date-time" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Article" + ], + "parameters": [], + "operationId": "post/articles", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleRequest" + } + } } } - }, - "Users-Permissions-Role": { - "type": "object", - "properties": { - "id": { - "type": "number" + } + }, + "/articles/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleResponse" + } + } + } }, - "name": { - "type": "string" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "description": { - "type": "string" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "type": { - "type": "string" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "createdAt": { - "type": "string", - "format": "date-time" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "updatedAt": { - "type": "string", - "format": "date-time" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } - } + }, + "tags": [ + "Article" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/articles/{id}" }, - "Users-Permissions-User": { - "type": "object", - "properties": { - "id": { - "type": "number", - "example": 1 - }, - "username": { - "type": "string", - "example": "foo.bar" - }, - "email": { - "type": "string", - "example": "foo.bar@strapi.io" + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleResponse" + } + } + } }, - "provider": { - "type": "string", - "example": "local" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "confirmed": { - "type": "boolean", - "example": true + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "blocked": { - "type": "boolean", - "example": false + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "createdAt": { - "type": "string", - "format": "date-time", - "example": "2022-06-02T08:32:06.258Z" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "updatedAt": { - "type": "string", - "format": "date-time", - "example": "2022-06-02T08:32:06.267Z" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } - } - }, - "Users-Permissions-UserRegistration": { - "type": "object", - "properties": { - "jwt": { - "type": "string", - "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - }, - "user": { - "$ref": "#/components/schemas/Users-Permissions-User" + }, + "tags": [ + "Article" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } } - } - }, - "Users-Permissions-PermissionsTree": { - "type": "object", - "additionalProperties": { - "type": "object", - "description": "every api", - "properties": { - "controllers": { - "description": "every controller of the api", - "type": "object", - "additionalProperties": { - "type": "object", - "additionalProperties": { - "description": "every action of every controller", - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "policy": { - "type": "string" - } - } - } + ], + "operationId": "put/articles/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleRequest" } } } } - } - }, - "requestBodies": { - "Users-Permissions-RoleRequest": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string" - }, - "permissions": { - "$ref": "#/components/schemas/Users-Permissions-PermissionsTree" + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" } } - }, - "example": { - "name": "foo", - "description": "role foo", - "permissions": { - "api::content-type.content-type": { - "controllers": { - "controllerA": { - "find": { - "enabled": true - } - } - } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } } - } + }, + "tags": [ + "Article" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/articles/{id}" } - } - }, - "paths": { - "/articles": { + }, + "/authors": { "get": { "responses": { "200": { @@ -18542,7 +19434,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleListResponse" + "$ref": "#/components/schemas/AuthorListResponse" } } } @@ -18599,7 +19491,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -18704,7 +19596,7 @@ } } ], - "operationId": "get/articles" + "operationId": "get/authors" }, "post": { "responses": { @@ -18713,7 +19605,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -18770,23 +19662,23 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [], - "operationId": "post/articles", + "operationId": "post/authors", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } } } }, - "/articles/{id}": { + "/authors/{id}": { "get": { "responses": { "200": { @@ -18794,7 +19686,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -18851,7 +19743,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -18865,7 +19757,7 @@ } } ], - "operationId": "get/articles/{id}" + "operationId": "get/authors/{id}" }, "put": { "responses": { @@ -18874,7 +19766,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -18931,7 +19823,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -18945,13 +19837,13 @@ } } ], - "operationId": "put/articles/{id}", + "operationId": "put/authors/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } @@ -19022,7 +19914,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -19036,10 +19928,10 @@ } } ], - "operationId": "delete/articles/{id}" + "operationId": "delete/authors/{id}" } }, - "/authors": { + "/categories": { "get": { "responses": { "200": { @@ -19047,7 +19939,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorListResponse" + "$ref": "#/components/schemas/CategoryListResponse" } } } @@ -19104,7 +19996,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -19209,7 +20101,7 @@ } } ], - "operationId": "get/authors" + "operationId": "get/categories" }, "post": { "responses": { @@ -19218,7 +20110,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -19275,23 +20167,23 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [], - "operationId": "post/authors", + "operationId": "post/categories", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } } } }, - "/authors/{id}": { + "/categories/{id}": { "get": { "responses": { "200": { @@ -19299,7 +20191,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -19356,7 +20248,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -19370,7 +20262,7 @@ } } ], - "operationId": "get/authors/{id}" + "operationId": "get/categories/{id}" }, "put": { "responses": { @@ -19379,7 +20271,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -19436,7 +20328,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -19450,13 +20342,13 @@ } } ], - "operationId": "put/authors/{id}", + "operationId": "put/categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } @@ -19527,7 +20419,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -19541,10 +20433,10 @@ } } ], - "operationId": "delete/authors/{id}" + "operationId": "delete/categories/{id}" } }, - "/categories": { + "/faq-categories": { "get": { "responses": { "200": { @@ -19552,7 +20444,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryListResponse" + "$ref": "#/components/schemas/FaqCategoryListResponse" } } } @@ -19609,7 +20501,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -19714,7 +20606,7 @@ } } ], - "operationId": "get/categories" + "operationId": "get/faq-categories" }, "post": { "responses": { @@ -19723,7 +20615,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -19780,23 +20672,23 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [], - "operationId": "post/categories", + "operationId": "post/faq-categories", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/FaqCategoryRequest" } } } } } }, - "/categories/{id}": { + "/faq-categories/{id}": { "get": { "responses": { "200": { @@ -19804,7 +20696,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -19861,7 +20753,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -19875,7 +20767,7 @@ } } ], - "operationId": "get/categories/{id}" + "operationId": "get/faq-categories/{id}" }, "put": { "responses": { @@ -19884,7 +20776,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -19941,7 +20833,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -19955,13 +20847,13 @@ } } ], - "operationId": "put/categories/{id}", + "operationId": "put/faq-categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/FaqCategoryRequest" } } } @@ -20032,7 +20924,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -20046,10 +20938,10 @@ } } ], - "operationId": "delete/categories/{id}" + "operationId": "delete/faq-categories/{id}" } }, - "/faq-categories": { + "/faq-questions": { "get": { "responses": { "200": { @@ -20057,7 +20949,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryListResponse" + "$ref": "#/components/schemas/FaqQuestionListResponse" } } } @@ -20114,7 +21006,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -20219,7 +21111,7 @@ } } ], - "operationId": "get/faq-categories" + "operationId": "get/faq-questions" }, "post": { "responses": { @@ -20228,7 +21120,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -20285,23 +21177,23 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [], - "operationId": "post/faq-categories", + "operationId": "post/faq-questions", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryRequest" + "$ref": "#/components/schemas/FaqQuestionRequest" } } } } } }, - "/faq-categories/{id}": { + "/faq-questions/{id}": { "get": { "responses": { "200": { @@ -20309,7 +21201,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -20366,7 +21258,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -20380,7 +21272,7 @@ } } ], - "operationId": "get/faq-categories/{id}" + "operationId": "get/faq-questions/{id}" }, "put": { "responses": { @@ -20389,7 +21281,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -20446,7 +21338,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -20460,13 +21352,13 @@ } } ], - "operationId": "put/faq-categories/{id}", + "operationId": "put/faq-questions/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryRequest" + "$ref": "#/components/schemas/FaqQuestionRequest" } } } @@ -20537,7 +21429,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -20551,10 +21443,10 @@ } } ], - "operationId": "delete/faq-categories/{id}" + "operationId": "delete/faq-questions/{id}" } }, - "/faq-questions": { + "/global": { "get": { "responses": { "200": { @@ -20562,7 +21454,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionListResponse" + "$ref": "#/components/schemas/GlobalResponse" } } } @@ -20619,7 +21511,7 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [ { @@ -20724,16 +21616,16 @@ } } ], - "operationId": "get/faq-questions" + "operationId": "get/global" }, - "post": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "$ref": "#/components/schemas/GlobalResponse" } } } @@ -20790,31 +21682,30 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [], - "operationId": "post/faq-questions", + "operationId": "put/global", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" + "$ref": "#/components/schemas/GlobalRequest" } } } } - } - }, - "/faq-questions/{id}": { - "get": { + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "type": "integer", + "format": "int64" } } } @@ -20871,30 +21762,21 @@ } }, "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Global" ], - "operationId": "get/faq-questions/{id}" - }, - "put": { + "parameters": [], + "operationId": "delete/global" + } + }, + "/global/localizations": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "$ref": "#/components/schemas/GlobalLocalizationResponse" } } } @@ -20951,115 +21833,23 @@ } }, "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Global" ], - "operationId": "put/faq-questions/{id}", + "parameters": [], + "operationId": "post/global/localizations", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" + "$ref": "#/components/schemas/GlobalLocalizationRequest" } } } } - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "integer", - "format": "int64" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/faq-questions/{id}" } }, - "/global": { + "/lead-form-submissions": { "get": { "responses": { "200": { @@ -21067,7 +21857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalResponse" + "$ref": "#/components/schemas/LeadFormSubmissionListResponse" } } } @@ -21124,7 +21914,7 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], "parameters": [ { @@ -21229,16 +22019,16 @@ } } ], - "operationId": "get/global" + "operationId": "get/lead-form-submissions" }, - "put": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalResponse" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -21295,30 +22085,111 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], "parameters": [], - "operationId": "put/global", + "operationId": "post/lead-form-submissions", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalRequest" + "$ref": "#/components/schemas/LeadFormSubmissionRequest" + } + } + } + } + } + }, + "/lead-form-submissions/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeadFormSubmissionResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Lead-form-submission" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } } - } + ], + "operationId": "get/lead-form-submissions/{id}" }, - "delete": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -21375,21 +22246,41 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], - "parameters": [], - "operationId": "delete/global" - } - }, - "/global/localizations": { - "post": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/lead-form-submissions/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeadFormSubmissionRequest" + } + } + } + } + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalLocalizationResponse" + "type": "integer", + "format": "int64" } } } @@ -21446,23 +22337,24 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], - "parameters": [], - "operationId": "post/global/localizations", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GlobalLocalizationRequest" - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" } } - } + ], + "operationId": "delete/lead-form-submissions/{id}" } }, - "/lead-form-submissions": { + "/notifications": { "get": { "responses": { "200": { @@ -21470,7 +22362,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionListResponse" + "$ref": "#/components/schemas/NotificationListResponse" } } } @@ -21527,7 +22419,7 @@ } }, "tags": [ - "Lead-form-submission" + "Notification" ], "parameters": [ { @@ -21632,7 +22524,7 @@ } } ], - "operationId": "get/lead-form-submissions" + "operationId": "get/notifications" }, "post": { "responses": { @@ -21641,7 +22533,168 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NotificationResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Notification" + ], + "parameters": [], + "operationId": "post/notifications", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationRequest" + } + } + } + } + } + }, + "/notifications/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Notification" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/notifications/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -21696,33 +22749,43 @@ } } } - }, - "tags": [ - "Lead-form-submission" + }, + "tags": [ + "Notification" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } ], - "parameters": [], - "operationId": "post/lead-form-submissions", + "operationId": "put/notifications/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" + "$ref": "#/components/schemas/NotificationRequest" } } } } - } - }, - "/lead-form-submissions/{id}": { - "get": { + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "type": "integer", + "format": "int64" } } } @@ -21779,7 +22842,7 @@ } }, "tags": [ - "Lead-form-submission" + "Notification" ], "parameters": [ { @@ -21793,16 +22856,18 @@ } } ], - "operationId": "get/lead-form-submissions/{id}" - }, - "put": { + "operationId": "delete/notifications/{id}" + } + }, + "/notification-list/{account}": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -21859,11 +22924,11 @@ } }, "tags": [ - "Lead-form-submission" + "Notification" ], "parameters": [ { - "name": "id", + "name": "account", "in": "path", "description": "", "deprecated": false, @@ -21873,27 +22938,18 @@ } } ], - "operationId": "put/lead-form-submissions/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" - } - } - } - } - }, - "delete": { + "operationId": "get/notification-list/{account}" + } + }, + "/push-notifications": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -21950,24 +23006,13 @@ } }, "tags": [ - "Lead-form-submission" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notification" ], - "operationId": "delete/lead-form-submissions/{id}" + "parameters": [], + "operationId": "get/push-notifications" } }, - "/notifications": { + "/notification-templates": { "get": { "responses": { "200": { @@ -21975,7 +23020,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationListResponse" + "$ref": "#/components/schemas/NotificationTemplateListResponse" } } } @@ -22032,7 +23077,7 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { @@ -22137,7 +23182,7 @@ } } ], - "operationId": "get/notifications" + "operationId": "get/notification-templates" }, "post": { "responses": { @@ -22146,168 +23191,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Notification" - ], - "parameters": [], - "operationId": "post/notifications", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationRequest" - } - } - } - } - } - }, - "/notifications/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Notification" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/notifications/{id}" - }, - "put": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -22359,46 +23243,36 @@ "schema": { "$ref": "#/components/schemas/Error" } - } - } - } - }, - "tags": [ - "Notification" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" + } } } + }, + "tags": [ + "Notification-template" ], - "operationId": "put/notifications/{id}", + "parameters": [], + "operationId": "post/notification-templates", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationRequest" + "$ref": "#/components/schemas/NotificationTemplateRequest" } } } } - }, - "delete": { + } + }, + "/notification-templates/{id}": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -22455,7 +23329,7 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { @@ -22469,18 +23343,16 @@ } } ], - "operationId": "delete/notifications/{id}" - } - }, - "/notification-list/{account}": { - "get": { + "operationId": "get/notification-templates/{id}" + }, + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -22537,11 +23409,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -22551,18 +23423,27 @@ } } ], - "operationId": "get/notification-list/{account}" - } - }, - "/push-notifications/{account}": { - "get": { + "operationId": "put/notification-templates/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationTemplateRequest" + } + } + } + } + }, + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "type": "integer", + "format": "int64" } } } @@ -22619,11 +23500,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -22633,10 +23514,10 @@ } } ], - "operationId": "get/push-notifications/{account}" + "operationId": "delete/notification-templates/{id}" } }, - "/notification-templates": { + "/notifications-consumer": { "get": { "responses": { "200": { @@ -22644,7 +23525,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateListResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -22701,7 +23582,7 @@ } }, "tags": [ - "Notification-template" + "Notifications-consumer" ], "parameters": [ { @@ -22806,168 +23687,7 @@ } } ], - "operationId": "get/notification-templates" - }, - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Notification-template" - ], - "parameters": [], - "operationId": "post/notification-templates", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" - } - } - } - } - } - }, - "/notification-templates/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Notification-template" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/notification-templates/{id}" + "operationId": "get/notifications-consumer" }, "put": { "responses": { @@ -22976,7 +23696,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -23033,27 +23753,16 @@ } }, "tags": [ - "Notification-template" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notifications-consumer" ], - "operationId": "put/notification-templates/{id}", + "parameters": [], + "operationId": "put/notifications-consumer", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" + "$ref": "#/components/schemas/NotificationsConsumerRequest" } } } @@ -23124,21 +23833,10 @@ } }, "tags": [ - "Notification-template" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notifications-consumer" ], - "operationId": "delete/notification-templates/{id}" + "parameters": [], + "operationId": "delete/notifications-consumer" } }, "/pages": {