---
swagger: "2.0"
info:
  version: "7.2.1"
  title: "Activiti Cloud Audit :: Starter :: Audit ReST API"
  license:
    name: "© null-null null. All rights reserved"
host: "localhost"
basePath: "/"
tags:
- name: "audit-events-admin-controller-impl"
  description: "Audit Events Admin Controller Impl"
- name: "audit-events-controller-impl"
  description: "Audit Events Controller Impl"
- name: "audit-events-delete-controller"
  description: "Audit Events Delete Controller"
paths:
  /admin/v1/events:
    get:
      tags:
      - "audit-events-admin-controller-impl"
      summary: "findAll"
      operationId: "findAllUsingGET"
      produces:
      - "application/hal+json"
      - "application/json"
      parameters:
      - name: "maxItems"
        in: "query"
        required: false
        type: "integer"
        format: "int32"
      - name: "skipCount"
        in: "query"
        required: false
        type: "integer"
        format: "int32"
      - name: "sort"
        in: "query"
        required: false
        type: "string"
      responses:
        "200":
          description: "OK"
          schema:
            $ref: "#/definitions/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
    delete:
      tags:
      - "audit-events-delete-controller"
      summary: "deleteEvents"
      operationId: "deleteEventsUsingDELETE"
      produces:
      - "application/hal+json"
      - "application/json"
      responses:
        "200":
          description: "OK"
          schema:
            $ref: "#/definitions/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "204":
          description: "No Content"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
  /v1/events:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "findAll"
      operationId: "findAllUsingGET_1"
      produces:
      - "application/hal+json"
      - "application/json"
      parameters:
      - name: "maxItems"
        in: "query"
        required: false
        type: "integer"
        format: "int32"
      - name: "search"
        in: "query"
        description: "search"
        required: false
        type: "string"
      - name: "skipCount"
        in: "query"
        required: false
        type: "integer"
        format: "int32"
      - name: "sort"
        in: "query"
        required: false
        type: "string"
      responses:
        "200":
          description: "OK"
          schema:
            $ref: "#/definitions/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
  /v1/events/{eventId}:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "findById"
      operationId: "findByIdUsingGET"
      produces:
      - "application/hal+json"
      - "application/json"
      parameters:
      - name: "eventId"
        in: "path"
        description: "eventId"
        required: true
        type: "string"
      responses:
        "200":
          description: "OK"
          schema:
            $ref: "#/definitions/EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
definitions:
  CloudRuntimeEventModel:
    type: "object"
    properties:
      appName:
        type: "string"
      appVersion:
        type: "string"
      businessKey:
        type: "string"
      entity:
        type: "object"
      entityId:
        type: "string"
      eventType:
        type: "string"
        enum:
        - "ACTIVITY_CANCELLED"
        - "ACTIVITY_COMPLETED"
        - "ACTIVITY_STARTED"
        - "APPLICATION_DEPLOYED"
        - "ERROR_RECEIVED"
        - "INTEGRATION_ERROR_RECEIVED"
        - "INTEGRATION_REQUESTED"
        - "INTEGRATION_RESULT_RECEIVED"
        - "MESSAGE_RECEIVED"
        - "MESSAGE_SENT"
        - "MESSAGE_WAITING"
        - "PROCESS_CANCELLED"
        - "PROCESS_COMPLETED"
        - "PROCESS_CREATED"
        - "PROCESS_DEPLOYED"
        - "PROCESS_RESUMED"
        - "PROCESS_STARTED"
        - "PROCESS_SUSPENDED"
        - "PROCESS_UPDATED"
        - "SEQUENCE_FLOW_TAKEN"
        - "SIGNAL_RECEIVED"
        - "TASK_ACTIVATED"
        - "TASK_ASSIGNED"
        - "TASK_CANCELLED"
        - "TASK_CANDIDATE_GROUP_ADDED"
        - "TASK_CANDIDATE_GROUP_REMOVED"
        - "TASK_CANDIDATE_USER_ADDED"
        - "TASK_CANDIDATE_USER_REMOVED"
        - "TASK_COMPLETED"
        - "TASK_CREATED"
        - "TASK_SUSPENDED"
        - "TASK_UPDATED"
        - "TIMER_CANCELLED"
        - "TIMER_EXECUTED"
        - "TIMER_FAILED"
        - "TIMER_FIRED"
        - "TIMER_RETRIES_DECREMENTED"
        - "TIMER_SCHEDULED"
        - "VARIABLE_CREATED"
        - "VARIABLE_DELETED"
        - "VARIABLE_UPDATED"
      id:
        type: "string"
      messageId:
        type: "string"
      parentProcessInstanceId:
        type: "string"
      processDefinitionId:
        type: "string"
      processDefinitionKey:
        type: "string"
      processDefinitionVersion:
        type: "integer"
        format: "int32"
      processInstanceId:
        type: "string"
      sequenceNumber:
        type: "integer"
        format: "int32"
      serviceFullName:
        type: "string"
      serviceName:
        type: "string"
      serviceType:
        type: "string"
      serviceVersion:
        type: "string"
      timestamp:
        type: "integer"
        format: "int64"
    title: "CloudRuntimeEventModel"
  EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring:
    type: "object"
    properties:
      entries:
        type: "array"
        items:
          $ref: "#/definitions/EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
      pagination:
        $ref: "#/definitions/PaginationMetadata"
    title: "EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring"
  EntryResponseContentOfCloudRuntimeEventOfobjectAndstring:
    type: "object"
    properties:
      entry:
        $ref: "#/definitions/CloudRuntimeEventModel"
    title: "EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
  ListResponseContentOfCloudRuntimeEventOfobjectAndstring:
    type: "object"
    properties:
      list:
        $ref: "#/definitions/EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring"
    title: "ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
  PaginationMetadata:
    type: "object"
    properties:
      count:
        type: "integer"
        format: "int64"
      hasMoreItems:
        type: "boolean"
      maxItems:
        type: "integer"
        format: "int64"
      skipCount:
        type: "integer"
        format: "int64"
      totalItems:
        type: "integer"
        format: "int64"
    title: "PaginationMetadata"
