-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
42 lines (42 loc) · 1.06 KB
/
openapi.yaml
File metadata and controls
42 lines (42 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
openapi: 3.0.2
info:
description: OCR service
title: OCR API
version: 1.0
servers:
- url: 'http://localhost:8080/'
paths:
/ocr:
post:
summary: OCR image
description: Extract text from image
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
language:
type: string
description: Language code(s)
maxLength: 50
example: eng
file:
type: string
format: binary
description: Image data
required:
- language
- file
responses:
'200':
description: OK
content:
text/plain:
schema:
type: string
'400':
description: Validation failed. Please check function parameters
'500':
description: Server error