From ec12bc7580b1e46d09d44fda27b83d596d51586c Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Wed, 28 Jun 2023 15:01:34 +0100 Subject: Update openapi files Signed-off-by: MichaelMorris Issue-ID: SDC-4557 Change-Id: I3ca60e6c285d1e5f78ced161128ed073f152d7e1 --- docs/openapi/openapi-sdce-2-sdce-5.json | 1408 ++++++++++++++++++++++++++++--- 1 file changed, 1291 insertions(+), 117 deletions(-) (limited to 'docs/openapi/openapi-sdce-2-sdce-5.json') diff --git a/docs/openapi/openapi-sdce-2-sdce-5.json b/docs/openapi/openapi-sdce-2-sdce-5.json index eb2bfb5aaf..875e976a5e 100644 --- a/docs/openapi/openapi-sdce-2-sdce-5.json +++ b/docs/openapi/openapi-sdce-2-sdce-5.json @@ -303,6 +303,13 @@ "schema" : { "type" : "string" } + }, { + "in" : "query", + "name" : "excludePrimitives", + "schema" : { + "type" : "string", + "default" : "false" + } } ], "responses" : { "200" : { @@ -1524,6 +1531,406 @@ "tags" : [ "SDCE-2 APIs" ] } }, + "/v1/catalog/customToscaFunctions/{type}" : { + "get" : { + "description" : "Retrieve default custom tosca functions values from the configuration file based on type", + "operationId" : "getDefaultCustomToscaFunctionValues", + "parameters" : [ { + "in" : "header", + "name" : "USER_ID", + "schema" : { + "type" : "string" + } + }, { + "in" : "path", + "name" : "type", + "required" : true, + "schema" : { + "type" : "string", + "enum" : [ "ALL", "CUSTOM", "GET_INPUT" ] + } + } ], + "responses" : { + "200" : { + "description" : "Returns default custom tosca functions values from configuration file Ok" + }, + "404" : { + "description" : "Default custom tosca functions not found" + }, + "500" : { + "description" : "Internal Server Error" + }, + "default" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/User" + } + } + } + } + } + }, + "summary" : "Retrieve all custom tosca functions", + "tags" : [ "SDCE-2 APIs" ] + } + }, + "/v1/catalog/data-types/{dataTypeId}" : { + "delete" : { + "operationId" : "deleteDatatype", + "parameters" : [ { + "description" : "The data type id", + "in" : "path", + "name" : "dataTypeId", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "content" : { + "*/*" : { } + }, + "description" : "default response" + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "tags" : [ "SDCE-2 APIs" ] + } + }, + "/v1/catalog/data-types/{dataTypeId}/{propertyId}" : { + "delete" : { + "operationId" : "deleteProperty", + "parameters" : [ { + "description" : "The data type id", + "in" : "path", + "name" : "dataTypeId", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "description" : "The property id to delete", + "in" : "path", + "name" : "propertyId", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "content" : { + "*/*" : { } + }, + "description" : "default response" + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "tags" : [ "SDCE-2 APIs" ] + } + }, + "/v1/catalog/data-types/{dataTypeName}/models" : { + "get" : { + "description" : "Get models for type", + "operationId" : "getDataTypeModels", + "parameters" : [ { + "in" : "path", + "name" : "dataTypeName", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "dataTypeModels" + }, + "400" : { + "description" : "Invalid content / Missing content" + }, + "403" : { + "description" : "Restricted operation" + }, + "404" : { + "description" : "Data type not found" + }, + "default" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "allowedMethods" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "cookies" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "properties" : { + "comment" : { + "type" : "string" + }, + "domain" : { + "type" : "string" + }, + "expiry" : { + "type" : "string", + "format" : "date-time" + }, + "httpOnly" : { + "type" : "boolean" + }, + "maxAge" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "secure" : { + "type" : "boolean" + }, + "value" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int32" + } + } + } + }, + "date" : { + "type" : "string", + "format" : "date-time" + }, + "entity" : { + "type" : "object" + }, + "entityTag" : { + "type" : "object", + "properties" : { + "value" : { + "type" : "string" + }, + "weak" : { + "type" : "boolean" + } + } + }, + "headers" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "language" : { + "type" : "object", + "properties" : { + "country" : { + "type" : "string" + }, + "displayCountry" : { + "type" : "string" + }, + "displayLanguage" : { + "type" : "string" + }, + "displayName" : { + "type" : "string" + }, + "displayScript" : { + "type" : "string" + }, + "displayVariant" : { + "type" : "string" + }, + "extensionKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "iso3Country" : { + "type" : "string" + }, + "iso3Language" : { + "type" : "string" + }, + "language" : { + "type" : "string" + }, + "script" : { + "type" : "string" + }, + "unicodeLocaleAttributes" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "unicodeLocaleKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "variant" : { + "type" : "string" + } + } + }, + "lastModified" : { + "type" : "string", + "format" : "date-time" + }, + "length" : { + "type" : "integer", + "format" : "int32" + }, + "links" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "params" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "rel" : { + "type" : "string" + }, + "rels" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "title" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "uri" : { + "type" : "string", + "format" : "uri" + }, + "uriBuilder" : { + "type" : "object" + } + } + }, + "uniqueItems" : true + }, + "location" : { + "type" : "string", + "format" : "uri" + }, + "mediaType" : { + "type" : "object", + "properties" : { + "parameters" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "subtype" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "wildcardSubtype" : { + "type" : "boolean" + }, + "wildcardType" : { + "type" : "boolean" + } + } + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "status" : { + "type" : "integer", + "format" : "int32" + }, + "statusInfo" : { + "type" : "object", + "properties" : { + "family" : { + "type" : "string", + "enum" : [ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ] + }, + "reasonPhrase" : { + "type" : "string" + }, + "statusCode" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "stringHeaders" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + } + } + } + } + } + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "summary" : "Returns list of models for type", + "tags" : [ "SDCE-2 APIs" ] + } + }, "/v1/catalog/data-types/{dataTypeUid}" : { "get" : { "description" : "Get data types", @@ -1671,6 +2078,59 @@ } ], "summary" : "Create a property in the given data type", "tags" : [ "SDCE-2 APIs" ] + }, + "put" : { + "description" : "Update a property in the given data type", + "operationId" : "updateProperty", + "parameters" : [ { + "description" : "The data type id", + "in" : "path", + "name" : "id", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PropertyDefinitionDto" + } + } + }, + "description" : "Property to update", + "required" : true + }, + "responses" : { + "201" : { + "description" : "Property updated in the data type" + }, + "400" : { + "description" : "Invalid payload" + }, + "403" : { + "description" : "Restricted operation" + }, + "404" : { + "description" : "Data type not found" + }, + "default" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PropertyDefinitionDto" + } + } + } + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "summary" : "Update a property in the given data type", + "tags" : [ "SDCE-2 APIs" ] } }, "/v1/catalog/dataTypes" : { @@ -2009,6 +2469,304 @@ "tags" : [ "SDCE-2 APIs" ] } }, + "/v1/catalog/downloadDataType" : { + "get" : { + "description" : "Get data types", + "operationId" : "downloadDataType", + "parameters" : [ { + "in" : "header", + "name" : "USER_ID", + "schema" : { + "type" : "string" + } + }, { + "description" : "dataTypeId", + "in" : "query", + "name" : "dataTypeId", + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "allDataTypes" + }, + "400" : { + "description" : "Invalid content / Missing content" + }, + "403" : { + "description" : "Restricted operation" + }, + "404" : { + "description" : "Data types not found" + }, + "default" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "allowedMethods" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "cookies" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "properties" : { + "comment" : { + "type" : "string" + }, + "domain" : { + "type" : "string" + }, + "expiry" : { + "type" : "string", + "format" : "date-time" + }, + "httpOnly" : { + "type" : "boolean" + }, + "maxAge" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "secure" : { + "type" : "boolean" + }, + "value" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int32" + } + } + } + }, + "date" : { + "type" : "string", + "format" : "date-time" + }, + "entity" : { + "type" : "object" + }, + "entityTag" : { + "type" : "object", + "properties" : { + "value" : { + "type" : "string" + }, + "weak" : { + "type" : "boolean" + } + } + }, + "headers" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "language" : { + "type" : "object", + "properties" : { + "country" : { + "type" : "string" + }, + "displayCountry" : { + "type" : "string" + }, + "displayLanguage" : { + "type" : "string" + }, + "displayName" : { + "type" : "string" + }, + "displayScript" : { + "type" : "string" + }, + "displayVariant" : { + "type" : "string" + }, + "extensionKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "iso3Country" : { + "type" : "string" + }, + "iso3Language" : { + "type" : "string" + }, + "language" : { + "type" : "string" + }, + "script" : { + "type" : "string" + }, + "unicodeLocaleAttributes" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "unicodeLocaleKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "variant" : { + "type" : "string" + } + } + }, + "lastModified" : { + "type" : "string", + "format" : "date-time" + }, + "length" : { + "type" : "integer", + "format" : "int32" + }, + "links" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "params" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "rel" : { + "type" : "string" + }, + "rels" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "title" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "uri" : { + "type" : "string", + "format" : "uri" + }, + "uriBuilder" : { + "type" : "object" + } + } + }, + "uniqueItems" : true + }, + "location" : { + "type" : "string", + "format" : "uri" + }, + "mediaType" : { + "type" : "object", + "properties" : { + "parameters" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "subtype" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "wildcardSubtype" : { + "type" : "boolean" + }, + "wildcardType" : { + "type" : "boolean" + } + } + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "status" : { + "type" : "integer", + "format" : "int32" + }, + "statusInfo" : { + "type" : "object", + "properties" : { + "family" : { + "type" : "string", + "enum" : [ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ] + }, + "reasonPhrase" : { + "type" : "string" + }, + "statusCode" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "stringHeaders" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + } + } + } + } + } + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "summary" : "Returns all data types from all models", + "tags" : [ "SDCE-2 APIs" ] + } + }, "/v1/catalog/gab/searchFor" : { "post" : { "description" : "Search json paths inside the yaml", @@ -2625,6 +3383,33 @@ "tags" : [ "SDCE-2 APIs" ] } }, + "/v1/catalog/interface-types/{interfaceTypeId}" : { + "delete" : { + "operationId" : "deleteInterfaceType", + "parameters" : [ { + "description" : "The interface type id", + "in" : "path", + "name" : "interfaceTypeId", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "content" : { + "*/*" : { } + }, + "description" : "default response" + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "tags" : [ "SDCE-2 APIs" ] + } + }, "/v1/catalog/interfaceLifecycleTypes" : { "get" : { "description" : "Get interface lifecycle types", @@ -4648,6 +5433,9 @@ "400" : { "description" : "Invalid content / Missing content" }, + "401" : { + "description" : "Unauthorized Tenant" + }, "403" : { "description" : "Restricted operation" }, @@ -13343,6 +14131,9 @@ "400" : { "description" : "Invalid content / Missing content" }, + "401" : { + "description" : "Unauthorized Tenant" + }, "403" : { "description" : "Restricted operation" }, @@ -22512,32 +23303,347 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns one toggleable feature state", + "summary" : "Returns one toggleable feature state", + "tags" : [ "SDCE-2 APIs" ] + } + }, + "/v1/catalog/toggle/{featureName}/state/{state}" : { + "put" : { + "description" : "Update feature toggle state", + "operationId" : "updateFeatureState", + "parameters" : [ { + "in" : "path", + "name" : "featureName", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "in" : "path", + "name" : "state", + "required" : true, + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "200" : { + "description" : "Success" + }, + "400" : { + "description" : "Invalid content / Missing content" + }, + "403" : { + "description" : "Restricted operation" + }, + "404" : { + "description" : "Toggleable features not found" + }, + "default" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "allowedMethods" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "cookies" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "properties" : { + "comment" : { + "type" : "string" + }, + "domain" : { + "type" : "string" + }, + "expiry" : { + "type" : "string", + "format" : "date-time" + }, + "httpOnly" : { + "type" : "boolean" + }, + "maxAge" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "secure" : { + "type" : "boolean" + }, + "value" : { + "type" : "string" + }, + "version" : { + "type" : "integer", + "format" : "int32" + } + } + } + }, + "date" : { + "type" : "string", + "format" : "date-time" + }, + "entity" : { + "type" : "object" + }, + "entityTag" : { + "type" : "object", + "properties" : { + "value" : { + "type" : "string" + }, + "weak" : { + "type" : "boolean" + } + } + }, + "headers" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "language" : { + "type" : "object", + "properties" : { + "country" : { + "type" : "string" + }, + "displayCountry" : { + "type" : "string" + }, + "displayLanguage" : { + "type" : "string" + }, + "displayName" : { + "type" : "string" + }, + "displayScript" : { + "type" : "string" + }, + "displayVariant" : { + "type" : "string" + }, + "extensionKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "iso3Country" : { + "type" : "string" + }, + "iso3Language" : { + "type" : "string" + }, + "language" : { + "type" : "string" + }, + "script" : { + "type" : "string" + }, + "unicodeLocaleAttributes" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "unicodeLocaleKeys" : { + "type" : "array", + "items" : { + "type" : "string" + }, + "uniqueItems" : true + }, + "variant" : { + "type" : "string" + } + } + }, + "lastModified" : { + "type" : "string", + "format" : "date-time" + }, + "length" : { + "type" : "integer", + "format" : "int32" + }, + "links" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { + "params" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "rel" : { + "type" : "string" + }, + "rels" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "title" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "uri" : { + "type" : "string", + "format" : "uri" + }, + "uriBuilder" : { + "type" : "object" + } + } + }, + "uniqueItems" : true + }, + "location" : { + "type" : "string", + "format" : "uri" + }, + "mediaType" : { + "type" : "object", + "properties" : { + "parameters" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "subtype" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "wildcardSubtype" : { + "type" : "boolean" + }, + "wildcardType" : { + "type" : "boolean" + } + } + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "status" : { + "type" : "integer", + "format" : "int32" + }, + "statusInfo" : { + "type" : "object", + "properties" : { + "family" : { + "type" : "string", + "enum" : [ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ] + }, + "reasonPhrase" : { + "type" : "string" + }, + "statusCode" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "stringHeaders" : { + "type" : "object", + "additionalProperties" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + } + } + } + } + } + } + }, + "servers" : [ { + "url" : "/sdc2/rest", + "variables" : { } + } ], + "summary" : "Update feature status", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/toggle/{featureName}/state/{state}" : { - "put" : { - "description" : "Update feature toggle state", - "operationId" : "updateFeatureState", + "/v1/catalog/upload/resource/import" : { + "post" : { + "description" : "Import node types from a TOSCA yaml, along with the types metadata", + "operationId" : "bulkImport", "parameters" : [ { - "in" : "path", - "name" : "featureName", - "required" : true, + "in" : "header", + "name" : "USER_ID", "schema" : { "type" : "string" } - }, { - "in" : "path", - "name" : "state", - "required" : true, - "schema" : { - "type" : "boolean" - } } ], + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "type" : "object", + "properties" : { + "createNewVersion" : { + "type" : "boolean", + "default" : true, + "description" : "The model name to associate the node types to" + }, + "nodeTypeMetadataJson" : { + "$ref" : "#/components/schemas/NodeTypesMetadataList" + }, + "nodeTypesYaml" : { + "type" : "object", + "description" : "The node types TOSCA definition yaml" + } + }, + "required" : [ "nodeTypeMetadataJson", "nodeTypesYaml" ] + } + } + } + }, "responses" : { - "200" : { - "description" : "Success" + "201" : { + "description" : "Resources created" }, "400" : { "description" : "Invalid content / Missing content" @@ -22545,8 +23651,8 @@ "403" : { "description" : "Restricted operation" }, - "404" : { - "description" : "Toggleable features not found" + "409" : { + "description" : "One of the resources already exists" }, "default" : { "content" : { @@ -22811,20 +23917,36 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Update feature status", + "summary" : "Creates node types from a TOSCA yaml file", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/upload/resource/import" : { + "/v1/catalog/upload/{resourceAuthority}" : { "post" : { - "description" : "Import node types from a TOSCA yaml, along with the types metadata", - "operationId" : "bulkImport", + "description" : "Create Resource from yaml", + "operationId" : "uploadMultipart", "parameters" : [ { + "description" : "validValues: normative-resource / user-resource", + "in" : "path", + "name" : "resourceAuthority", + "required" : true, + "schema" : { + "type" : "string", + "enum" : [ "multipart", "user-resource", "user-resource-ui-import" ] + } + }, { "in" : "header", "name" : "USER_ID", "schema" : { "type" : "string" } + }, { + "in" : "query", + "name" : "createNewVersion", + "schema" : { + "type" : "boolean", + "default" : true + } } ], "requestBody" : { "content" : { @@ -22832,27 +23954,21 @@ "schema" : { "type" : "object", "properties" : { - "createNewVersion" : { - "type" : "boolean", - "default" : true, - "description" : "The model name to associate the node types to" - }, - "nodeTypeMetadataJson" : { - "$ref" : "#/components/schemas/NodeTypesMetadataList" + "resourceMetadata" : { + "type" : "string", + "description" : "resourceMetadata" }, - "nodeTypesYaml" : { - "type" : "object", - "description" : "The node types TOSCA definition yaml" + "resourceZip" : { + "$ref" : "#/components/schemas/FormDataContentDisposition" } - }, - "required" : [ "nodeTypeMetadataJson", "nodeTypesYaml" ] + } } } } }, "responses" : { "201" : { - "description" : "Resources created" + "description" : "Resource created" }, "400" : { "description" : "Invalid content / Missing content" @@ -22861,7 +23977,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "One of the resources already exists" + "description" : "Resource already exist" }, "default" : { "content" : { @@ -23126,36 +24242,20 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Creates node types from a TOSCA yaml file", + "summary" : "Returns created resource", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/upload/{resourceAuthority}" : { + "/v1/catalog/uploadType/annotationtypes" : { "post" : { - "description" : "Create Resource from yaml", - "operationId" : "uploadMultipart", + "description" : "Create AnnotationTypes from yaml", + "operationId" : "uploadAnnotationTypes", "parameters" : [ { - "description" : "validValues: normative-resource / user-resource", - "in" : "path", - "name" : "resourceAuthority", - "required" : true, - "schema" : { - "type" : "string", - "enum" : [ "multipart", "user-resource", "user-resource-ui-import" ] - } - }, { "in" : "header", "name" : "USER_ID", "schema" : { "type" : "string" } - }, { - "in" : "query", - "name" : "createNewVersion", - "schema" : { - "type" : "boolean", - "default" : true - } } ], "requestBody" : { "content" : { @@ -23163,12 +24263,10 @@ "schema" : { "type" : "object", "properties" : { - "resourceMetadata" : { + "annotationTypesZip" : { "type" : "string", - "description" : "resourceMetadata" - }, - "resourceZip" : { - "$ref" : "#/components/schemas/FormDataContentDisposition" + "format" : "binary", + "description" : "FileInputStream" } } } @@ -23177,7 +24275,7 @@ }, "responses" : { "201" : { - "description" : "Resource created" + "description" : "annotation types created" }, "400" : { "description" : "Invalid content / Missing content" @@ -23186,7 +24284,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "Resource already exist" + "description" : "annotation types already exist" }, "default" : { "content" : { @@ -23451,14 +24549,14 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns created resource", + "summary" : "Returns created annotation types", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/uploadType/annotationtypes" : { + "/v1/catalog/uploadType/artifactTypes" : { "post" : { - "description" : "Create AnnotationTypes from yaml", - "operationId" : "uploadAnnotationTypes", + "description" : "Create Tosca Artifact types from yaml", + "operationId" : "uploadArtifactTypes", "parameters" : [ { "in" : "header", "name" : "USER_ID", @@ -23472,10 +24570,18 @@ "schema" : { "type" : "object", "properties" : { - "annotationTypesZip" : { + "artifactsZip" : { "type" : "string", "format" : "binary", - "description" : "FileInputStream" + "description" : "Zip file containing a yaml with the TOSCA artifact types definition" + }, + "includeToModelImport" : { + "type" : "boolean", + "description" : "A flag to add types to the default imports" + }, + "model" : { + "type" : "string", + "description" : "model name" } } } @@ -23484,7 +24590,7 @@ }, "responses" : { "201" : { - "description" : "annotation types created" + "description" : "Tosca Artifact types created" }, "400" : { "description" : "Invalid content / Missing content" @@ -23493,7 +24599,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "annotation types already exist" + "description" : "Tosca Artifact Type already exist" }, "default" : { "content" : { @@ -23758,14 +24864,14 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns created annotation types", + "summary" : "Returns created Tosca artifact types", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/uploadType/artifactTypes" : { + "/v1/catalog/uploadType/capability" : { "post" : { - "description" : "Create Tosca Artifact types from yaml", - "operationId" : "uploadArtifactTypes", + "description" : "Create Capability Type from yaml", + "operationId" : "uploadCapabilityType", "parameters" : [ { "in" : "header", "name" : "USER_ID", @@ -23779,14 +24885,14 @@ "schema" : { "type" : "object", "properties" : { - "artifactsZip" : { + "capabilityTypeZip" : { "type" : "string", "format" : "binary", - "description" : "Zip file containing a yaml with the TOSCA artifact types definition" + "description" : "FileInputStream" }, "includeToModelImport" : { "type" : "boolean", - "description" : "A flag to add types to the default imports" + "description" : "includeToModelImport" }, "model" : { "type" : "string", @@ -23799,7 +24905,7 @@ }, "responses" : { "201" : { - "description" : "Tosca Artifact types created" + "description" : "Capability Type created" }, "400" : { "description" : "Invalid content / Missing content" @@ -23808,7 +24914,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "Tosca Artifact Type already exist" + "description" : "Capability Type already exist" }, "default" : { "content" : { @@ -24073,14 +25179,14 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns created Tosca artifact types", + "summary" : "Returns created Capability Type", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/uploadType/capability" : { + "/v1/catalog/uploadType/categories" : { "post" : { - "description" : "Create Capability Type from yaml", - "operationId" : "uploadCapabilityType", + "description" : "Create Categories from yaml", + "operationId" : "uploadCategories", "parameters" : [ { "in" : "header", "name" : "USER_ID", @@ -24094,18 +25200,10 @@ "schema" : { "type" : "object", "properties" : { - "capabilityTypeZip" : { + "categoriesZip" : { "type" : "string", "format" : "binary", "description" : "FileInputStream" - }, - "includeToModelImport" : { - "type" : "boolean", - "description" : "includeToModelImport" - }, - "model" : { - "type" : "string", - "description" : "model" } } } @@ -24114,7 +25212,7 @@ }, "responses" : { "201" : { - "description" : "Capability Type created" + "description" : "Categories created" }, "400" : { "description" : "Invalid content / Missing content" @@ -24123,7 +25221,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "Capability Type already exist" + "description" : "Category already exist" }, "default" : { "content" : { @@ -24388,14 +25486,14 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns created Capability Type", + "summary" : "Returns created categories", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/uploadType/categories" : { + "/v1/catalog/uploadType/datatypes" : { "post" : { - "description" : "Create Categories from yaml", - "operationId" : "uploadCategories", + "description" : "Create Data Types from zip", + "operationId" : "uploadDataTypes", "parameters" : [ { "in" : "header", "name" : "USER_ID", @@ -24409,10 +25507,18 @@ "schema" : { "type" : "object", "properties" : { - "categoriesZip" : { + "dataTypesZip" : { "type" : "string", "format" : "binary", "description" : "FileInputStream" + }, + "includeToModelImport" : { + "type" : "boolean", + "description" : "includeToModelImport" + }, + "model" : { + "type" : "string", + "description" : "model name" } } } @@ -24421,7 +25527,7 @@ }, "responses" : { "201" : { - "description" : "Categories created" + "description" : "Data types created" }, "400" : { "description" : "Invalid content / Missing content" @@ -24430,7 +25536,7 @@ "description" : "Restricted operation" }, "409" : { - "description" : "Category already exist" + "description" : "Data types already exist" }, "default" : { "content" : { @@ -24695,14 +25801,14 @@ "url" : "/sdc2/rest", "variables" : { } } ], - "summary" : "Returns created categories", + "summary" : "Returns created data types", "tags" : [ "SDCE-2 APIs" ] } }, - "/v1/catalog/uploadType/datatypes" : { + "/v1/catalog/uploadType/datatypesyaml" : { "post" : { - "description" : "Create Categories from yaml", - "operationId" : "uploadDataTypes", + "description" : "Create Data Types from yaml", + "operationId" : "uploadDataTypesYaml", "parameters" : [ { "in" : "header", "name" : "USER_ID", @@ -24716,7 +25822,7 @@ "schema" : { "type" : "object", "properties" : { - "dataTypesZip" : { + "dataTypesYaml" : { "type" : "string", "format" : "binary", "description" : "FileInputStream" @@ -24727,7 +25833,7 @@ }, "model" : { "type" : "string", - "description" : "model" + "description" : "model name" } } } @@ -25042,7 +26148,7 @@ }, "model" : { "type" : "string", - "description" : "model" + "description" : "model name" }, "toscaTypeMetadata" : { "type" : "string", @@ -25361,7 +26467,7 @@ }, "model" : { "type" : "string", - "description" : "model" + "description" : "model name" } } } @@ -25671,7 +26777,7 @@ }, "model" : { "type" : "string", - "description" : "model" + "description" : "model name" }, "policyTypesZip" : { "type" : "string", @@ -25990,7 +27096,7 @@ }, "model" : { "type" : "string", - "description" : "model" + "description" : "model name" }, "relationshipTypeZip" : { "type" : "string", @@ -48824,6 +49930,9 @@ "type" : "string" } }, + "tenant" : { + "type" : "string" + }, "uniqueId" : { "type" : "string" }, @@ -48855,6 +49964,9 @@ "defaultBaseType" : { "type" : "string" }, + "doNotExtendBaseType" : { + "type" : "boolean" + }, "required" : { "type" : "boolean" } @@ -48893,6 +50005,12 @@ "normalizedName" : { "type" : "string" }, + "notApplicableMetadataKeys" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, "ownerId" : { "type" : "string" }, @@ -49444,6 +50562,9 @@ "type" : "string", "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE" ] }, + "toscaSubPath" : { + "type" : "string" + }, "type" : { "type" : "string" }, @@ -49792,6 +50913,9 @@ "type" : "string", "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE" ] }, + "toscaSubPath" : { + "type" : "string" + }, "type" : { "type" : "string" }, @@ -49905,6 +51029,12 @@ "dataValidatorFilterExcludedUrls" : { "type" : "string" }, + "defaultCustomToscaFunctions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CustomToscaFunction" + } + }, "defaultImports" : { "type" : "array", "items" : { @@ -50386,6 +51516,17 @@ } } }, + "CustomToscaFunction" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "type" : { + "type" : "string" + } + } + }, "DataTypeDataDefinition" : { "type" : "object", "properties" : { @@ -50412,6 +51553,9 @@ "name" : { "type" : "string" }, + "normative" : { + "type" : "boolean" + }, "ownerId" : { "type" : "string" }, @@ -50471,6 +51615,9 @@ "name" : { "type" : "string" }, + "normative" : { + "type" : "boolean" + }, "ownerId" : { "type" : "string" }, @@ -51426,6 +52573,9 @@ "type" : "string", "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE" ] }, + "toscaSubPath" : { + "type" : "string" + }, "type" : { "type" : "string" }, @@ -51943,6 +53093,9 @@ "type" : "string", "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE" ] }, + "toscaSubPath" : { + "type" : "string" + }, "type" : { "type" : "string" }, @@ -53588,6 +54741,9 @@ "type" : "string", "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE" ] }, + "toscaSubPath" : { + "type" : "string" + }, "type" : { "type" : "string" }, @@ -53611,7 +54767,7 @@ "constraints" : { "type" : "array", "items" : { - "$ref" : "#/components/schemas/PropertyConstraint" + "type" : "object" } }, "defaultValue" : { @@ -53650,6 +54806,9 @@ "type" : "string", "enum" : [ "EQUAL", "IN_RANGE", "GREATER_THAN", "GREATER_OR_EQUAL", "LESS_OR_EQUAL", "LENGTH", "MIN_LENGTH", "MAX_LENGTH", "VALID_VALUES", "LESS_THAN", "PATTERN", "SCHEMA" ] }, + "originalType" : { + "type" : "string" + }, "propertyName" : { "type" : "string" }, @@ -53662,7 +54821,7 @@ }, "valueType" : { "type" : "string", - "enum" : [ "STATIC", "GET_PROPERTY", "GET_INPUT", "GET_ATTRIBUTE", "YAML", "CONCAT" ] + "enum" : [ "STATIC", "GET_PROPERTY", "GET_INPUT", "GET_ATTRIBUTE", "YAML", "CUSTOM", "CONCAT", "SEVERAL" ] } } }, @@ -54345,6 +55504,9 @@ "type" : "string" } }, + "tenant" : { + "type" : "string" + }, "topologyTemplate" : { "type" : "boolean" }, @@ -54766,6 +55928,9 @@ "type" : "string" } }, + "tenant" : { + "type" : "string" + }, "topologyTemplate" : { "type" : "boolean" }, @@ -55024,7 +56189,7 @@ }, "type" : { "type" : "string", - "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE", "CONCAT", "YAML", "STRING" ] + "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE", "CONCAT", "CUSTOM", "YAML", "STRING" ] }, "value" : { "type" : "string" @@ -55060,9 +56225,15 @@ "sourceUniqueId" : { "type" : "string" }, + "toscaIndexList" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, "type" : { "type" : "string", - "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE", "CONCAT", "YAML", "STRING" ] + "enum" : [ "GET_INPUT", "GET_PROPERTY", "GET_ATTRIBUTE", "CONCAT", "CUSTOM", "YAML", "STRING" ] } } }, @@ -55084,6 +56255,9 @@ "constraintOperator" : { "type" : "string" }, + "originalType" : { + "type" : "string" + }, "servicePropertyName" : { "type" : "string" }, -- cgit 1.2.3-korg