-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathnext.openapi.json
More file actions
100 lines (100 loc) · 2.1 KB
/
next.openapi.json
File metadata and controls
100 lines (100 loc) · 2.1 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"openapi": "3.0.0",
"info": {
"title": "jq Playground API",
"version": "1.0.0",
"description": "Execute jq queries and share snippets.\n\n**Want a UI?** Try the [jq playground](https://play.jqlang.org) for an interactive experience."
},
"servers": [
{
"url": "http://localhost:3000/api",
"description": "Local development server"
}
],
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
},
"defaultResponseSet": "common",
"responseSets": {
"common": [
"400",
"500"
],
"auth": [
"400",
"401",
"403",
"500"
],
"public": [
"400",
"500"
]
},
"errorConfig": {
"template": {
"type": "object",
"properties": {
"error": {
"type": "string",
"example": "{{ERROR_MESSAGE}}"
}
}
},
"codes": {
"400": {
"description": "Bad Request",
"variables": {
"ERROR_MESSAGE": "Invalid request parameters"
}
},
"401": {
"description": "Unauthorized",
"variables": {
"ERROR_MESSAGE": "Authentication required"
}
},
"403": {
"description": "Forbidden",
"variables": {
"ERROR_MESSAGE": "Access denied"
}
},
"404": {
"description": "Not Found",
"variables": {
"ERROR_MESSAGE": "Resource not found"
}
},
"409": {
"description": "Conflict",
"variables": {
"ERROR_MESSAGE": "Resource already exists"
}
},
"500": {
"description": "Internal Server Error",
"variables": {
"ERROR_MESSAGE": "An unexpected error occurred"
}
}
}
},
"apiDir": "./src/app/api",
"schemaDir": "./src",
"schemaType": "zod",
"schemaFiles": [],
"docsUrl": "api-docs",
"ui": "scalar",
"outputFile": "openapi.json",
"outputDir": "./public",
"includeOpenApiRoutes": false,
"ignoreRoutes": [],
"debug": false
}