-
Notifications
You must be signed in to change notification settings - Fork 2
/
openapi.json
78 lines (78 loc) · 2.24 KB
/
openapi.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"openapi": "3.0.0",
"info": {
"title": "Homebrewery API",
"version": "1.0.0",
"description": "An API to process text and return a URL from the Homebrewery site using Puppeteer."
},
"servers": [
{
"url": "https://us-central1-dragonroll-1.cloudfunctions.net/"
}
],
"paths": {
"/createHomebrew": {
"post": {
"operationId": "createHomebrew",
"summary": "Process text and return a new URL",
"description": "Takes text as input, processes it using Puppeteer, and returns the resulting URL.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The text to be processed."
}
},
"required": [
"content"
]
}
}
}
},
"responses": {
"200": {
"description": "Successfully processed the text and returned the URL.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The resulting URL after processing."
}
}
}
}
}
},
"400": {
"description": "Bad request, usually due to missing content in the request."
},
"500": {
"description": "Internal server error, indicating a problem with the server or the script."
}
}
}
}
},
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Description of the error."
}
}
}
}
}
}