openapi: 3.0.0
info:
  version: INDOCS
  title: inDocs API Service
  description: inDocs API Service - for use by inDocs ONLY
  contact:
    name: Intact
    email: help@intactsoftware.com
    url: https://www.intactsoftware.com/
servers:
  - url: http://localhost:44391/
paths:
  /Document:
    post:
      description: ''
      operationId: 'createNewDocument'
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Document_Write'
      responses:
        200:
          description: The post was successful
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
  schemas:
    PostResponse:
      type: object
      properties:
        Status:
          type: string
        Message:
          type: string
        QueueEntryId:
          type: integer
        Data:
          type: array
          items:
            type: object
            properties:
              Id:
                type: integer
              TypeName:
                type: string
              Info:
                type: string
    PutResponse:
      type: object
      properties:
        Status:
          type: string
        Message:
          type: string
        QueueEntryId:
          type: integer
        Data:
          type: array
          items:
            type: object
            properties:
              Id:
                type: integer
              TypeName:
                type: string
              Info:
                type: string
    Document:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Base64Document:
          type: string
        ObjectTypeName:
          type: string
        ObjectTemplateName:
          type: string
        TemplateName:
          type: string
        SuccessRate:
          type: number
        DocumentId:
          type: number
        TemplateId:
          type: number
        Fields:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              PropertyName:
                type: string
              SuccessRate:
                type: number
              Value:
                type: string
        MimeType:
          type: string
        EmailId:
          type: string
        EmailUniqueId:
          type: string
        EmailFolder:
          type: string
        EmailTo:
          type: string
        EmailCc:
          type: string
        EmailFrom:
          type: string
        EmailSubject:
          type: string
        EmailMessage:
          type: string
        EmailDateSent:
          type: string
          format: date
        EmailDateReceived:
          type: string
          format: date
        AttachmentMimeType:
          type: string
        AttachmentSizeBytes:
          type: number
        AttachmentFileName:
          type: string
        AttachmentDateCreated:
          type: string
          format: date
        AttachmentDateModified:
          type: string
          format: date
    Document_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Base64Document:
          type: string
        ObjectTypeName:
          type: string
        ObjectTemplateName:
          type: string
        TemplateName:
          type: string
        SuccessRate:
          type: number
        DocumentId:
          type: number
        TemplateId:
          type: number
        Fields:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              PropertyName:
                type: string
              SuccessRate:
                type: number
              Value:
                type: string
        MimeType:
          type: string
        EmailId:
          type: string
        EmailUniqueId:
          type: string
        EmailFolder:
          type: string
        EmailTo:
          type: string
        EmailCc:
          type: string
        EmailFrom:
          type: string
        EmailSubject:
          type: string
        EmailMessage:
          type: string
        EmailDateSent:
          type: string
          format: date
        EmailDateReceived:
          type: string
          format: date
        AttachmentMimeType:
          type: string
        AttachmentSizeBytes:
          type: number
        AttachmentFileName:
          type: string
        AttachmentDateCreated:
          type: string
          format: date
        AttachmentDateModified:
          type: string
          format: date
    DocumentCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Document'
security:
  - apiKey: []
