-
Notifications
You must be signed in to change notification settings - Fork 16
/
chatocr.fly.dev.yaml
55 lines (55 loc) · 1.51 KB
/
chatocr.fly.dev.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
openapi: 3.0.1
info:
title: OCR Plugin
description: The best way to read text from from any document. Extract text from scanned PDFs, photos, and even handwriting.
version: "v1"
servers:
- url: https://chatocr.fly.dev
paths:
/upload_url:
post:
operationId: uploadUrl
summary: Upload a URL to a file and return the OCR data
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
description: The URL of the file
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
description: The OCR data for the file
/feedback:
post:
operationId: sendFeedback
summary: Save feedback to developers for review
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
feedback:
type: string
description: The feedback string from the user
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: string
description: A success message thanking the user for the feedback