--- swagger: "2.0" info: description: "Flowable Platform" version: "v1" title: "Flowable Template REST API" contact: name: "Flowable" url: "http://www.flowable.com/" host: "localhost:8090" basePath: "/template-api" tags: - name: "Engine" - name: "Template Definitions" - name: "Template Deployments" - name: "Template Variation Definitions" schemes: - "http" - "https" paths: /template-management/engine: get: tags: - "Engine" summary: "Get Template engine info" description: "Returns a read-only view of the engine that is used in this REST-service." operationId: "getEngineInfo" produces: - "application/json" parameters: [] responses: 200: description: "Indicates the engine info is returned." schema: $ref: "#/definitions/EngineInfoResponse" security: - basicAuth: [] /template-repository/deployments: get: tags: - "Template Deployments" summary: "List of Template Deployments" description: "" operationId: "listTemplateDeployments" produces: - "application/json" parameters: - name: "name" in: "query" description: "Only return template deployments with the given name." required: false type: "string" - name: "nameLike" in: "query" description: "Only return template deployments with a name like the given\ \ name." required: false type: "string" - name: "category" in: "query" description: "Only return template deployments with the given category." required: false type: "string" - name: "categoryNotEquals" in: "query" description: "Only return template deployments which don’t have the given\ \ category." required: false type: "string" - name: "tenantId" in: "query" description: "Only return template deployments with the given tenantId." required: false type: "string" - name: "tenantIdLike" in: "query" description: "Only return template deployments with a tenantId like the given\ \ value." required: false type: "string" - name: "withoutTenantId" in: "query" description: "If true, only returns template deployments without a tenantId\ \ set. If false, the withoutTenantId parameter is ignored." required: false type: "boolean" - name: "sort" in: "query" description: "Property to sort on, to be used together with the order." required: false type: "string" enum: - "id" - "name" - "deployTime" - "tenantId" responses: 200: description: "Indicates the request was successful." schema: $ref: "#/definitions/DataResponseTemplateDeploymentResponse" security: - basicAuth: [] post: tags: - "Template Deployments" summary: "Create a new template deployment" description: "The request body should contain data of type multipart/form-data.\ \ There should be exactly one file in the request, any additional files will\ \ be ignored. The deployment name is the name of the file-field passed in.\ \ Make sure the file-name ends with .tpl." operationId: "uploadDeployment" consumes: - "multipart/form-data" produces: - "application/json" parameters: - name: "tenantId" in: "query" required: false type: "string" responses: 200: description: "successful operation" schema: $ref: "#/definitions/TemplateDeploymentResponse" 201: description: "Indicates the template deployment was created." 400: description: "Indicates there was no content present in the request body\ \ or the content mime-type is not supported for template deployment. The\ \ status-description contains additional information." security: - basicAuth: [] /template-repository/deployments/{deploymentId}: get: tags: - "Template Deployments" summary: "Get a template deployment" description: "" operationId: "getTemplateDeployment" produces: - "application/json" parameters: - name: "deploymentId" in: "path" required: true type: "string" responses: 200: description: "Indicates the template deployment was found and returned." schema: $ref: "#/definitions/TemplateDeploymentResponse" 404: description: "Indicates the requested template deployment was not found." security: - basicAuth: [] delete: tags: - "Template Deployments" summary: "Delete a template deployment" description: "" operationId: "deleteTemplateDeployment" produces: - "application/json" parameters: - name: "deploymentId" in: "path" required: true type: "string" responses: 204: description: "Indicates the template deployment was found and has been deleted.\ \ Response-body is intentionally empty." 404: description: "Indicates the requested template deployment was not found." security: - basicAuth: [] /template-repository/deployments/{deploymentId}/resourcedata/{resourceName}: get: tags: - "Template Deployments" summary: "Get an template deployment resource content" description: "The response body will contain the binary resource-content for\ \ the requested resource. The response content-type will be the same as the\ \ type returned in the resources mimeType property. Also, a content-disposition\ \ header is set, allowing browsers to download the file instead of displaying\ \ it." operationId: "getTemplateDeploymentResource" parameters: - name: "deploymentId" in: "path" required: true type: "string" - name: "resourceName" in: "path" required: true type: "string" responses: 200: description: "Indicates both template deployment and resource have been\ \ found and the resource data has been returned." schema: type: "array" items: type: "string" format: "byte" 404: description: "Indicates the requested template deployment was not found\ \ or there is no resource with the given id present in the template deployment.\ \ The status-description contains additional information." security: - basicAuth: [] /template-repository/template-definitions: get: tags: - "Template Definitions" summary: "Query template definitions" description: "" operationId: "queryTemplateDefinitions" produces: - "application/json" parameters: - name: "id" in: "query" description: "Only return template definitions with the given id." required: false type: "string" - name: "name" in: "query" description: "Only return template definitions with the given name." required: false type: "string" - name: "nameLike" in: "query" description: "Only return template definitions with a name like the given\ \ name." required: false type: "string" - name: "nameLikeIgnoreCase" in: "query" description: "Only return template definitions with a name like the given\ \ name ignoring the case." required: false type: "string" - name: "key" in: "query" description: "Only return template definitions with the given key." required: false type: "string" - name: "keyLike" in: "query" description: "Only return template definitions with a key like the given key." required: false type: "string" - name: "deploymentId" in: "query" description: "Only return template definitions with the given deployment id." required: false type: "string" - name: "type" in: "query" description: "Only return template definitions with the given type." required: false type: "integer" - name: "subType" in: "query" description: "Only return template definitions with the given sub type." required: false type: "boolean" - name: "formKey" in: "query" description: "Only return template definitions with the given form key." required: false type: "string" responses: 200: description: "successful operation" schema: $ref: "#/definitions/DataResponseTemplateDefinitionResponse" security: - basicAuth: [] /template-repository/template-definitions/key/{templateDefinitionKey}: get: tags: - "Template Definitions" summary: "Get template definition by key" description: "" operationId: "getTemplateDefinitionByKey" produces: - "application/json" parameters: - name: "templateDefinitionKey" in: "path" description: "Key of the template definition" required: true type: "string" responses: 200: description: "Indicates the template definition was found and returned." schema: $ref: "#/definitions/TemplateDefinitionResponse" 403: description: "Indicates the user does not have the rights to query for the\ \ template definition." 404: description: "Indicates the requested template definition was not found." security: - basicAuth: [] /template-repository/template-definitions/{templateDefinitionId}: get: tags: - "Template Definitions" summary: "Get template definition" description: "" operationId: "getTemplateDefinition" produces: - "application/json" parameters: - name: "templateDefinitionId" in: "path" description: "Unique identifier of the template definition" required: true type: "string" responses: 200: description: "Indicates the template definition was found and returned." schema: $ref: "#/definitions/TemplateDefinitionResponse" 403: description: "Indicates the user does not have the rights to query for the\ \ template definition." 404: description: "Indicates the requested template definition was not found." security: - basicAuth: [] /template-repository/template-variation-definitions: get: tags: - "Template Variation Definitions" summary: "Query template variation definitions" description: "" operationId: "queryTemplateDefinitions" produces: - "application/json" parameters: - name: "id" in: "query" description: "Only return template variation definitions with the given id." required: false type: "string" - name: "templateDefinitionKey" in: "query" description: "Only return template variation definitions with the given template\ \ definition key." required: false type: "string" - name: "templateDefinitionKeyLike" in: "query" description: "Only return template variation definitions with a template definition\ \ key like the given key." required: false type: "string" - name: "variationKey" in: "query" description: "Only return template variation definitions with the given variation\ \ key." required: false type: "string" - name: "variationKeyLike" in: "query" description: "Only return template variation definitions with a variation\ \ key like the given key." required: false type: "string" - name: "name" in: "query" description: "Only return template variation definitions with the given name." required: false type: "string" - name: "nameLike" in: "query" description: "Only return template variation definitions with a name like\ \ the given name." required: false type: "string" - name: "version" in: "query" description: "Only return template variation definitions with the given version." required: false type: "string" - name: "latest" in: "query" description: "Only return the latest template variation definitions." required: false type: "boolean" - name: "deploymentId" in: "query" description: "Only return template variation definitions with the given deployment\ \ id." required: false type: "string" - name: "validFromBefore" in: "query" description: "Only return template variation definitions that are valid from\ \ before the given date." required: false type: "date" - name: "validFromAfter" in: "query" description: "Only return template variation definitions that are valid from\ \ before the given date." required: false type: "date" - name: "validToBefore" in: "query" description: "Only return template variation definitions that are valid to\ \ before the given date." required: false type: "date" - name: "validToAfter" in: "query" description: "Only return template variation definitions that are valid to\ \ after the given date." required: false type: "date" - name: "validOn" in: "query" description: "Only return template variation definitions that are valid on\ \ given date." required: false type: "date" - name: "externalId" in: "query" description: "Only return template variation definitions with the given external\ \ ID." required: false type: "string" - name: "contentId" in: "query" description: "Only return template variation definitions with the given content\ \ ID." required: false type: "boolean" - name: "tenantId" in: "query" description: "Only return template variation definitions with the given tenant\ \ ID." required: false type: "string" responses: 200: description: "successful operation" schema: $ref: "#/definitions/DataResponseTemplateVariationDefinitionResponse" security: - basicAuth: [] /template-repository/template-variation-definitions/{templateVariationDefinitionId}: get: tags: - "Template Variation Definitions" summary: "Get template variation definition" description: "" operationId: "getTemplateVariationDefinition" produces: - "application/json" parameters: - name: "templateVariationDefinitionId" in: "path" description: "Unique identifier of the template variation definition" required: true type: "string" responses: 200: description: "Indicates the template variation definition was found and\ \ returned." schema: $ref: "#/definitions/TemplateVariationDefinitionResponse" 403: description: "Indicates the user does not have the rights to query for the\ \ template variation definition." 404: description: "Indicates the requested template variation definition was\ \ not found." security: - basicAuth: [] securityDefinitions: basicAuth: type: "basic" definitions: DataResponse: type: "object" properties: data: type: "array" items: type: "object" total: type: "integer" format: "int64" start: type: "integer" format: "int32" sort: type: "string" order: type: "string" size: type: "integer" format: "int32" DataResponseTemplateDefinitionResponse: type: "object" properties: data: type: "array" items: $ref: "#/definitions/TemplateDefinitionResponse" total: type: "integer" format: "int64" start: type: "integer" format: "int32" sort: type: "string" order: type: "string" size: type: "integer" format: "int32" DataResponseTemplateDeploymentResponse: type: "object" properties: data: type: "array" items: $ref: "#/definitions/TemplateDeploymentResponse" total: type: "integer" format: "int64" start: type: "integer" format: "int32" sort: type: "string" order: type: "string" size: type: "integer" format: "int32" DataResponseTemplateVariationDefinitionResponse: type: "object" properties: data: type: "array" items: $ref: "#/definitions/TemplateVariationDefinitionResponse" total: type: "integer" format: "int64" start: type: "integer" format: "int32" sort: type: "string" order: type: "string" size: type: "integer" format: "int32" EngineInfoResponse: type: "object" properties: name: type: "string" example: "default" resourceUrl: type: "string" example: "file://flowable/flowable.cfg.xml" exception: type: "string" example: "null" version: type: "string" example: "6.3.1" TemplateDefinitionResponse: type: "object" required: - "id" - "key" - "version" properties: id: type: "string" description: "The unique identifier of an template definition" name: type: "string" description: "The name of the template definition" key: type: "string" description: "The key of the template definition" version: type: "integer" format: "int32" description: "The version of the template definition" deploymentId: type: "string" description: "The deployment id of the template definition" tenantId: type: "string" description: "The tenant id of the template definition" resourceName: type: "string" description: "The resource name of the template definition" description: type: "string" description: "The description of the template definition" type: type: "string" description: "The type of the template definition" subType: type: "string" description: "The sub type of the template definition" formKey: type: "string" description: "The form key for the template definition" creationTime: type: "string" format: "date-time" description: "The creation time of the template definition" creatorId: type: "string" description: "The creator id of the template definition" updateTime: type: "string" format: "date-time" description: "The update itme of the template definition" updatorId: type: "string" description: "The updator id of the template definition" description: "The response for an template definition" TemplateDeploymentResponse: type: "object" required: - "id" properties: id: type: "string" description: "The unique identifier of a template deployment" name: type: "string" description: "The name of the template deployment" deploymentTime: type: "string" description: "The deployment time of the template deployment" category: type: "string" description: "The category of the template deployment" parentDeploymentId: type: "string" description: "The parent deployment id of the template deployment" tenantId: type: "string" description: "The tenant id of the template deployment" description: "The response for a template deployment" TemplateVariationDefinitionResponse: type: "object" required: - "id" - "templateDefinitionKey" - "variationKey" - "version" properties: id: type: "string" description: "The unique identifier of an template variation definition" name: type: "string" description: "The name of the template variation definition" templateDefinitionKey: type: "string" description: "The template definition key of the template variation definition" variationKey: type: "string" description: "The variation key of the template variation definition" version: type: "integer" format: "int32" description: "The version of the template variation definition" deploymentId: type: "string" description: "The deployment id of the template variation definition" tenantId: type: "string" description: "The tenant id of the template variation definition" resourceName: type: "string" description: "The resource name of the template variation definition" externalId: type: "string" description: "The external id of the template variation definition" hasSmallContent: type: "boolean" description: "Indicates if the template variation only has small content" contentId: type: "string" description: "The content id of the template variation definition" description: "The response for an template variation definition"