From 58752a12218d1941eb51dca48f4a3181284462fa Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Fri, 16 Aug 2024 15:05:13 +0100 Subject: [PATCH 1/3] Remove addresses --- .../solver/content-types/solver/schema.json | 9 ------ .../1.0.0/full_documentation.json | 28 +------------------ 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/src/api/solver/content-types/solver/schema.json b/src/api/solver/content-types/solver/schema.json index 36b917f..79a6479 100644 --- a/src/api/solver/content-types/solver/schema.json +++ b/src/api/solver/content-types/solver/schema.json @@ -16,15 +16,6 @@ "type": "string", "required": true }, - "address": { - "type": "string", - "regex": "^(0x)?[0-9a-fA-F]{40}$", - "required": true - }, - "payoutAddress": { - "type": "string", - "regex": "^(0x)?[0-9a-fA-F]{40}$" - }, "networks": { "type": "relation", "relation": "manyToMany", 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 a13c3f4..40c7be4 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-08-06T12:36:58.099Z" + "x-generation-date": "2024-08-16T14:04:42.137Z" }, "x-strapi-config": { "path": "/documentation", @@ -11807,12 +11807,6 @@ "displayName": { "type": "string" }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, "networks": { "type": "object", "properties": { @@ -17386,7 +17380,6 @@ "data": { "required": [ "displayName", - "address", "active", "solverId" ], @@ -17395,12 +17388,6 @@ "displayName": { "type": "string" }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, "networks": { "type": "array", "items": { @@ -17495,7 +17482,6 @@ "type": "object", "required": [ "displayName", - "address", "active", "solverId" ], @@ -17503,12 +17489,6 @@ "displayName": { "type": "string" }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, "networks": { "type": "object", "properties": { @@ -17546,12 +17526,6 @@ "displayName": { "type": "string" }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, "networks": { "type": "object", "properties": { From 4f7988d06e612aa8812fcd911197b07c283ec0a6 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Fri, 16 Aug 2024 15:26:18 +0100 Subject: [PATCH 2/3] Remodel solvers --- .../network/content-types/network/schema.json | 8 +- .../content-types/solver-network/schema.json | 41 + .../controllers/solver-network.ts | 7 + .../documentation/1.0.0/solver-network.json | 507 ++ .../solver-network/routes/solver-network.ts | 7 + .../solver-network/services/solver-network.ts | 7 + .../solver/content-types/solver/schema.json | 12 +- .../1.0.0/full_documentation.json | 6530 +++++++++++------ 8 files changed, 4715 insertions(+), 2404 deletions(-) create mode 100644 src/api/solver-network/content-types/solver-network/schema.json create mode 100644 src/api/solver-network/controllers/solver-network.ts create mode 100644 src/api/solver-network/documentation/1.0.0/solver-network.json create mode 100644 src/api/solver-network/routes/solver-network.ts create mode 100644 src/api/solver-network/services/solver-network.ts diff --git a/src/api/network/content-types/network/schema.json b/src/api/network/content-types/network/schema.json index fb123fd..60a4e3a 100644 --- a/src/api/network/content-types/network/schema.json +++ b/src/api/network/content-types/network/schema.json @@ -20,11 +20,11 @@ "chainId": { "type": "integer" }, - "solvers": { + "solver_networks": { "type": "relation", - "relation": "manyToMany", - "target": "api::solver.solver", - "mappedBy": "networks" + "relation": "oneToMany", + "target": "api::solver-network.solver-network", + "mappedBy": "network" } } } diff --git a/src/api/solver-network/content-types/solver-network/schema.json b/src/api/solver-network/content-types/solver-network/schema.json new file mode 100644 index 0000000..8f8f6b6 --- /dev/null +++ b/src/api/solver-network/content-types/solver-network/schema.json @@ -0,0 +1,41 @@ +{ + "kind": "collectionType", + "collectionName": "solver_networks", + "info": { + "singularName": "solver-network", + "pluralName": "solver-networks", + "displayName": "Solver Network", + "description": "" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": {}, + "attributes": { + "solver": { + "type": "relation", + "relation": "manyToOne", + "target": "api::solver.solver", + "inversedBy": "solver_networks" + }, + "network": { + "type": "relation", + "relation": "manyToOne", + "target": "api::network.network", + "inversedBy": "solver_networks" + }, + "address": { + "type": "string", + "regex": "^(0x)?[0-9a-fA-F]{40}$" + }, + "payoutAddress": { + "type": "string", + "regex": "^(0x)?[0-9a-fA-F]{40}$" + }, + "active": { + "type": "boolean", + "default": true, + "required": true + } + } +} diff --git a/src/api/solver-network/controllers/solver-network.ts b/src/api/solver-network/controllers/solver-network.ts new file mode 100644 index 0000000..8127634 --- /dev/null +++ b/src/api/solver-network/controllers/solver-network.ts @@ -0,0 +1,7 @@ +/** + * solver-network controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::solver-network.solver-network'); diff --git a/src/api/solver-network/documentation/1.0.0/solver-network.json b/src/api/solver-network/documentation/1.0.0/solver-network.json new file mode 100644 index 0000000..179874b --- /dev/null +++ b/src/api/solver-network/documentation/1.0.0/solver-network.json @@ -0,0 +1,507 @@ +{ + "/solver-networks": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkListResponse" + } + } + } + }, + "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": [ + "Solver-network" + ], + "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/solver-networks" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkResponse" + } + } + } + }, + "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": [ + "Solver-network" + ], + "parameters": [], + "operationId": "post/solver-networks", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkRequest" + } + } + } + } + } + }, + "/solver-networks/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkResponse" + } + } + } + }, + "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": [ + "Solver-network" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/solver-networks/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkResponse" + } + } + } + }, + "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": [ + "Solver-network" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/solver-networks/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SolverNetworkRequest" + } + } + } + } + }, + "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": [ + "Solver-network" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/solver-networks/{id}" + } + } +} diff --git a/src/api/solver-network/routes/solver-network.ts b/src/api/solver-network/routes/solver-network.ts new file mode 100644 index 0000000..a2b87bb --- /dev/null +++ b/src/api/solver-network/routes/solver-network.ts @@ -0,0 +1,7 @@ +/** + * solver-network router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::solver-network.solver-network'); diff --git a/src/api/solver-network/services/solver-network.ts b/src/api/solver-network/services/solver-network.ts new file mode 100644 index 0000000..c91fdb1 --- /dev/null +++ b/src/api/solver-network/services/solver-network.ts @@ -0,0 +1,7 @@ +/** + * solver-network service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::solver-network.solver-network'); diff --git a/src/api/solver/content-types/solver/schema.json b/src/api/solver/content-types/solver/schema.json index 79a6479..b764c5b 100644 --- a/src/api/solver/content-types/solver/schema.json +++ b/src/api/solver/content-types/solver/schema.json @@ -16,12 +16,6 @@ "type": "string", "required": true }, - "networks": { - "type": "relation", - "relation": "manyToMany", - "target": "api::network.network", - "inversedBy": "solvers" - }, "active": { "type": "boolean", "default": true, @@ -48,6 +42,12 @@ "solverId": { "type": "string", "required": true + }, + "solver_networks": { + "type": "relation", + "relation": "oneToMany", + "target": "api::solver-network.solver-network", + "mappedBy": "solver" } } } 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 40c7be4..2fd3a0e 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-08-16T14:04:42.137Z" + "x-generation-date": "2024-08-16T14:22:34.630Z" }, "x-strapi-config": { "path": "/documentation", @@ -11714,7 +11714,7 @@ "chainId": { "type": "integer" }, - "solvers": { + "solver_networks": { "type": "array", "items": { "oneOf": [ @@ -11790,7 +11790,7 @@ "chainId": { "type": "integer" }, - "solvers": { + "solver_networks": { "type": "object", "properties": { "data": { @@ -11804,261 +11804,583 @@ "attributes": { "type": "object", "properties": { - "displayName": { - "type": "string" - }, - "networks": { + "solver": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "chainId": { - "type": "integer" - }, - "solvers": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "name": { + "type": "string" }, - "attributes": { + "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": {} - } - } - } - } - } - }, - "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": { + "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": { - "id": { - "type": "number" + "name": { + "type": "string" }, - "attributes": { + "pathId": { + "type": "integer" + }, + "parent": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "description": { - "type": "string" - }, - "users": { + "data": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { + "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": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} } } } - }, - "permissions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + } + } + }, + "files": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "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" }, - "attributes": { + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { "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": {} - } + "data": { + "type": "array", + "items": { + "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": {} - } - } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } - }, - "updatedBy": { + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "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": {} + } + } + } + } }, - "attributes": { + "updatedBy": { "type": "object", - "properties": {} + "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": { + } + } + }, + "path": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} } } - }, - "updatedBy": { + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} } } } @@ -12068,51 +12390,48 @@ } } } - }, - "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": {} - } + } + }, + "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": {} - } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -12122,11 +12441,26 @@ } } } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -12140,6 +12474,48 @@ } } } + }, + "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": {} + } + } + } + } } } } @@ -12147,10 +12523,7 @@ } } }, - "active": { - "type": "boolean" - }, - "image": { + "network": { "type": "object", "properties": { "data": { @@ -12165,43 +12538,10 @@ "name": { "type": "string" }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { + "chainId": { "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": { + "solver_networks": { "type": "object", "properties": { "data": { @@ -12221,266 +12561,15 @@ } } }, - "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": { - "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": {} - } - } - } - } - }, - "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": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { "data": { @@ -12520,17 +12609,14 @@ } } }, - "organization": { - "type": "string" - }, - "website": { + "address": { "type": "string" }, - "description": { + "payoutAddress": { "type": "string" }, - "solverId": { - "type": "string" + "active": { + "type": "boolean" }, "createdAt": { "type": "string", @@ -17388,20 +17474,6 @@ "displayName": { "type": "string" }, - "networks": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - } - }, "active": { "type": "boolean" }, @@ -17427,6 +17499,20 @@ }, "solverId": { "type": "string" + }, + "solver_networks": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } } } } @@ -17489,11 +17575,647 @@ "displayName": { "type": "string" }, - "networks": { + "active": { + "type": "boolean" + }, + "image": { "type": "object", "properties": { "data": { - "type": "array", + "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": { + "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": {} + } + } + } + } + } + } + } + } + } + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", "items": { "type": "object", "properties": { @@ -17503,145 +18225,755 @@ "attributes": { "type": "object", "properties": { - "name": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "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": {} + } + } + } + } + } + } + } + } + } + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "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": {} + } + } + } + } + } + } + } + } + } + } + }, + "network": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "chainId": { + "type": "integer" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "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": {} + } + } + } + } + } + } + } + } + } + } + }, + "address": { + "type": "string" + }, + "payoutAddress": { "type": "string" }, - "chainId": { - "type": "integer" + "active": { + "type": "boolean" + }, + "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": {} + } + } + } + } }, - "solvers": { + "updatedBy": { "type": "object", "properties": { "data": { - "type": "array", - "items": { + "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": {} + } + } + } + } + } + } + }, + "SolverResponseDataObject": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/Solver" + } + } + }, + "SolverResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SolverResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "SolverNetworkRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "active" + ], + "type": "object", + "properties": { + "solver": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "network": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + } + } + } + } + }, + "SolverNetworkListResponseDataItem": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/SolverNetwork" + } + } + }, + "SolverNetworkListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SolverNetworkListResponseDataItem" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } + } + } + } + }, + "SolverNetwork": { + "type": "object", + "required": [ + "active" + ], + "properties": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "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" }, - "attributes": { + "provider_metadata": {}, + "related": { "type": "object", "properties": { - "displayName": { - "type": "string" - }, - "networks": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} } } } - }, - "active": { - "type": "boolean" - }, - "image": { + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { "type": "object", "properties": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "name": { + "type": "string" }, - "attributes": { + "pathId": { + "type": "integer" + }, + "parent": { "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": { + "data": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { + "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": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "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": { + } + } + }, + "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": { @@ -17654,331 +18986,189 @@ } } } - }, - "children": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { + } + }, + "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": { - "id": { - "type": "number" + "firstname": { + "type": "string" }, - "attributes": { - "type": "object", - "properties": {} - } - } - } - } - } - }, - "files": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" + "lastname": { + "type": "string" }, - "attributes": { + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { "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": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", "properties": { - "id": { - "type": "number" + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" }, - "attributes": { + "users": { "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": { + "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": { - "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": {} - } + "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": {} } } } @@ -17989,51 +19179,45 @@ } } } - }, - "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": {} - } + } + }, + "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": {} } } } @@ -18043,21 +19227,52 @@ } } } - }, - "updatedBy": { + } + } + }, + "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": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -18067,48 +19282,20 @@ } } } - }, - "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": {} - } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} } } } @@ -18118,39 +19305,178 @@ } } } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { + } + } + }, + "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": { - "data": { + "id": { + "type": "number" + }, + "attributes": { "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} - } - } + "properties": {} } } - }, - "updatedBy": { - "type": "object", - "properties": { - "data": { + } + } + } + } + } + } + } + } + }, + "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": {} + } + } + } + } + } + } + } + } + } + } + }, + "organization": { + "type": "string" + }, + "website": { + "type": "string" + }, + "description": { + "type": "string" + }, + "solverId": { + "type": "string" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "solver": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "network": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "chainId": { + "type": "integer" + }, + "solver_networks": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { "type": "object", "properties": { "id": { @@ -18164,62 +19490,101 @@ } } } + }, + "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": {} + } + } + } + } } } } } } - }, - "organization": { - "type": "string" - }, - "website": { - "type": "string" - }, - "description": { - "type": "string" - }, - "solverId": { - "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": {} - } + } + }, + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "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": {} } } } @@ -18230,150 +19595,8 @@ } } } - }, - "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": {} - } - } - } - } - } - } - } - } - } - } - } - }, - "active": { - "type": "boolean" - }, - "image": { - "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" @@ -18422,17 +19645,31 @@ } } }, - "organization": { - "type": "string" + "network": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } }, - "website": { + "address": { "type": "string" }, - "description": { + "payoutAddress": { "type": "string" }, - "solverId": { - "type": "string" + "active": { + "type": "boolean" }, "createdAt": { "type": "string", @@ -18478,22 +19715,22 @@ } } }, - "SolverResponseDataObject": { + "SolverNetworkResponseDataObject": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/Solver" + "$ref": "#/components/schemas/SolverNetwork" } } }, - "SolverResponse": { + "SolverNetworkResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/SolverResponseDataObject" + "$ref": "#/components/schemas/SolverNetworkResponseDataObject" }, "meta": { "type": "object" @@ -20833,237 +22070,742 @@ } } }, - "TelegramSubscriptionResponseDataObject": { + "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" }, - "attributes": { - "$ref": "#/components/schemas/TelegramSubscription" + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" } } }, - "TelegramSubscriptionResponse": { + "Users-Permissions-User": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" + "id": { + "type": "number", + "example": 1 }, - "meta": { - "type": "object" + "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" } } }, - "UploadFile": { + "Users-Permissions-UserRegistration": { + "type": "object", "properties": { - "id": { - "type": "number" + "jwt": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" }, - "name": { - "type": "string" + "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" + } + } + } }, - "alternativeText": { - "type": "string" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "caption": { - "type": "string" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "width": { - "type": "number", - "format": "integer" + "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": "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" + } }, - "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" + } + } + ], + "operationId": "put/articles/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleRequest" + } + } } } }, - "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" - } - } + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" } } } - } - } - } - }, - "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" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } - }, - "example": { - "name": "foo", - "description": "role foo", - "permissions": { - "api::content-type.content-type": { - "controllers": { - "controllerA": { - "find": { - "enabled": true - } - } - } + } + }, + "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": { @@ -21071,7 +22813,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleListResponse" + "$ref": "#/components/schemas/AuthorListResponse" } } } @@ -21128,7 +22870,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -21233,7 +22975,7 @@ } } ], - "operationId": "get/articles" + "operationId": "get/authors" }, "post": { "responses": { @@ -21242,7 +22984,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -21299,23 +23041,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": { @@ -21323,7 +23065,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -21380,7 +23122,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -21394,7 +23136,7 @@ } } ], - "operationId": "get/articles/{id}" + "operationId": "get/authors/{id}" }, "put": { "responses": { @@ -21403,7 +23145,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -21460,7 +23202,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -21474,13 +23216,13 @@ } } ], - "operationId": "put/articles/{id}", + "operationId": "put/authors/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } @@ -21551,7 +23293,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -21565,10 +23307,10 @@ } } ], - "operationId": "delete/articles/{id}" + "operationId": "delete/authors/{id}" } }, - "/authors": { + "/categories": { "get": { "responses": { "200": { @@ -21576,7 +23318,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorListResponse" + "$ref": "#/components/schemas/CategoryListResponse" } } } @@ -21633,7 +23375,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -21738,7 +23480,7 @@ } } ], - "operationId": "get/authors" + "operationId": "get/categories" }, "post": { "responses": { @@ -21747,7 +23489,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -21804,23 +23546,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": { @@ -21828,7 +23570,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -21885,7 +23627,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -21899,7 +23641,7 @@ } } ], - "operationId": "get/authors/{id}" + "operationId": "get/categories/{id}" }, "put": { "responses": { @@ -21908,7 +23650,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -21965,7 +23707,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -21979,13 +23721,13 @@ } } ], - "operationId": "put/authors/{id}", + "operationId": "put/categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } @@ -22056,7 +23798,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -22070,10 +23812,10 @@ } } ], - "operationId": "delete/authors/{id}" + "operationId": "delete/categories/{id}" } }, - "/categories": { + "/faq-categories": { "get": { "responses": { "200": { @@ -22081,7 +23823,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryListResponse" + "$ref": "#/components/schemas/FaqCategoryListResponse" } } } @@ -22138,7 +23880,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -22243,7 +23985,7 @@ } } ], - "operationId": "get/categories" + "operationId": "get/faq-categories" }, "post": { "responses": { @@ -22252,7 +23994,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -22309,23 +24051,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": { @@ -22333,7 +24075,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -22390,7 +24132,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -22404,7 +24146,7 @@ } } ], - "operationId": "get/categories/{id}" + "operationId": "get/faq-categories/{id}" }, "put": { "responses": { @@ -22413,7 +24155,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/FaqCategoryResponse" } } } @@ -22470,7 +24212,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -22484,13 +24226,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" } } } @@ -22561,7 +24303,7 @@ } }, "tags": [ - "Category" + "Faq-category" ], "parameters": [ { @@ -22575,10 +24317,10 @@ } } ], - "operationId": "delete/categories/{id}" + "operationId": "delete/faq-categories/{id}" } }, - "/faq-categories": { + "/faq-questions": { "get": { "responses": { "200": { @@ -22586,7 +24328,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryListResponse" + "$ref": "#/components/schemas/FaqQuestionListResponse" } } } @@ -22643,7 +24385,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -22748,7 +24490,7 @@ } } ], - "operationId": "get/faq-categories" + "operationId": "get/faq-questions" }, "post": { "responses": { @@ -22757,7 +24499,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -22814,23 +24556,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": { @@ -22838,7 +24580,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -22895,7 +24637,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -22909,7 +24651,7 @@ } } ], - "operationId": "get/faq-categories/{id}" + "operationId": "get/faq-questions/{id}" }, "put": { "responses": { @@ -22918,7 +24660,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqCategoryResponse" + "$ref": "#/components/schemas/FaqQuestionResponse" } } } @@ -22975,7 +24717,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -22989,13 +24731,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" } } } @@ -23066,7 +24808,7 @@ } }, "tags": [ - "Faq-category" + "Faq-question" ], "parameters": [ { @@ -23080,10 +24822,10 @@ } } ], - "operationId": "delete/faq-categories/{id}" + "operationId": "delete/faq-questions/{id}" } }, - "/faq-questions": { + "/global": { "get": { "responses": { "200": { @@ -23091,7 +24833,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionListResponse" + "$ref": "#/components/schemas/GlobalResponse" } } } @@ -23148,7 +24890,7 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [ { @@ -23253,16 +24995,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" } } } @@ -23319,111 +25061,30 @@ } }, "tags": [ - "Faq-question" + "Global" ], "parameters": [], - "operationId": "post/faq-questions", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" - } - } - } - } - } - }, - "/faq-questions/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" - } - } - } - }, - "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": "put/global", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalRequest" + } } } - ], - "operationId": "get/faq-questions/{id}" + } }, - "put": { + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FaqQuestionResponse" + "type": "integer", + "format": "int64" } } } @@ -23480,41 +25141,21 @@ } }, "tags": [ - "Faq-question" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Global" ], - "operationId": "put/faq-questions/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FaqQuestionRequest" - } - } - } - } - }, - "delete": { + "parameters": [], + "operationId": "delete/global" + } + }, + "/global/localizations": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/GlobalLocalizationResponse" } } } @@ -23571,24 +25212,23 @@ } }, "tags": [ - "Faq-question" + "Global" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" + "parameters": [], + "operationId": "post/global/localizations", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GlobalLocalizationRequest" + } } } - ], - "operationId": "delete/faq-questions/{id}" + } } }, - "/global": { + "/lead-form-submissions": { "get": { "responses": { "200": { @@ -23596,7 +25236,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalResponse" + "$ref": "#/components/schemas/LeadFormSubmissionListResponse" } } } @@ -23653,7 +25293,7 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], "parameters": [ { @@ -23758,16 +25398,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" } } } @@ -23824,30 +25464,31 @@ } }, "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" } } } } - }, - "delete": { + } + }, + "/lead-form-submissions/{id}": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -23904,21 +25545,30 @@ } }, "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": "get/lead-form-submissions/{id}" + }, + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GlobalLocalizationResponse" + "$ref": "#/components/schemas/LeadFormSubmissionResponse" } } } @@ -23975,23 +25625,115 @@ } }, "tags": [ - "Global" + "Lead-form-submission" ], - "parameters": [], - "operationId": "post/global/localizations", + "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/GlobalLocalizationRequest" + "$ref": "#/components/schemas/LeadFormSubmissionRequest" } } } } + }, + "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": [ + "Lead-form-submission" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/lead-form-submissions/{id}" } }, - "/lead-form-submissions": { + "/networks": { "get": { "responses": { "200": { @@ -23999,7 +25741,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionListResponse" + "$ref": "#/components/schemas/NetworkListResponse" } } } @@ -24056,7 +25798,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -24161,7 +25903,7 @@ } } ], - "operationId": "get/lead-form-submissions" + "operationId": "get/networks" }, "post": { "responses": { @@ -24170,7 +25912,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -24227,23 +25969,23 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [], - "operationId": "post/lead-form-submissions", + "operationId": "post/networks", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" + "$ref": "#/components/schemas/NetworkRequest" } } } } } }, - "/lead-form-submissions/{id}": { + "/networks/{id}": { "get": { "responses": { "200": { @@ -24251,7 +25993,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -24308,7 +26050,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -24322,7 +26064,7 @@ } } ], - "operationId": "get/lead-form-submissions/{id}" + "operationId": "get/networks/{id}" }, "put": { "responses": { @@ -24331,7 +26073,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionResponse" + "$ref": "#/components/schemas/NetworkResponse" } } } @@ -24388,7 +26130,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -24402,13 +26144,13 @@ } } ], - "operationId": "put/lead-form-submissions/{id}", + "operationId": "put/networks/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LeadFormSubmissionRequest" + "$ref": "#/components/schemas/NetworkRequest" } } } @@ -24479,7 +26221,7 @@ } }, "tags": [ - "Lead-form-submission" + "Network" ], "parameters": [ { @@ -24493,10 +26235,10 @@ } } ], - "operationId": "delete/lead-form-submissions/{id}" + "operationId": "delete/networks/{id}" } }, - "/networks": { + "/notifications": { "get": { "responses": { "200": { @@ -24504,7 +26246,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkListResponse" + "$ref": "#/components/schemas/NotificationListResponse" } } } @@ -24561,7 +26303,7 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { @@ -24666,7 +26408,7 @@ } } ], - "operationId": "get/networks" + "operationId": "get/notifications" }, "post": { "responses": { @@ -24675,7 +26417,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -24732,23 +26474,276 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [], - "operationId": "post/networks", + "operationId": "post/notifications", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkRequest" + "$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" + } + } + } + }, + "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": "put/notifications/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationRequest" + } + } + } + } + }, + "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": [ + "Notification" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/notifications/{id}" } }, - "/networks/{id}": { + "/notification-list/{account}": { "get": { "responses": { "200": { @@ -24756,7 +26751,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -24813,11 +26808,11 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { - "name": "id", + "name": "account", "in": "path", "description": "", "deprecated": false, @@ -24827,16 +26822,18 @@ } } ], - "operationId": "get/networks/{id}" - }, - "put": { + "operationId": "get/notification-list/{account}" + } + }, + "/accounts/{account}/notifications": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkResponse" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -24893,11 +26890,11 @@ } }, "tags": [ - "Network" + "Notification" ], "parameters": [ { - "name": "id", + "name": "account", "in": "path", "description": "", "deprecated": false, @@ -24907,27 +26904,18 @@ } } ], - "operationId": "put/networks/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NetworkRequest" - } - } - } - } - }, - "delete": { + "operationId": "get/accounts/{account}/notifications" + } + }, + "/push-notifications": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/NotificationResponse" } } } @@ -24984,24 +26972,13 @@ } }, "tags": [ - "Network" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Notification" ], - "operationId": "delete/networks/{id}" + "parameters": [], + "operationId": "get/push-notifications" } }, - "/notifications": { + "/notification-templates": { "get": { "responses": { "200": { @@ -25009,7 +26986,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationListResponse" + "$ref": "#/components/schemas/NotificationTemplateListResponse" } } } @@ -25066,7 +27043,7 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { @@ -25152,196 +27129,35 @@ { "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" - }, - "post": { - "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": [], - "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": [ + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" + }, { - "name": "id", - "in": "path", - "description": "", + "name": "locale", + "in": "query", + "description": "Locale to apply", "deprecated": false, - "required": true, + "required": false, "schema": { - "type": "number" + "type": "string" } } ], - "operationId": "get/notifications/{id}" + "operationId": "get/notification-templates" }, - "put": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationResponse" + "$ref": "#/components/schemas/NotificationTemplateResponse" } } } @@ -25398,41 +27214,31 @@ } }, "tags": [ - "Notification" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "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" } } } @@ -25489,7 +27295,7 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { @@ -25503,18 +27309,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" } } } @@ -25571,11 +27375,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -25585,18 +27389,27 @@ } } ], - "operationId": "get/notification-list/{account}" - } - }, - "/accounts/{account}/notifications": { - "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" } } } @@ -25653,11 +27466,11 @@ } }, "tags": [ - "Notification" + "Notification-template" ], "parameters": [ { - "name": "account", + "name": "id", "in": "path", "description": "", "deprecated": false, @@ -25667,81 +27480,10 @@ } } ], - "operationId": "get/accounts/{account}/notifications" - } - }, - "/push-notifications": { - "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": [], - "operationId": "get/push-notifications" + "operationId": "delete/notification-templates/{id}" } }, - "/notification-templates": { + "/notifications-consumer": { "get": { "responses": { "200": { @@ -25749,7 +27491,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateListResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -25806,7 +27548,7 @@ } }, "tags": [ - "Notification-template" + "Notifications-consumer" ], "parameters": [ { @@ -25911,16 +27653,16 @@ } } ], - "operationId": "get/notification-templates" + "operationId": "get/notifications-consumer" }, - "post": { + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/NotificationsConsumerResponse" } } } @@ -25977,23 +27719,93 @@ } }, "tags": [ - "Notification-template" + "Notifications-consumer" ], "parameters": [], - "operationId": "post/notification-templates", + "operationId": "put/notifications-consumer", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" + "$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" } }, - "/notification-templates/{id}": { + "/pages": { "get": { "responses": { "200": { @@ -26001,7 +27813,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/PageListResponse" } } } @@ -26058,30 +27870,121 @@ } }, "tags": [ - "Notification-template" + "Page" ], "parameters": [ { - "name": "id", - "in": "path", - "description": "", + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", "deprecated": false, - "required": true, + "required": false, "schema": { - "type": "number" + "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/notification-templates/{id}" + "operationId": "get/pages" }, - "put": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateResponse" + "$ref": "#/components/schemas/PageResponse" } } } @@ -26138,41 +28041,31 @@ } }, "tags": [ - "Notification-template" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } + "Page" ], - "operationId": "put/notification-templates/{id}", + "parameters": [], + "operationId": "post/pages", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationTemplateRequest" + "$ref": "#/components/schemas/PageRequest" } } } } - }, - "delete": { + } + }, + "/pages/{id}": { + "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/PageResponse" } } } @@ -26229,7 +28122,7 @@ } }, "tags": [ - "Notification-template" + "Page" ], "parameters": [ { @@ -26243,18 +28136,16 @@ } } ], - "operationId": "delete/notification-templates/{id}" - } - }, - "/notifications-consumer": { - "get": { + "operationId": "get/pages/{id}" + }, + "put": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationsConsumerResponse" + "$ref": "#/components/schemas/PageResponse" } } } @@ -26311,121 +28202,41 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], "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", + "name": "id", + "in": "path", + "description": "", "deprecated": false, - "required": false, + "required": true, "schema": { - "type": "string" + "type": "number" } - }, - { - "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": "put/pages/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageRequest" + } } } - ], - "operationId": "get/notifications-consumer" + } }, - "put": { + "delete": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationsConsumerResponse" + "type": "integer", + "format": "int64" } } } @@ -26482,30 +28293,32 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], - "parameters": [], - "operationId": "put/notifications-consumer", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationsConsumerRequest" - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" } } - } - }, - "delete": { + ], + "operationId": "delete/pages/{id}" + } + }, + "/pages/{id}/localizations": { + "post": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "integer", - "format": "int64" + "$ref": "#/components/schemas/PageLocalizationResponse" } } } @@ -26562,13 +28375,34 @@ } }, "tags": [ - "Notifications-consumer" + "Page" ], - "parameters": [], - "operationId": "delete/notifications-consumer" + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "post/pages/{id}/localizations", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageLocalizationRequest" + } + } + } + } } }, - "/pages": { + "/product-features": { "get": { "responses": { "200": { @@ -26576,7 +28410,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageListResponse" + "$ref": "#/components/schemas/ProductFeatureListResponse" } } } @@ -26633,7 +28467,7 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -26738,7 +28572,7 @@ } } ], - "operationId": "get/pages" + "operationId": "get/product-features" }, "post": { "responses": { @@ -26747,7 +28581,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -26804,23 +28638,23 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [], - "operationId": "post/pages", + "operationId": "post/product-features", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageRequest" + "$ref": "#/components/schemas/ProductFeatureRequest" } } } } } }, - "/pages/{id}": { + "/product-features/{id}": { "get": { "responses": { "200": { @@ -26828,7 +28662,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -26885,7 +28719,7 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -26899,7 +28733,7 @@ } } ], - "operationId": "get/pages/{id}" + "operationId": "get/product-features/{id}" }, "put": { "responses": { @@ -26908,7 +28742,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageResponse" + "$ref": "#/components/schemas/ProductFeatureResponse" } } } @@ -26965,7 +28799,7 @@ } }, "tags": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -26979,13 +28813,13 @@ } } ], - "operationId": "put/pages/{id}", + "operationId": "put/product-features/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageRequest" + "$ref": "#/components/schemas/ProductFeatureRequest" } } } @@ -27056,89 +28890,7 @@ } }, "tags": [ - "Page" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/pages/{id}" - } - }, - "/pages/{id}/localizations": { - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PageLocalizationResponse" - } - } - } - }, - "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": [ - "Page" + "Product-feature" ], "parameters": [ { @@ -27152,20 +28904,10 @@ } } ], - "operationId": "post/pages/{id}/localizations", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PageLocalizationRequest" - } - } - } - } + "operationId": "delete/product-features/{id}" } }, - "/product-features": { + "/solvers": { "get": { "responses": { "200": { @@ -27173,7 +28915,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureListResponse" + "$ref": "#/components/schemas/SolverListResponse" } } } @@ -27230,7 +28972,7 @@ } }, "tags": [ - "Product-feature" + "Solver" ], "parameters": [ { @@ -27335,7 +29077,7 @@ } } ], - "operationId": "get/product-features" + "operationId": "get/solvers" }, "post": { "responses": { @@ -27344,7 +29086,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/SolverResponse" } } } @@ -27401,23 +29143,23 @@ } }, "tags": [ - "Product-feature" + "Solver" ], "parameters": [], - "operationId": "post/product-features", + "operationId": "post/solvers", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureRequest" + "$ref": "#/components/schemas/SolverRequest" } } } } } }, - "/product-features/{id}": { + "/solvers/{id}": { "get": { "responses": { "200": { @@ -27425,7 +29167,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/SolverResponse" } } } @@ -27482,7 +29224,7 @@ } }, "tags": [ - "Product-feature" + "Solver" ], "parameters": [ { @@ -27496,7 +29238,7 @@ } } ], - "operationId": "get/product-features/{id}" + "operationId": "get/solvers/{id}" }, "put": { "responses": { @@ -27505,7 +29247,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureResponse" + "$ref": "#/components/schemas/SolverResponse" } } } @@ -27562,7 +29304,7 @@ } }, "tags": [ - "Product-feature" + "Solver" ], "parameters": [ { @@ -27576,13 +29318,13 @@ } } ], - "operationId": "put/product-features/{id}", + "operationId": "put/solvers/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductFeatureRequest" + "$ref": "#/components/schemas/SolverRequest" } } } @@ -27653,7 +29395,7 @@ } }, "tags": [ - "Product-feature" + "Solver" ], "parameters": [ { @@ -27667,10 +29409,10 @@ } } ], - "operationId": "delete/product-features/{id}" + "operationId": "delete/solvers/{id}" } }, - "/solvers": { + "/solver-networks": { "get": { "responses": { "200": { @@ -27678,7 +29420,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverListResponse" + "$ref": "#/components/schemas/SolverNetworkListResponse" } } } @@ -27735,7 +29477,7 @@ } }, "tags": [ - "Solver" + "Solver-network" ], "parameters": [ { @@ -27840,7 +29582,7 @@ } } ], - "operationId": "get/solvers" + "operationId": "get/solver-networks" }, "post": { "responses": { @@ -27849,7 +29591,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverResponse" + "$ref": "#/components/schemas/SolverNetworkResponse" } } } @@ -27906,23 +29648,23 @@ } }, "tags": [ - "Solver" + "Solver-network" ], "parameters": [], - "operationId": "post/solvers", + "operationId": "post/solver-networks", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverRequest" + "$ref": "#/components/schemas/SolverNetworkRequest" } } } } } }, - "/solvers/{id}": { + "/solver-networks/{id}": { "get": { "responses": { "200": { @@ -27930,7 +29672,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverResponse" + "$ref": "#/components/schemas/SolverNetworkResponse" } } } @@ -27987,7 +29729,7 @@ } }, "tags": [ - "Solver" + "Solver-network" ], "parameters": [ { @@ -28001,7 +29743,7 @@ } } ], - "operationId": "get/solvers/{id}" + "operationId": "get/solver-networks/{id}" }, "put": { "responses": { @@ -28010,7 +29752,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverResponse" + "$ref": "#/components/schemas/SolverNetworkResponse" } } } @@ -28067,7 +29809,7 @@ } }, "tags": [ - "Solver" + "Solver-network" ], "parameters": [ { @@ -28081,13 +29823,13 @@ } } ], - "operationId": "put/solvers/{id}", + "operationId": "put/solver-networks/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SolverRequest" + "$ref": "#/components/schemas/SolverNetworkRequest" } } } @@ -28158,7 +29900,7 @@ } }, "tags": [ - "Solver" + "Solver-network" ], "parameters": [ { @@ -28172,7 +29914,7 @@ } } ], - "operationId": "delete/solvers/{id}" + "operationId": "delete/solver-networks/{id}" } }, "/tags": { From 20079185b305877abef1ae695143b006eef37d10 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Fri, 16 Aug 2024 15:42:00 +0100 Subject: [PATCH 3/3] Add environment --- .../content-types/environment/schema.json | 19 + .../environment/controllers/environment.ts | 7 + .../documentation/1.0.0/environment.json | 507 +++++ src/api/environment/routes/environment.ts | 7 + src/api/environment/services/environment.ts | 7 + .../content-types/solver-network/schema.json | 5 + .../1.0.0/full_documentation.json | 2009 +++++++++++++---- 7 files changed, 2113 insertions(+), 448 deletions(-) create mode 100644 src/api/environment/content-types/environment/schema.json create mode 100644 src/api/environment/controllers/environment.ts create mode 100644 src/api/environment/documentation/1.0.0/environment.json create mode 100644 src/api/environment/routes/environment.ts create mode 100644 src/api/environment/services/environment.ts diff --git a/src/api/environment/content-types/environment/schema.json b/src/api/environment/content-types/environment/schema.json new file mode 100644 index 0000000..b8ec5c1 --- /dev/null +++ b/src/api/environment/content-types/environment/schema.json @@ -0,0 +1,19 @@ +{ + "kind": "collectionType", + "collectionName": "environments", + "info": { + "singularName": "environment", + "pluralName": "environments", + "displayName": "Environment" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": {}, + "attributes": { + "name": { + "type": "string", + "required": true + } + } +} diff --git a/src/api/environment/controllers/environment.ts b/src/api/environment/controllers/environment.ts new file mode 100644 index 0000000..351d62f --- /dev/null +++ b/src/api/environment/controllers/environment.ts @@ -0,0 +1,7 @@ +/** + * environment controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::environment.environment'); diff --git a/src/api/environment/documentation/1.0.0/environment.json b/src/api/environment/documentation/1.0.0/environment.json new file mode 100644 index 0000000..9e98253 --- /dev/null +++ b/src/api/environment/documentation/1.0.0/environment.json @@ -0,0 +1,507 @@ +{ + "/environments": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentListResponse" + } + } + } + }, + "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": [ + "Environment" + ], + "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/environments" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "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": [ + "Environment" + ], + "parameters": [], + "operationId": "post/environments", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentRequest" + } + } + } + } + } + }, + "/environments/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "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": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/environments/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "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": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/environments/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentRequest" + } + } + } + } + }, + "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": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/environments/{id}" + } + } +} diff --git a/src/api/environment/routes/environment.ts b/src/api/environment/routes/environment.ts new file mode 100644 index 0000000..f380c57 --- /dev/null +++ b/src/api/environment/routes/environment.ts @@ -0,0 +1,7 @@ +/** + * environment router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::environment.environment'); diff --git a/src/api/environment/services/environment.ts b/src/api/environment/services/environment.ts new file mode 100644 index 0000000..111c7e1 --- /dev/null +++ b/src/api/environment/services/environment.ts @@ -0,0 +1,7 @@ +/** + * environment service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::environment.environment'); diff --git a/src/api/solver-network/content-types/solver-network/schema.json b/src/api/solver-network/content-types/solver-network/schema.json index 8f8f6b6..c05a9e5 100644 --- a/src/api/solver-network/content-types/solver-network/schema.json +++ b/src/api/solver-network/content-types/solver-network/schema.json @@ -36,6 +36,11 @@ "type": "boolean", "default": true, "required": true + }, + "environment": { + "type": "relation", + "relation": "oneToOne", + "target": "api::environment.environment" } } } 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 2fd3a0e..2d979fd 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-08-16T14:22:34.630Z" + "x-generation-date": "2024-08-16T14:32:39.358Z" }, "x-strapi-config": { "path": "/documentation", @@ -6980,7 +6980,7 @@ } } }, - "FaqCategoryRequest": { + "EnvironmentRequest": { "type": "object", "required": [ "data" @@ -6988,50 +6988,35 @@ "properties": { "data": { "required": [ - "name", - "description" + "name" ], "type": "object", "properties": { "name": { "type": "string" - }, - "description": { - "type": "string" - }, - "image": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" } } } } }, - "FaqCategoryListResponseDataItem": { + "EnvironmentListResponseDataItem": { "type": "object", "properties": { "id": { "type": "number" }, "attributes": { - "$ref": "#/components/schemas/FaqCategory" + "$ref": "#/components/schemas/Environment" } } }, - "FaqCategoryListResponse": { + "EnvironmentListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/FaqCategoryListResponseDataItem" + "$ref": "#/components/schemas/EnvironmentListResponseDataItem" } }, "meta": { @@ -7060,20 +7045,24 @@ } } }, - "FaqCategory": { + "Environment": { "type": "object", "required": [ - "name", - "description" + "name" ], "properties": { "name": { "type": "string" }, - "description": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "image": { + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { "type": "object", "properties": { "data": { @@ -7085,46 +7074,29 @@ "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": { @@ -7137,127 +7109,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": {} - } - } - } - } - }, - "children": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", - "properties": {} + "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": { @@ -7270,19 +7177,503 @@ } } } - } - }, - "folder": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "attributes": { - "type": "object", + }, + "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": {} + } + } + } + } + } + } + }, + "EnvironmentResponseDataObject": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/Environment" + } + } + }, + "EnvironmentResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/EnvironmentResponseDataObject" + }, + "meta": { + "type": "object" + } + } + }, + "FaqCategoryRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "name", + "description" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "image": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } + } + } + } + }, + "FaqCategoryListResponseDataItem": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "$ref": "#/components/schemas/FaqCategory" + } + } + }, + "FaqCategoryListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FaqCategoryListResponseDataItem" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } + } + } + } + }, + "FaqCategory": { + "type": "object", + "required": [ + "name", + "description" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "image": { + "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": { + "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": {} } } @@ -12618,6 +13009,69 @@ "active": { "type": "boolean" }, + "environment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "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" @@ -18557,6 +19011,69 @@ "active": { "type": "boolean" }, + "environment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "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" @@ -18714,6 +19231,17 @@ }, "active": { "type": "boolean" + }, + "environment": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" } } } @@ -19539,15 +20067,78 @@ } } }, - "address": { - "type": "string" - }, - "payoutAddress": { - "type": "string" - }, - "active": { - "type": "boolean" - }, + "address": { + "type": "string" + }, + "payoutAddress": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "environment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "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" @@ -19671,6 +20262,23 @@ "active": { "type": "boolean" }, + "environment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -22051,256 +22659,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" } } } - } - } - }, - "TelegramSubscriptionResponseDataObject": { - "type": "object", - "properties": { - "id": { - "type": "number" }, - "attributes": { - "$ref": "#/components/schemas/TelegramSubscription" - } - } - }, - "TelegramSubscriptionResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/TelegramSubscriptionResponseDataObject" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "meta": { - "type": "object" - } - } - }, - "UploadFile": { - "properties": { - "id": { - "type": "number" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "name": { - "type": "string" + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } }, - "alternativeText": { - "type": "string" + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "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" + } + } + } + } + }, + "tags": [ + "Article" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } } - } - }, - "Users-Permissions-UserRegistration": { - "type": "object", - "properties": { - "jwt": { - "type": "string", - "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - }, - "user": { - "$ref": "#/components/schemas/Users-Permissions-User" + ], + "operationId": "put/articles/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArticleRequest" + } + } } } }, - "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" - } - } + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" } } } - } - } - } - }, - "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" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } - }, - "example": { - "name": "foo", - "description": "role foo", - "permissions": { - "api::content-type.content-type": { - "controllers": { - "controllerA": { - "find": { - "enabled": true - } - } - } + } + }, + "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": { @@ -22308,7 +23421,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleListResponse" + "$ref": "#/components/schemas/AuthorListResponse" } } } @@ -22365,7 +23478,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -22470,7 +23583,7 @@ } } ], - "operationId": "get/articles" + "operationId": "get/authors" }, "post": { "responses": { @@ -22479,7 +23592,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -22536,23 +23649,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": { @@ -22560,7 +23673,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -22617,7 +23730,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -22631,7 +23744,7 @@ } } ], - "operationId": "get/articles/{id}" + "operationId": "get/authors/{id}" }, "put": { "responses": { @@ -22640,7 +23753,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleResponse" + "$ref": "#/components/schemas/AuthorResponse" } } } @@ -22697,7 +23810,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -22711,13 +23824,13 @@ } } ], - "operationId": "put/articles/{id}", + "operationId": "put/authors/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ArticleRequest" + "$ref": "#/components/schemas/AuthorRequest" } } } @@ -22788,7 +23901,7 @@ } }, "tags": [ - "Article" + "Author" ], "parameters": [ { @@ -22802,10 +23915,10 @@ } } ], - "operationId": "delete/articles/{id}" + "operationId": "delete/authors/{id}" } }, - "/authors": { + "/categories": { "get": { "responses": { "200": { @@ -22813,7 +23926,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorListResponse" + "$ref": "#/components/schemas/CategoryListResponse" } } } @@ -22870,7 +23983,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -22975,7 +24088,7 @@ } } ], - "operationId": "get/authors" + "operationId": "get/categories" }, "post": { "responses": { @@ -22984,7 +24097,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -23041,23 +24154,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": { @@ -23065,7 +24178,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -23122,7 +24235,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -23136,7 +24249,7 @@ } } ], - "operationId": "get/authors/{id}" + "operationId": "get/categories/{id}" }, "put": { "responses": { @@ -23145,7 +24258,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorResponse" + "$ref": "#/components/schemas/CategoryResponse" } } } @@ -23202,7 +24315,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -23216,13 +24329,13 @@ } } ], - "operationId": "put/authors/{id}", + "operationId": "put/categories/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthorRequest" + "$ref": "#/components/schemas/CategoryRequest" } } } @@ -23293,7 +24406,7 @@ } }, "tags": [ - "Author" + "Category" ], "parameters": [ { @@ -23307,10 +24420,10 @@ } } ], - "operationId": "delete/authors/{id}" + "operationId": "delete/categories/{id}" } }, - "/categories": { + "/environments": { "get": { "responses": { "200": { @@ -23318,7 +24431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryListResponse" + "$ref": "#/components/schemas/EnvironmentListResponse" } } } @@ -23375,7 +24488,7 @@ } }, "tags": [ - "Category" + "Environment" ], "parameters": [ { @@ -23480,7 +24593,7 @@ } } ], - "operationId": "get/categories" + "operationId": "get/environments" }, "post": { "responses": { @@ -23489,7 +24602,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -23546,23 +24659,23 @@ } }, "tags": [ - "Category" + "Environment" ], "parameters": [], - "operationId": "post/categories", + "operationId": "post/environments", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/EnvironmentRequest" } } } } } }, - "/categories/{id}": { + "/environments/{id}": { "get": { "responses": { "200": { @@ -23570,7 +24683,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -23627,7 +24740,7 @@ } }, "tags": [ - "Category" + "Environment" ], "parameters": [ { @@ -23641,7 +24754,7 @@ } } ], - "operationId": "get/categories/{id}" + "operationId": "get/environments/{id}" }, "put": { "responses": { @@ -23650,7 +24763,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryResponse" + "$ref": "#/components/schemas/EnvironmentResponse" } } } @@ -23707,7 +24820,7 @@ } }, "tags": [ - "Category" + "Environment" ], "parameters": [ { @@ -23721,13 +24834,13 @@ } } ], - "operationId": "put/categories/{id}", + "operationId": "put/environments/{id}", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CategoryRequest" + "$ref": "#/components/schemas/EnvironmentRequest" } } } @@ -23798,7 +24911,7 @@ } }, "tags": [ - "Category" + "Environment" ], "parameters": [ { @@ -23812,7 +24925,7 @@ } } ], - "operationId": "delete/categories/{id}" + "operationId": "delete/environments/{id}" } }, "/faq-categories": {