---
openapi: "3.0.3"
info:
  title: "Audit Service ReST API"
  license:
    name: "© null-null null. All rights reserved"
  version: "0.0.1-PR-538-793-SNAPSHOT"
servers:
- url: "/"
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"
      parameters:
      - name: "maxItems"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "skipCount"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "sort"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
    delete:
      tags:
      - "audit-events-delete-controller"
      summary: "deleteEvents"
      operationId: "deleteEventsUsingDELETE"
      responses:
        "200":
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "204":
          description: "No Content"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
      security:
      - oauth: []
  /v1/events:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "findAll"
      operationId: "findAllUsingGET_1"
      parameters:
      - name: "maxItems"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "search"
        in: "query"
        description: "search"
        required: false
        style: "form"
        schema:
          type: "string"
      - name: "skipCount"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "integer"
          format: "int32"
      - name: "sort"
        in: "query"
        required: false
        style: "form"
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
            application/hal+json:
              schema:
                $ref: "#/components/schemas/ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
  /v1/events/{eventId}:
    get:
      tags:
      - "audit-events-controller-impl"
      summary: "findById"
      operationId: "findByIdUsingGET"
      parameters:
      - name: "eventId"
        in: "path"
        description: "eventId"
        required: true
        style: "simple"
        schema:
          type: "string"
      responses:
        "200":
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
            application/hal+json:
              schema:
                $ref: "#/components/schemas/EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
        "401":
          description: "Unauthorized"
        "403":
          description: "Forbidden"
        "404":
          description: "Not Found"
      security:
      - oauth: []
components:
  schemas:
    CloudRuntimeEventModel:
      title: "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"
    EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring:
      title: "EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring"
      type: "object"
      properties:
        entries:
          type: "array"
          items:
            $ref: "#/components/schemas/EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
        pagination:
          $ref: "#/components/schemas/PaginationMetadata"
    EntryResponseContentOfCloudRuntimeEventOfobjectAndstring:
      title: "EntryResponseContentOfCloudRuntimeEventOfobjectAndstring"
      type: "object"
      properties:
        entry:
          $ref: "#/components/schemas/CloudRuntimeEventModel"
    ListResponseContentOfCloudRuntimeEventOfobjectAndstring:
      title: "ListResponseContentOfCloudRuntimeEventOfobjectAndstring"
      type: "object"
      properties:
        list:
          $ref: "#/components/schemas/EntriesResponseContentOfCloudRuntimeEventOfobjectAndstring"
    PaginationMetadata:
      title: "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"
  securitySchemes:
    oauth:
      type: "oauth2"
      description: "Authorizing with SSO"
      flows:
        implicit:
          authorizationUrl: "http://localhost:49258/auth/realms/activiti/protocol/openid-connect/auth"
          scopes: {}
extensions:
  service-url-prefix: ""
