Unverified Commit 7ddd7db8 authored by Marius Göcke's avatar Marius Göcke
Browse files

updated version

parent 1fae06a6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ v1.3.1;3170
v1.3.2;3170
v1.3.3;3169
v1.3.4;3300
v1.4.0;3427
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ services:
  simpleocr:
    container_name: simpleocr
    env_file: Variables.env
    image: simpleocr:1.3.5
    image: simpleocr:1.4.0
    ports:
    - 443:443
    volumes:
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
    codeunitspecificationversion="2.9.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/raw/v2.9.4/Conventions/RepositoryStructure/CommonProjectStructure/codeunit.xsd" enabled="true">
    <cps:name>SimpleOCR</cps:name>
    <cps:version>1.3.5</cps:version>
    <cps:version>1.4.0</cps:version>
    <cps:codeunitownername>Marius Göcke</cps:codeunitownername>
    <cps:codeunitowneremailaddress>marius.goecke@gmail.com</cps:codeunitowneremailaddress>
    <cps:properties codeunithastestablesourcecode="false" codeunithasupdatabledependencies="false"
+142 −5
Original line number Diff line number Diff line
{
  "openapi": "3.0.4",
  "info": {
    "title": "SimpleOCRService v1.3.5 API documentation",
    "title": "SimpleOCRService v1.4.0 API documentation",
    "description": "SimpleOCRService is a simple OCR-service with a REST-API.",
    "version": "v1.3.5"
    "version": "v1.4.0"
  },
  "paths": {
    "/API/Other/Maintenance/AvailabilityCheck": {
@@ -72,6 +72,13 @@
          "SimpleOCR"
        ],
        "parameters": [
          {
            "name": "fileType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "languags",
            "in": "query",
@@ -89,14 +96,14 @@
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                  "fileContent": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                "fileContent": {
                  "style": "form"
                }
              }
@@ -126,7 +133,137 @@
          }
        }
      }
    },
    "/API/v1/SimpleOCR/ToPicture": {
      "put": {
        "tags": [
          "SimpleOCR"
        ],
        "parameters": [
          {
            "name": "fileType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mimeType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          }
        }
      }
    },
    "/API/v1/SimpleOCR/GetSupportedLanguages": {
      "put": {
        "tags": [
          "SimpleOCR"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Language"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Language"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Language"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Language": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "isO639_1_Name": {
            "type": "string",
            "nullable": true
          },
          "isO639_3_Name": {
            "type": "string",
            "nullable": true
          }
        },
  "components": { }
        "additionalProperties": false
      }
    }
  }
}
 No newline at end of file
+88 −3
Original line number Diff line number Diff line
components: {}
components:
  schemas:
    Language:
      additionalProperties: false
      properties:
        isO639_1_Name:
          nullable: true
          type: string
        isO639_3_Name:
          nullable: true
          type: string
        name:
          nullable: true
          type: string
      type: object
info:
  description: SimpleOCRService is a simple OCR-service with a REST-API.
  title: SimpleOCRService v1.3.5 API documentation
  version: v1.3.5
  title: SimpleOCRService v1.4.0 API documentation
  version: v1.4.0
openapi: 3.0.4
paths:
  /API/Other/Maintenance/AvailabilityCheck:
@@ -43,12 +57,80 @@ paths:
  /API/v1/SimpleOCR/GetOCRContent:
    put:
      parameters:
      - in: query
        name: fileType
        schema:
          type: string
      - in: query
        name: languags
        schema:
          items:
            type: string
          type: array
      requestBody:
        content:
          multipart/form-data:
            encoding:
              fileContent:
                style: form
            schema:
              properties:
                fileContent:
                  format: binary
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                type: string
            text/json:
              schema:
                type: string
            text/plain:
              schema:
                type: string
          description: OK
      tags:
      - SimpleOCR
  /API/v1/SimpleOCR/GetSupportedLanguages:
    put:
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Language'
                type: array
                uniqueItems: true
            text/json:
              schema:
                items:
                  $ref: '#/components/schemas/Language'
                type: array
                uniqueItems: true
            text/plain:
              schema:
                items:
                  $ref: '#/components/schemas/Language'
                type: array
                uniqueItems: true
          description: OK
      tags:
      - SimpleOCR
  /API/v1/SimpleOCR/ToPicture:
    put:
      parameters:
      - in: query
        name: fileType
        schema:
          type: string
      - in: query
        name: mimeType
        schema:
          type: string
      requestBody:
        content:
          multipart/form-data:
@@ -66,12 +148,15 @@ paths:
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            text/plain:
              schema:
                format: byte
                type: string
          description: OK
      tags:
Loading