From f5466d02e229cc3d56ad6cd0e4cfc4603ecf9bda Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 12 Mar 2024 14:20:43 +0000 Subject: [PATCH] Bump to version 1.2.6 [skip ci] --- helm/Chart.yaml | 4 +- helm/values-dev.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 4511 ++++++++++++++++++++++-------------------- pom.xml | 2 +- 5 files changed, 2401 insertions(+), 2120 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 627a4da..80966bc 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-mocker-config description: A service that permits to configure the mocked responses used by Mocker service type: application -version: 1.34.0 -appVersion: 1.2.5 +version: 1.35.0 +appVersion: 1.2.6 dependencies: - name: microservice-chart version: 3.0.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 02ab2ef..b56f9c2 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-mocker-config - tag: "1.2.5" + tag: "1.2.6" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 4ef1cd3..18ae710 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-mocker-config - tag: "1.2.5" + tag: "1.2.6" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 924bea0..e1e2a51 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,2873 +1,3154 @@ { - "openapi" : "3.0.1", - "info" : { - "title" : "pagoPA Mocker Configurator", - "description" : "A service that permits to configure the mocked responses used by Mocker service", - "termsOfService" : "https://www.pagopa.gov.it/", - "version" : "1.2.5" + "openapi": "3.0.1", + "info": { + "title": "pagoPA Mocker Configurator", + "description": "A service that permits to configure the mocked responses used by Mocker service", + "termsOfService": "https://www.pagopa.gov.it/", + "version": "1.2.6" }, - "servers" : [ { - "url" : "http://localhost:8080" - }, { - "url" : "https://{host}{basePath}", - "variables" : { - "host" : { - "default" : "api.dev.platform.pagopa.it", - "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it" ] - }, - "basePath" : { - "default" : "/mocker-config/api/v1", - "enum" : [ "/mocker-config/auth/api/v1", "/mocker-config/api/v1" ] + "servers": [ + { + "url": "http://localhost:8080" + }, + { + "url": "https://{host}{basePath}", + "variables": { + "host": { + "default": "api.dev.platform.pagopa.it", + "enum": [ + "api.dev.platform.pagopa.it", + "api.uat.platform.pagopa.it" + ] + }, + "basePath": { + "default": "/mocker-config/api/v1", + "enum": [ + "/mocker-config/auth/api/v1", + "/mocker-config/api/v1" + ] + } } } - } ], - "tags" : [ { - "name" : "Archetypes", - "description" : "Everything about Archetypes" - }, { - "name" : "Mock Resources", - "description" : "Everything about Mock Resources" - } ], - "paths" : { - "/archetypes" : { - "get" : { - "tags" : [ "Archetypes" ], - "summary" : "Get paginated list of archetypes", - "operationId" : "getArchetypes", - "parameters" : [ { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "tags": [ + { + "name": "Archetypes", + "description": "Everything about Archetypes" + }, + { + "name": "Mock Resources", + "description": "Everything about Mock Resources" + } + ], + "paths": { + "/archetypes": { + "get": { + "tags": [ + "Archetypes" + ], + "summary": "Get paginated list of archetypes", + "operationId": "getArchetypes", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ArchetypeList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArchetypeList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "post" : { - "tags" : [ "Archetypes" ], - "summary" : "Create a new archetype", - "operationId" : "createArchetype", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Archetype" + "post": { + "tags": [ + "Archetypes" + ], + "summary": "Create a new archetype", + "operationId": "createArchetype", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Archetype" } } }, - "required" : true + "required": true }, - "responses" : { - "201" : { - "description" : "Created", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "201": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Archetype" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Archetype" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "409" : { - "description" : "Conflict", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "delete" : { - "tags" : [ "Archetypes" ], - "summary" : "Delete all existing archetypes by criteria", - "operationId" : "deleteMockResource_1", - "parameters" : [ { - "name" : "subsystem", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "delete": { + "tags": [ + "Archetypes" + ], + "summary": "Delete all existing archetypes by criteria", + "operationId": "deleteMockResource_1", + "parameters": [ + { + "name": "subsystem", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { } + "content": { + "application/json": {} } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/archetypes/import" : { - "post" : { - "tags" : [ "Archetypes" ], - "summary" : "Create multiple archetypes from OpenAPI specification", - "operationId" : "importArchetypesFromOpenAPI", - "parameters" : [ { - "name" : "subsystem", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "multipart/form-data" : { - "schema" : { - "required" : [ "file" ], - "type" : "object", - "properties" : { - "file" : { - "type" : "string", - "description" : "JSON file containing the OpenAPI to analyze", - "format" : "binary" + "/archetypes/import": { + "post": { + "tags": [ + "Archetypes" + ], + "summary": "Create multiple archetypes from OpenAPI specification", + "operationId": "importArchetypesFromOpenAPI", + "parameters": [ + { + "name": "subsystem", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "required": [ + "file" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "JSON file containing the OpenAPI to analyze", + "format": "binary" } } } } }, - "required" : true + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ArchetypeHandlingResult" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArchetypeHandlingResult" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "409" : { - "description" : "Conflict", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "*/*" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "*/*": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/archetypes/{archetypeId}" : { - "get" : { - "tags" : [ "Archetypes" ], - "summary" : "Get detail of a single archetype", - "operationId" : "getArchetype", - "parameters" : [ { - "name" : "archetypeId", - "in" : "path", - "description" : "The identifier related to the archetype", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/archetypes/{archetypeId}": { + "get": { + "tags": [ + "Archetypes" + ], + "summary": "Get detail of a single archetype", + "operationId": "getArchetype", + "parameters": [ + { + "name": "archetypeId", + "in": "path", + "description": "The identifier related to the archetype", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Archetype" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Archetype" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "put" : { - "tags" : [ "Archetypes" ], - "summary" : "Update an existing archetype", - "operationId" : "updateArchetype", - "parameters" : [ { - "name" : "archetypeId", - "in" : "path", - "description" : "The identifier related to the archetype", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Archetype" - } - } - }, - "required" : true + "put": { + "tags": [ + "Archetypes" + ], + "summary": "Update an existing archetype", + "operationId": "updateArchetype", + "parameters": [ + { + "name": "archetypeId", + "in": "path", + "description": "The identifier related to the archetype", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Archetype" + } + } + }, + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Archetype" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Archetype" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/archetypes/{archetypeId}/generate" : { - "post" : { - "tags" : [ "Archetypes" ], - "summary" : "Create a new mock resource starting from archetype", - "operationId" : "createMockResourceFromArchetype", - "parameters" : [ { - "name" : "archetypeId", - "in" : "path", - "description" : "The identifier related to the archetype", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResourceFromArchetype" - } - } - }, - "required" : true + "/archetypes/{archetypeId}/generate": { + "post": { + "tags": [ + "Archetypes" + ], + "summary": "Create a new mock resource starting from archetype", + "operationId": "createMockResourceFromArchetype", + "parameters": [ + { + "name": "archetypeId", + "in": "path", + "description": "The identifier related to the archetype", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResourceFromArchetype" + } + } + }, + "required": true }, - "responses" : { - "201" : { - "description" : "Created", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "201": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "409" : { - "description" : "Conflict", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/info" : { - "get" : { - "tags" : [ "Home" ], - "summary" : "Return the application running status", - "operationId" : "healthCheck", - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/info": { + "get": { + "tags": [ + "Home" + ], + "summary": "Return the application running status", + "operationId": "healthCheck", + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AppInfo" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfo" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/resources" : { - "get" : { - "tags" : [ "Mock Resources" ], - "summary" : "Get paginated list of mock resource", - "operationId" : "getMockResources", - "parameters" : [ { - "name" : "limit", - "in" : "query", - "description" : "The number of elements to be included in the page.", - "required" : true, - "schema" : { - "maximum" : 999, - "type" : "integer", - "format" : "int32", - "default" : 10 - } - }, { - "name" : "page", - "in" : "query", - "description" : "The index of the page, starting from 0.", - "required" : true, - "schema" : { - "minimum" : 0, - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "name", - "in" : "query", - "description" : "The name of the mock resource, used as a search filter.", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "tag", - "in" : "query", - "description" : "The tag of the mock resource, used as a search filter.", - "required" : false, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/resources": { + "get": { + "tags": [ + "Mock Resources" + ], + "summary": "Get paginated list of mock resource", + "operationId": "getMockResources", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of elements to be included in the page.", + "required": true, + "schema": { + "maximum": 999, + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "name": "page", + "in": "query", + "description": "The index of the page, starting from 0.", + "required": true, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } + }, + { + "name": "name", + "in": "query", + "description": "The name of the mock resource, used as a search filter.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "tag", + "in": "query", + "description": "The tag of the mock resource, used as a search filter.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResourceList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResourceList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "post" : { - "tags" : [ "Mock Resources" ], - "summary" : "Create a new mock resource", - "operationId" : "createMockResource", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "post": { + "tags": [ + "Mock Resources" + ], + "summary": "Create a new mock resource", + "operationId": "createMockResource", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } }, - "required" : true + "required": true }, - "responses" : { - "201" : { - "description" : "Created", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "201": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "409" : { - "description" : "Conflict", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/resources/{resourceId}" : { - "get" : { - "tags" : [ "Mock Resources" ], - "summary" : "Get detail of a single mock resource", - "operationId" : "getMockResource", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/resources/{resourceId}": { + "get": { + "tags": [ + "Mock Resources" + ], + "summary": "Get detail of a single mock resource", + "operationId": "getMockResource", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "put" : { - "tags" : [ "Mock Resources" ], - "summary" : "Update an existing mock resource", - "operationId" : "updateMockResource", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" - } - } - }, - "required" : true + "put": { + "tags": [ + "Mock Resources" + ], + "summary": "Update an existing mock resource", + "operationId": "updateMockResource", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" + } + } + }, + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "delete" : { - "tags" : [ "Mock Resources" ], - "summary" : "Delete an existing mock resource", - "operationId" : "deleteMockResource", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" + "delete": { + "tags": [ + "Mock Resources" + ], + "summary": "Delete an existing mock resource", + "operationId": "deleteMockResource", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } } - } ], - "responses" : { - "204" : { - "description" : "No content", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + ], + "responses": { + "204": { + "description": "No content", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/resources/{resourceId}/general-info" : { - "put" : { - "tags" : [ "Mock Resources" ], - "summary" : "Partially update an existing mock resource, changing only the general info", - "operationId" : "updateMockResourceGeneralInfo", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResourceGeneralInfo" - } - } - }, - "required" : true + "/resources/{resourceId}/general-info": { + "put": { + "tags": [ + "Mock Resources" + ], + "summary": "Partially update an existing mock resource, changing only the general info", + "operationId": "updateMockResourceGeneralInfo", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResourceGeneralInfo" + } + } + }, + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/resources/{resourceId}/rules" : { - "post" : { - "tags" : [ "Mock Resources" ], - "summary" : "Create a new mock rule for certain mock resource", - "operationId" : "createMockRule", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockRule" - } - } - }, - "required" : true + "/resources/{resourceId}/rules": { + "post": { + "tags": [ + "Mock Resources" + ], + "summary": "Create a new mock rule for certain mock resource", + "operationId": "createMockRule", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockRule" + } + } + }, + "required": true }, - "responses" : { - "201" : { - "description" : "Created", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "201": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "409" : { - "description" : "Conflict", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/resources/{resourceId}/rules/{ruleId}" : { - "put" : { - "tags" : [ "Mock Resources" ], - "summary" : "Update an existing mock rule for certain mock resource", - "operationId" : "updateMockRule", - "parameters" : [ { - "name" : "resourceId", - "in" : "path", - "description" : "The identifier related to the mock resource", - "required" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "ruleId", - "in" : "path", - "description" : "The identifier related to the mock rule", - "required" : true, - "schema" : { - "type" : "string" - } - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockRule" - } - } - }, - "required" : true + "/resources/{resourceId}/rules/{ruleId}": { + "put": { + "tags": [ + "Mock Resources" + ], + "summary": "Update an existing mock rule for certain mock resource", + "operationId": "updateMockRule", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "description": "The identifier related to the mock resource", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "ruleId", + "in": "path", + "description": "The identifier related to the mock rule", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockRule" + } + } + }, + "required": true }, - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/MockResource" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MockResource" } } } }, - "400" : { - "description" : "Bad Request", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "404" : { - "description" : "Not Found", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "404": { + "description": "Not Found", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] }, - "/scripting" : { - "get" : { - "tags" : [ "Mock Resources" ], - "summary" : "Get complete list of scripts", - "operationId" : "getScripts", - "parameters" : [ { - "name" : "name", - "in" : "query", - "description" : "The name of the script, used as a search filter.", - "required" : false, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "/scripting": { + "get": { + "tags": [ + "Mock Resources" + ], + "summary": "Get complete list of scripts", + "operationId": "getScripts", + "parameters": [ + { + "name": "name", + "in": "query", + "description": "The name of the script, used as a search filter.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ScriptMetadataList" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScriptMetadataList" } } } }, - "401" : { - "description" : "Unauthorized", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "403" : { - "description" : "Forbidden", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "429" : { - "description" : "Too many requests", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } } }, - "500" : { - "description" : "Service unavailable", - "headers" : { - "X-Request-Id" : { - "description" : "This header identifies the call", - "schema" : { - "type" : "string" + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" } } }, - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemJson" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" } } } } }, - "security" : [ { - "ApiKey" : [ ] - }, { - "Authorization" : [ ] - } ] + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] }, - "parameters" : [ { - "name" : "X-Request-Id", - "in" : "header", - "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema" : { - "type" : "string" + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } } - } ] + ] } }, - "components" : { - "schemas" : { - "MockCondition" : { - "required" : [ "analyzed_content_type", "condition_type", "field_name", "field_position", "order" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the mock condition.", - "example" : "6b0b003d-74f4-428e-b950-61f42e02bf07" - }, - "order" : { - "type" : "integer", - "description" : "The cardinal order on which the mock condition will be evaluated by Mocker.", - "format" : "int32", - "example" : 1 - }, - "field_position" : { - "type" : "string", - "description" : "The parameter that define where the field/element that will be evaluated by this condition is located in the request.", - "example" : "BODY", - "enum" : [ "BODY", "HEADER", "URL" ] - }, - "analyzed_content_type" : { - "type" : "string", - "description" : "The parameter that define the type of the source in the request where the field/element that will be evaluated by this condition will be extracted.", - "example" : "JSON", - "enum" : [ "JSON", "XML", "STRING" ] - }, - "field_name" : { - "type" : "string", - "description" : "The parameter that define the identifier of the field/element that will be evaluated by this condition", - "example" : "station.id" - }, - "condition_type" : { - "type" : "string", - "description" : "The parameter that define the type of condition that will be applied on the field/element that will be evaluated.", - "example" : "EQ", - "enum" : [ "REGEX", "EQ", "NEQ", "LT", "GT", "LE", "GE", "NULL", "ANY" ] - }, - "condition_value" : { - "type" : "string", - "description" : "The parameter that define the value that the field/element must respect following the condition type.", - "example" : "77777777777_01" + "components": { + "schemas": { + "MockCondition": { + "required": [ + "analyzed_content_type", + "condition_type", + "field_name", + "field_position", + "order" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the mock condition.", + "example": "6b0b003d-74f4-428e-b950-61f42e02bf07" + }, + "order": { + "type": "integer", + "description": "The cardinal order on which the mock condition will be evaluated by Mocker.", + "format": "int32", + "example": 1 + }, + "field_position": { + "type": "string", + "description": "The parameter that define where the field/element that will be evaluated by this condition is located in the request.", + "example": "BODY", + "enum": [ + "BODY", + "HEADER", + "URL" + ] + }, + "analyzed_content_type": { + "type": "string", + "description": "The parameter that define the type of the source in the request where the field/element that will be evaluated by this condition will be extracted.", + "example": "JSON", + "enum": [ + "JSON", + "XML", + "STRING" + ] + }, + "field_name": { + "type": "string", + "description": "The parameter that define the identifier of the field/element that will be evaluated by this condition", + "example": "station.id" + }, + "condition_type": { + "type": "string", + "description": "The parameter that define the type of condition that will be applied on the field/element that will be evaluated.", + "example": "EQ", + "enum": [ + "REGEX", + "EQ", + "NEQ", + "LT", + "GT", + "LE", + "GE", + "NULL", + "ANY" + ] + }, + "condition_value": { + "type": "string", + "description": "The parameter that define the value that the field/element must respect following the condition type.", + "example": "77777777777_01" } }, - "description" : "The condition applied to the mock rule that a request must respect in order to retrieve the mocked response related to the rule." + "description": "The condition applied to the mock rule that a request must respect in order to retrieve the mocked response related to the rule." }, - "MockResource" : { - "required" : [ "http_method", "is_active", "name", "rules", "special_headers", "subsystem", "tags" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the mock resource.", - "example" : "fb5363bcf68f687c9caeddbc221769f6" - }, - "name" : { - "type" : "string", - "description" : "The name or description related to the mock resources, for human readability.", - "example" : "Get enrolled organization with ID 77777777777" - }, - "subsystem" : { - "type" : "string", - "description" : "The URL section that define the subsystem on which the mock resource is related.", - "example" : "apiconfig/api/v1" - }, - "resource_url" : { - "type" : "string", - "description" : "The specific URL on which the mock resource will be defined for the subsystem. If no specific URL is needed, use blank string.", - "example" : "organizations/77777777777" - }, - "http_method" : { - "type" : "string", - "description" : "The HTTP method related to the mock resource.", - "example" : "GET", - "enum" : [ "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "TRACE" ] - }, - "special_headers" : { - "type" : "array", - "description" : "The special headers that can be added to a request in order to better reference a mock resource.", - "items" : { - "$ref" : "#/components/schemas/SpecialRequestHeader" - } - }, - "is_active" : { - "type" : "boolean", - "description" : "The status flag that permits to activate or not the mock resource for Mocker evaluation.", - "example" : true - }, - "tags" : { - "type" : "array", - "description" : "The set of tags on which the mock resource is related to.", - "items" : { - "type" : "string", - "description" : "The set of tags on which the mock resource is related to." - } - }, - "rules" : { - "type" : "array", - "description" : "The list of rules related to the mock resource that will be evaluated by the Mocker.", - "items" : { - "$ref" : "#/components/schemas/MockRule" + "MockResource": { + "required": [ + "http_method", + "is_active", + "name", + "rules", + "special_headers", + "subsystem", + "tags" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the mock resource.", + "example": "fb5363bcf68f687c9caeddbc221769f6" + }, + "name": { + "type": "string", + "description": "The name or description related to the mock resources, for human readability.", + "example": "Get enrolled organization with ID 77777777777" + }, + "subsystem": { + "type": "string", + "description": "The URL section that define the subsystem on which the mock resource is related.", + "example": "apiconfig/api/v1" + }, + "resource_url": { + "type": "string", + "description": "The specific URL on which the mock resource will be defined for the subsystem. If no specific URL is needed, use blank string.", + "example": "organizations/77777777777" + }, + "http_method": { + "type": "string", + "description": "The HTTP method related to the mock resource.", + "example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "DELETE", + "PATCH", + "OPTIONS", + "TRACE" + ] + }, + "special_headers": { + "type": "array", + "description": "The special headers that can be added to a request in order to better reference a mock resource.", + "items": { + "$ref": "#/components/schemas/SpecialRequestHeader" + } + }, + "is_active": { + "type": "boolean", + "description": "The status flag that permits to activate or not the mock resource for Mocker evaluation.", + "example": true + }, + "tags": { + "type": "array", + "description": "The set of tags on which the mock resource is related to.", + "items": { + "type": "string", + "description": "The set of tags on which the mock resource is related to." + } + }, + "rules": { + "type": "array", + "description": "The list of rules related to the mock resource that will be evaluated by the Mocker.", + "items": { + "$ref": "#/components/schemas/MockRule" } } }, - "description" : "The mock resource, analyzed by Mocker, that permits to generate different responses based by rules and conditions." + "description": "The mock resource, analyzed by Mocker, that permits to generate different responses based by rules and conditions." }, - "MockResponse" : { - "required" : [ "headers", "injected_parameters", "status" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the mock response", - "example" : "26e05a1f-9621-4e24-a57d-28694ff30306" - }, - "body" : { - "type" : "string", - "description" : "The response body in Base64 format related to the mock response.", - "example" : "eyJtZXNzYWdlIjoiT0shIn0=" - }, - "status" : { - "type" : "integer", - "description" : "The HTTP response status related to the mock response.", - "format" : "int32", - "example" : 200 - }, - "headers" : { - "type" : "array", - "description" : "The list of header to be set to mock response.", - "items" : { - "$ref" : "#/components/schemas/ResponseHeader" - } - }, - "injected_parameters" : { - "type" : "array", - "description" : "The list of parameters that will be injected from request body to response body by Mocker.", - "items" : { - "type" : "string", - "description" : "The list of parameters that will be injected from request body to response body by Mocker." + "MockResponse": { + "required": [ + "headers", + "injected_parameters", + "status" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the mock response", + "example": "26e05a1f-9621-4e24-a57d-28694ff30306" + }, + "body": { + "type": "string", + "description": "The response body in Base64 format related to the mock response.", + "example": "eyJtZXNzYWdlIjoiT0shIn0=" + }, + "status": { + "type": "integer", + "description": "The HTTP response status related to the mock response.", + "format": "int32", + "example": 200 + }, + "headers": { + "type": "array", + "description": "The list of header to be set to mock response.", + "items": { + "$ref": "#/components/schemas/ResponseHeader" + } + }, + "injected_parameters": { + "type": "array", + "description": "The list of parameters that will be injected from request body to response body by Mocker.", + "items": { + "type": "string", + "description": "The list of parameters that will be injected from request body to response body by Mocker." } } }, - "description" : "The mocked response that will be generated by Mocker if the rule condition are all verified." + "description": "The mocked response that will be generated by Mocker if the rule condition are all verified." }, - "MockRule" : { - "required" : [ "conditions", "is_active", "name", "order", "response", "tags" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the mock rule", - "example" : "6c08a21c-6a92-4f6b-a1e1-bf68c4e099c9" - }, - "name" : { - "type" : "string", - "description" : "The name or description related to the mock rule, for human readability.", - "example" : "Main rule" - }, - "order" : { - "type" : "integer", - "description" : "The cardinal order on which the mock role will be evaluated by Mocker.", - "format" : "int32", - "example" : 1 - }, - "is_active" : { - "type" : "boolean", - "description" : "The status flag that permits to activate or not the mock rule for Mocker evaluation.", - "example" : true - }, - "tags" : { - "type" : "array", - "description" : "The set of tags on which the mock rule is related to.", - "items" : { - "type" : "string", - "description" : "The set of tags on which the mock rule is related to." - } - }, - "conditions" : { - "type" : "array", - "description" : "The list of condition related to the mock rule that will be evaluated in AND by the Mocker.", - "items" : { - "$ref" : "#/components/schemas/MockCondition" - } - }, - "scripting" : { - "$ref" : "#/components/schemas/MockScripting" - }, - "response" : { - "$ref" : "#/components/schemas/MockResponse" + "MockRule": { + "required": [ + "conditions", + "is_active", + "name", + "order", + "response", + "tags" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the mock rule", + "example": "6c08a21c-6a92-4f6b-a1e1-bf68c4e099c9" + }, + "name": { + "type": "string", + "description": "The name or description related to the mock rule, for human readability.", + "example": "Main rule" + }, + "order": { + "type": "integer", + "description": "The cardinal order on which the mock role will be evaluated by Mocker.", + "format": "int32", + "example": 1 + }, + "is_active": { + "type": "boolean", + "description": "The status flag that permits to activate or not the mock rule for Mocker evaluation.", + "example": true + }, + "tags": { + "type": "array", + "description": "The set of tags on which the mock rule is related to.", + "items": { + "type": "string", + "description": "The set of tags on which the mock rule is related to." + } + }, + "conditions": { + "type": "array", + "description": "The list of condition related to the mock rule that will be evaluated in AND by the Mocker.", + "items": { + "$ref": "#/components/schemas/MockCondition" + } + }, + "scripting": { + "$ref": "#/components/schemas/MockScripting" + }, + "response": { + "$ref": "#/components/schemas/MockResponse" } }, - "description" : "The rule a passed request can follow in order to obtain the defined mocked response." + "description": "The rule a passed request can follow in order to obtain the defined mocked response." }, - "MockScripting" : { - "required" : [ "input_parameters", "is_active", "script_name" ], - "type" : "object", - "properties" : { - "script_name" : { - "type" : "string", - "description" : "The name of the script that will be executed by the Mocker for the associated rule.", - "example" : "delay" - }, - "description" : { - "type" : "string", - "description" : "The human-readable description that explains the behavior of the script.", - "example" : "Lorem ipsum sit dolorem" - }, - "is_active" : { - "type" : "boolean", - "description" : "The flag that define if the scripting process is enabled for the associated rule.", - "example" : true - }, - "input_parameters" : { - "type" : "array", - "description" : "The list of parameters to be set as input for the execution of the script in the Mocker.", - "items" : { - "$ref" : "#/components/schemas/ScriptParameter" - } - }, - "output_parameters" : { - "type" : "array", - "description" : "The list of parameters that will be returned as output from the script during runtime.", - "example" : "dynamic.res", - "items" : { - "type" : "string", - "description" : "The list of parameters that will be returned as output from the script during runtime.", - "example" : "dynamic.res" + "MockScripting": { + "required": [ + "input_parameters", + "is_active", + "script_name" + ], + "type": "object", + "properties": { + "script_name": { + "type": "string", + "description": "The name of the script that will be executed by the Mocker for the associated rule.", + "example": "delay" + }, + "description": { + "type": "string", + "description": "The human-readable description that explains the behavior of the script.", + "example": "Lorem ipsum sit dolorem" + }, + "is_active": { + "type": "boolean", + "description": "The flag that define if the scripting process is enabled for the associated rule.", + "example": true + }, + "input_parameters": { + "type": "array", + "description": "The list of parameters to be set as input for the execution of the script in the Mocker.", + "items": { + "$ref": "#/components/schemas/ScriptParameter" + } + }, + "output_parameters": { + "type": "array", + "description": "The list of parameters that will be returned as output from the script during runtime.", + "example": "dynamic.res", + "items": { + "type": "string", + "description": "The list of parameters that will be returned as output from the script during runtime.", + "example": "dynamic.res" } } }, - "description" : "The information about the script to be executed by Mocker if all the conditions occurs." + "description": "The information about the script to be executed by Mocker if all the conditions occurs." }, - "ResponseHeader" : { - "required" : [ "name", "value" ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The key of the header to be set to mock response by Mocker.", - "example" : "Content-Type" - }, - "value" : { - "type" : "string", - "description" : "The value of the header to be set to mock response by Mocker.", - "example" : "application/json" + "ResponseHeader": { + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The key of the header to be set to mock response by Mocker.", + "example": "Content-Type" + }, + "value": { + "type": "string", + "description": "The value of the header to be set to mock response by Mocker.", + "example": "application/json" } }, - "description" : "The header that will be set to a mocked response" + "description": "The header that will be set to a mocked response" }, - "ScriptParameter" : { - "required" : [ "name", "value" ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The name of the parameter to be set as input. In script, it will be retrieved wit the annotation parameters.FIELD_NAME.", - "example" : "some-param" - }, - "value" : { - "type" : "string", - "description" : "The value of the parameter to be set as input. The value can be a constant or a dynamic value, retrievable from request body.", - "example" : "some-value" + "ScriptParameter": { + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the parameter to be set as input. In script, it will be retrieved wit the annotation parameters.FIELD_NAME.", + "example": "some-param" + }, + "value": { + "type": "string", + "description": "The value of the parameter to be set as input. The value can be a constant or a dynamic value, retrievable from request body.", + "example": "some-value" } }, - "description" : "The parameter to be set as input for the execution of the script in the Mocker." + "description": "The parameter to be set as input for the execution of the script in the Mocker." }, - "SpecialRequestHeader" : { - "required" : [ "name", "value" ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The key of the special header to be set to request to retrieve mock response from Mocker.", - "example" : "SOAPAction" - }, - "value" : { - "type" : "string", - "description" : "The value of the special header to be set to request to retrieve mock response from Mocker.", - "example" : "someSoapAction" + "SpecialRequestHeader": { + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The key of the special header to be set to request to retrieve mock response from Mocker.", + "example": "SOAPAction" + }, + "value": { + "type": "string", + "description": "The value of the special header to be set to request to retrieve mock response from Mocker.", + "example": "someSoapAction" } }, - "description" : "The special header that can be added to a request in order to better reference a mock resource." + "description": "The special header that can be added to a request in order to better reference a mock resource." }, - "ProblemJson" : { - "type" : "object", - "properties" : { - "title" : { - "type" : "string", - "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status" : { - "maximum" : 600, - "minimum" : 100, - "type" : "integer", - "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format" : "int32", - "example" : 200 - }, - "detail" : { - "type" : "string", - "description" : "A human readable explanation specific to this occurrence of the problem.", - "example" : "There was an error processing the request" + "ProblemJson": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status": { + "maximum": 600, + "minimum": 100, + "type": "integer", + "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format": "int32", + "example": 200 + }, + "detail": { + "type": "string", + "description": "A human readable explanation specific to this occurrence of the problem.", + "example": "There was an error processing the request" } } }, - "MockResourceGeneralInfo" : { - "required" : [ "is_active", "name", "tags" ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The name or description related to the mock resources, for human readability.", - "example" : "Get enrolled organization with ID 77777777777" - }, - "is_active" : { - "type" : "boolean", - "description" : "The status flag that permits to activate or not the mock resource for Mocker evaluation.", - "example" : true - }, - "tags" : { - "type" : "array", - "description" : "The set of tags on which the mock resource is related to.", - "items" : { - "type" : "string", - "description" : "The set of tags on which the mock resource is related to." + "MockResourceGeneralInfo": { + "required": [ + "is_active", + "name", + "tags" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name or description related to the mock resources, for human readability.", + "example": "Get enrolled organization with ID 77777777777" + }, + "is_active": { + "type": "boolean", + "description": "The status flag that permits to activate or not the mock resource for Mocker evaluation.", + "example": true + }, + "tags": { + "type": "array", + "description": "The set of tags on which the mock resource is related to.", + "items": { + "type": "string", + "description": "The set of tags on which the mock resource is related to." } } }, - "description" : "The general information about mock resource, used for partial update." + "description": "The general information about mock resource, used for partial update." }, - "Archetype" : { - "required" : [ "http_method", "name", "resource_url", "responses", "subsystem", "tags", "url_parameters" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the archetype.", - "example" : "2ee0aafa-9a9a-901a-bbb1-33394ff201ad" - }, - "name" : { - "type" : "string", - "description" : "The name or description related to the archetype, for human readability.", - "example" : "Get enrolled organization with ID 77777777777" - }, - "subsystem" : { - "type" : "string", - "description" : "The URL section that define the subsystem on which the archetype is related.", - "example" : "apiconfig/api/v1" - }, - "resource_url" : { - "type" : "string", - "description" : "The specific URL on which the archetype will be defined for the subsystem.", - "example" : "organizations/77777777777" - }, - "http_method" : { - "type" : "string", - "description" : "The HTTP method related to the archetype.", - "example" : "GET", - "enum" : [ "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "TRACE" ] - }, - "tags" : { - "type" : "array", - "description" : "The set of tags on which the archetype is related to.", - "items" : { - "type" : "string", - "description" : "The set of tags on which the archetype is related to." - } - }, - "url_parameters" : { - "type" : "array", - "description" : "The list of parameter related to the archetype URL that must be set in mock resource creation.", - "items" : { - "type" : "string", - "description" : "The list of parameter related to the archetype URL that must be set in mock resource creation." - } - }, - "responses" : { - "type" : "array", - "description" : "The list of responses related to the archetype that can be edited in mock resource creation.", - "items" : { - "$ref" : "#/components/schemas/ArchetypeResponse" + "Archetype": { + "required": [ + "http_method", + "name", + "resource_url", + "responses", + "subsystem", + "tags", + "url_parameters" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the archetype.", + "example": "2ee0aafa-9a9a-901a-bbb1-33394ff201ad" + }, + "name": { + "type": "string", + "description": "The name or description related to the archetype, for human readability.", + "example": "Get enrolled organization with ID 77777777777" + }, + "subsystem": { + "type": "string", + "description": "The URL section that define the subsystem on which the archetype is related.", + "example": "apiconfig/api/v1" + }, + "resource_url": { + "type": "string", + "description": "The specific URL on which the archetype will be defined for the subsystem.", + "example": "organizations/77777777777" + }, + "http_method": { + "type": "string", + "description": "The HTTP method related to the archetype.", + "example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "DELETE", + "PATCH", + "OPTIONS", + "TRACE" + ] + }, + "tags": { + "type": "array", + "description": "The set of tags on which the archetype is related to.", + "items": { + "type": "string", + "description": "The set of tags on which the archetype is related to." + } + }, + "url_parameters": { + "type": "array", + "description": "The list of parameter related to the archetype URL that must be set in mock resource creation.", + "items": { + "type": "string", + "description": "The list of parameter related to the archetype URL that must be set in mock resource creation." + } + }, + "responses": { + "type": "array", + "description": "The list of responses related to the archetype that can be edited in mock resource creation.", + "items": { + "$ref": "#/components/schemas/ArchetypeResponse" } } } }, - "ArchetypeResponse" : { - "required" : [ "headers", "injectable_parameters", "status" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the archetype response.", - "example" : "2ee0aafa-9a9a-901a-bbb1-33394ff201ad" - }, - "body" : { - "type" : "string" - }, - "status" : { - "type" : "integer", - "format" : "int32" - }, - "headers" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ArchetypeResponseHeader" - } - }, - "injectable_parameters" : { - "type" : "array", - "items" : { - "type" : "string" + "ArchetypeResponse": { + "required": [ + "headers", + "injectable_parameters", + "status" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the archetype response.", + "example": "2ee0aafa-9a9a-901a-bbb1-33394ff201ad" + }, + "body": { + "type": "string" + }, + "status": { + "type": "integer", + "format": "int32" + }, + "headers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ArchetypeResponseHeader" + } + }, + "injectable_parameters": { + "type": "array", + "items": { + "type": "string" } } }, - "description" : "The list of responses related to the archetype that can be edited in mock resource creation." + "description": "The list of responses related to the archetype that can be edited in mock resource creation." }, - "ArchetypeResponseHeader" : { - "required" : [ "name", "value" ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The key of the header to be set to archetype.", - "example" : "Content-Type" - }, - "value" : { - "type" : "string", - "description" : "The value of the header to be set to archetype.", - "example" : "application/json" + "ArchetypeResponseHeader": { + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The key of the header to be set to archetype.", + "example": "Content-Type" + }, + "value": { + "type": "string", + "description": "The value of the header to be set to archetype.", + "example": "application/json" } }, - "description" : "The header that will be set to a mocked response generated by the archetype" + "description": "The header that will be set to a mocked response generated by the archetype" }, - "MockResourceFromArchetype" : { - "type" : "object", - "properties" : { - "is_active" : { - "type" : "boolean" + "MockResourceFromArchetype": { + "type": "object", + "properties": { + "is_active": { + "type": "boolean" }, - "tags" : { - "type" : "array", - "items" : { - "type" : "string" + "tags": { + "type": "array", + "items": { + "type": "string" } }, - "url_parameters" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/StaticParameterValue" + "url_parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StaticParameterValue" } }, - "rules" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/MockRuleFromArchetype" + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MockRuleFromArchetype" } } } }, - "MockResponseFromArchetype" : { - "type" : "object", - "properties" : { - "status" : { - "type" : "integer", - "format" : "int32" + "MockResponseFromArchetype": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "format": "int32" }, - "headers" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ResponseHeader" + "headers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseHeader" } }, - "static_values" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/StaticParameterValue" + "static_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StaticParameterValue" } } } }, - "MockRuleFromArchetype" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" + "MockRuleFromArchetype": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "order" : { - "type" : "integer", - "format" : "int32" + "order": { + "type": "integer", + "format": "int32" }, - "is_active" : { - "type" : "boolean" + "is_active": { + "type": "boolean" }, - "tags" : { - "type" : "array", - "items" : { - "type" : "string" + "tags": { + "type": "array", + "items": { + "type": "string" } }, - "conditions" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/MockCondition" + "conditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MockCondition" } }, - "response" : { - "$ref" : "#/components/schemas/MockResponseFromArchetype" + "response": { + "$ref": "#/components/schemas/MockResponseFromArchetype" } } }, - "StaticParameterValue" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "string" + "StaticParameterValue": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" } } }, - "ArchetypeHandlingResult" : { - "type" : "object", - "properties" : { - "subsystem_url" : { - "type" : "string" - }, - "generated_archetypes" : { - "type" : "integer", - "format" : "int32" + "ArchetypeHandlingResult": { + "type": "object", + "properties": { + "subsystem_url": { + "type": "string" + }, + "generated_archetypes": { + "type": "integer", + "format": "int32" } } }, - "ScriptMetadata" : { - "required" : [ "description", "input_parameters", "name", "output_parameters" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the script.", - "example" : "fb5363bcf68f687c9caeddbc221769f6" - }, - "name" : { - "type" : "string", - "description" : "The name of the script.", - "example" : "delay" - }, - "description" : { - "type" : "string", - "description" : "The human-readable description that explains the behavior of the script.", - "example" : "Lorem ipsum sit dolorem" - }, - "input_parameters" : { - "type" : "array", - "description" : "The list of parameters to be passed as input to the script during runtime.", - "example" : "name", - "items" : { - "type" : "string", - "description" : "The list of parameters to be passed as input to the script during runtime.", - "example" : "name" - } - }, - "output_parameters" : { - "type" : "array", - "description" : "The list of parameters that will be returned as output from the script during runtime.", - "example" : "dynamic.res", - "items" : { - "type" : "string", - "description" : "The list of parameters that will be returned as output from the script during runtime.", - "example" : "dynamic.res" + "ScriptMetadata": { + "required": [ + "description", + "input_parameters", + "name", + "output_parameters" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the script.", + "example": "fb5363bcf68f687c9caeddbc221769f6" + }, + "name": { + "type": "string", + "description": "The name of the script.", + "example": "delay" + }, + "description": { + "type": "string", + "description": "The human-readable description that explains the behavior of the script.", + "example": "Lorem ipsum sit dolorem" + }, + "input_parameters": { + "type": "array", + "description": "The list of parameters to be passed as input to the script during runtime.", + "example": "name", + "items": { + "type": "string", + "description": "The list of parameters to be passed as input to the script during runtime.", + "example": "name" + } + }, + "output_parameters": { + "type": "array", + "description": "The list of parameters that will be returned as output from the script during runtime.", + "example": "dynamic.res", + "items": { + "type": "string", + "description": "The list of parameters that will be returned as output from the script during runtime.", + "example": "dynamic.res" } } }, - "description" : "The script that can be executed by Mocker and that permits to generate dynamic values based on scripted execution." + "description": "The script that can be executed by Mocker and that permits to generate dynamic values based on scripted execution." }, - "ScriptMetadataList" : { - "required" : [ "scripts" ], - "type" : "object", - "properties" : { - "scripts" : { - "type" : "array", - "description" : "The list of retrieved scripts.", - "items" : { - "$ref" : "#/components/schemas/ScriptMetadata" + "ScriptMetadataList": { + "required": [ + "scripts" + ], + "type": "object", + "properties": { + "scripts": { + "type": "array", + "description": "The list of retrieved scripts.", + "items": { + "$ref": "#/components/schemas/ScriptMetadata" } } }, - "description" : "The complete list of scripts to be used for dynamic mock behavior." + "description": "The complete list of scripts to be used for dynamic mock behavior." }, - "MockResourceList" : { - "required" : [ "page_info", "resources" ], - "type" : "object", - "properties" : { - "resources" : { - "type" : "array", - "description" : "The list of retrieved mock resources.", - "items" : { - "$ref" : "#/components/schemas/MockResourceReduced" - } - }, - "page_info" : { - "$ref" : "#/components/schemas/PageInfo" + "MockResourceList": { + "required": [ + "page_info", + "resources" + ], + "type": "object", + "properties": { + "resources": { + "type": "array", + "description": "The list of retrieved mock resources.", + "items": { + "$ref": "#/components/schemas/MockResourceReduced" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" } }, - "description" : "The paginated list of mock resources." + "description": "The paginated list of mock resources." }, - "MockResourceReduced" : { - "required" : [ "http_method", "is_active", "name", "subsystem", "tags" ], - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "The unique identifier of the mock resource.", - "example" : "fb5363bcf68f687c9caeddbc221769f6" - }, - "name" : { - "type" : "string", - "description" : "The name or description related to the mock resources, for human readability.", - "example" : "Get enrolled organization with ID 77777777777" - }, - "subsystem" : { - "type" : "string", - "description" : "The URL section that define the subsystem on which the mock resource is related.", - "example" : "apiconfig/api/v1" - }, - "resource_url" : { - "type" : "string", - "description" : "The specific URL on which the mock resource will be defined for the subsystem. If no specific URL is needed, use blank string.", - "example" : "organizations/77777777777" - }, - "http_method" : { - "type" : "string", - "description" : "The HTTP method related to the mock resource.", - "example" : "GET", - "enum" : [ "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "TRACE" ] - }, - "special_headers" : { - "type" : "array", - "description" : "The special headers that can be added to a request in order to better reference a mock resource.", - "items" : { - "$ref" : "#/components/schemas/SpecialRequestHeader" - } - }, - "is_active" : { - "type" : "boolean", - "description" : "The status flag that permits to activate or not the mock resource for Mocker evaluation.", - "example" : true - }, - "tags" : { - "type" : "array", - "description" : "The set of tags on which the mock resource is related to.", - "items" : { - "type" : "string", - "description" : "The set of tags on which the mock resource is related to." + "MockResourceReduced": { + "required": [ + "http_method", + "is_active", + "name", + "subsystem", + "tags" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier of the mock resource.", + "example": "fb5363bcf68f687c9caeddbc221769f6" + }, + "name": { + "type": "string", + "description": "The name or description related to the mock resources, for human readability.", + "example": "Get enrolled organization with ID 77777777777" + }, + "subsystem": { + "type": "string", + "description": "The URL section that define the subsystem on which the mock resource is related.", + "example": "apiconfig/api/v1" + }, + "resource_url": { + "type": "string", + "description": "The specific URL on which the mock resource will be defined for the subsystem. If no specific URL is needed, use blank string.", + "example": "organizations/77777777777" + }, + "http_method": { + "type": "string", + "description": "The HTTP method related to the mock resource.", + "example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "DELETE", + "PATCH", + "OPTIONS", + "TRACE" + ] + }, + "special_headers": { + "type": "array", + "description": "The special headers that can be added to a request in order to better reference a mock resource.", + "items": { + "$ref": "#/components/schemas/SpecialRequestHeader" + } + }, + "is_active": { + "type": "boolean", + "description": "The status flag that permits to activate or not the mock resource for Mocker evaluation.", + "example": true + }, + "tags": { + "type": "array", + "description": "The set of tags on which the mock resource is related to.", + "items": { + "type": "string", + "description": "The set of tags on which the mock resource is related to." } } }, - "description" : "The mock resource main info." + "description": "The mock resource main info." }, - "PageInfo" : { - "required" : [ "items_found", "limit", "page", "total_items", "total_pages" ], - "type" : "object", - "properties" : { - "page" : { - "type" : "integer", - "description" : "Page number", - "format" : "int32" - }, - "limit" : { - "type" : "integer", - "description" : "Required number of items per page", - "format" : "int32" - }, - "items_found" : { - "type" : "integer", - "description" : "Number of items found. (The last page may have fewer elements than required)", - "format" : "int32" - }, - "total_pages" : { - "type" : "integer", - "description" : "Total number of pages", - "format" : "int32" - }, - "total_items" : { - "type" : "integer", - "description" : "Total number of items for all pages", - "format" : "int64" + "PageInfo": { + "required": [ + "items_found", + "limit", + "page", + "total_items", + "total_pages" + ], + "type": "object", + "properties": { + "page": { + "type": "integer", + "description": "Page number", + "format": "int32" + }, + "limit": { + "type": "integer", + "description": "Required number of items per page", + "format": "int32" + }, + "items_found": { + "type": "integer", + "description": "Number of items found. (The last page may have fewer elements than required)", + "format": "int32" + }, + "total_pages": { + "type": "integer", + "description": "Total number of pages", + "format": "int32" + }, + "total_items": { + "type": "integer", + "description": "Total number of items for all pages", + "format": "int64" } }, - "description" : "The information related to the result page." + "description": "The information related to the result page." }, - "AppInfo" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "description" : "The name of the application." - }, - "version" : { - "type" : "string", - "description" : "The version related to the installed application." - }, - "environment" : { - "type" : "string", - "description" : "The environment tag on which the application is installed." - }, - "db_connection" : { - "type" : "string", - "description" : "The status related to the database connection.", - "enum" : [ "up", "down" ] + "AppInfo": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the application." + }, + "version": { + "type": "string", + "description": "The version related to the installed application." + }, + "environment": { + "type": "string", + "description": "The environment tag on which the application is installed." + }, + "db_connection": { + "type": "string", + "description": "The status related to the database connection.", + "enum": [ + "up", + "down" + ] } } }, - "ArchetypeList" : { - "required" : [ "page_info", "resources" ], - "type" : "object", - "properties" : { - "resources" : { - "type" : "array", - "description" : "The list of retrieved archetypes.", - "items" : { - "$ref" : "#/components/schemas/Archetype" - } - }, - "page_info" : { - "$ref" : "#/components/schemas/PageInfo" + "ArchetypeList": { + "required": [ + "page_info", + "resources" + ], + "type": "object", + "properties": { + "resources": { + "type": "array", + "description": "The list of retrieved archetypes.", + "items": { + "$ref": "#/components/schemas/Archetype" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" } }, - "description" : "The paginated list of archetypes." + "description": "The paginated list of archetypes." } }, - "securitySchemes" : { - "ApiKey" : { - "type" : "apiKey", - "description" : "The API key to access this function app.", - "name" : "Ocp-Apim-Subscription-Key", - "in" : "header" + "securitySchemes": { + "ApiKey": { + "type": "apiKey", + "description": "The API key to access this function app.", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" }, - "Authorization" : { - "type" : "http", - "description" : "JWT token get after Azure Login", - "scheme" : "bearer", - "bearerFormat" : "JWT" + "Authorization": { + "type": "http", + "description": "JWT token get after Azure Login", + "scheme": "bearer", + "bearerFormat": "JWT" } } } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index 7dde487..4d61852 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ it.gov.pagopa mocker-config - 1.2.5 + 1.2.6 pagoPA Mocker Configurator A service that permits to configure the mocked responses used by Mocker service