agentlang 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +83 -0
- package/README.md +120 -0
- package/bin/cli.js +4 -0
- package/out/api/http.d.ts +3 -0
- package/out/api/http.d.ts.map +1 -0
- package/out/api/http.js +290 -0
- package/out/api/http.js.map +1 -0
- package/out/cli/cli-util.d.ts +7 -0
- package/out/cli/cli-util.d.ts.map +1 -0
- package/out/cli/cli-util.js +9 -0
- package/out/cli/cli-util.js.map +1 -0
- package/out/cli/docs.d.ts +2 -0
- package/out/cli/docs.d.ts.map +1 -0
- package/out/cli/docs.js +236 -0
- package/out/cli/docs.js.map +1 -0
- package/out/cli/main.d.ts +288 -0
- package/out/cli/main.d.ts.map +1 -0
- package/out/cli/main.js +119 -0
- package/out/cli/main.js.map +1 -0
- package/out/cli/openapi-docs.yml +695 -0
- package/out/extension/main.cjs +18093 -0
- package/out/extension/main.cjs.map +7 -0
- package/out/extension/main.d.ts +4 -0
- package/out/extension/main.d.ts.map +1 -0
- package/out/extension/main.js +42 -0
- package/out/extension/main.js.map +1 -0
- package/out/language/agentlang-module.d.ts +42 -0
- package/out/language/agentlang-module.d.ts.map +1 -0
- package/out/language/agentlang-module.js +42 -0
- package/out/language/agentlang-module.js.map +1 -0
- package/out/language/agentlang-validator.d.ts +15 -0
- package/out/language/agentlang-validator.d.ts.map +1 -0
- package/out/language/agentlang-validator.js +50 -0
- package/out/language/agentlang-validator.js.map +1 -0
- package/out/language/generated/ast.d.ts +491 -0
- package/out/language/generated/ast.d.ts.map +1 -0
- package/out/language/generated/ast.js +934 -0
- package/out/language/generated/ast.js.map +1 -0
- package/out/language/generated/grammar.d.ts +7 -0
- package/out/language/generated/grammar.d.ts.map +1 -0
- package/out/language/generated/grammar.js +4475 -0
- package/out/language/generated/grammar.js.map +1 -0
- package/out/language/generated/module.d.ts +14 -0
- package/out/language/generated/module.d.ts.map +1 -0
- package/out/language/generated/module.js +21 -0
- package/out/language/generated/module.js.map +1 -0
- package/out/language/main-browser.d.ts +2 -0
- package/out/language/main-browser.d.ts.map +1 -0
- package/out/language/main-browser.js +10 -0
- package/out/language/main-browser.js.map +1 -0
- package/out/language/main.cjs +36229 -0
- package/out/language/main.cjs.map +7 -0
- package/out/language/main.d.ts +2 -0
- package/out/language/main.d.ts.map +1 -0
- package/out/language/main.js +11 -0
- package/out/language/main.js.map +1 -0
- package/out/language/parser.d.ts +9 -0
- package/out/language/parser.d.ts.map +1 -0
- package/out/language/parser.js +273 -0
- package/out/language/parser.js.map +1 -0
- package/out/language/syntax.d.ts +155 -0
- package/out/language/syntax.d.ts.map +1 -0
- package/out/language/syntax.js +527 -0
- package/out/language/syntax.js.map +1 -0
- package/out/runtime/agents/common.d.ts +2 -0
- package/out/runtime/agents/common.d.ts.map +1 -0
- package/out/runtime/agents/common.js +178 -0
- package/out/runtime/agents/common.js.map +1 -0
- package/out/runtime/agents/impl/openai.d.ts +8 -0
- package/out/runtime/agents/impl/openai.d.ts.map +1 -0
- package/out/runtime/agents/impl/openai.js +15 -0
- package/out/runtime/agents/impl/openai.js.map +1 -0
- package/out/runtime/agents/provider.d.ts +21 -0
- package/out/runtime/agents/provider.d.ts.map +1 -0
- package/out/runtime/agents/provider.js +32 -0
- package/out/runtime/agents/provider.js.map +1 -0
- package/out/runtime/agents/registry.d.ts +2 -0
- package/out/runtime/agents/registry.d.ts.map +1 -0
- package/out/runtime/agents/registry.js +10 -0
- package/out/runtime/agents/registry.js.map +1 -0
- package/out/runtime/auth/cognito.d.ts +16 -0
- package/out/runtime/auth/cognito.d.ts.map +1 -0
- package/out/runtime/auth/cognito.js +186 -0
- package/out/runtime/auth/cognito.js.map +1 -0
- package/out/runtime/auth/defs.d.ts +11 -0
- package/out/runtime/auth/defs.d.ts.map +1 -0
- package/out/runtime/auth/defs.js +24 -0
- package/out/runtime/auth/defs.js.map +1 -0
- package/out/runtime/auth/interface.d.ts +22 -0
- package/out/runtime/auth/interface.d.ts.map +1 -0
- package/out/runtime/auth/interface.js +2 -0
- package/out/runtime/auth/interface.js.map +1 -0
- package/out/runtime/defs.js +24 -0
- package/out/runtime/defs.js.map +1 -0
- package/out/runtime/interpreter.d.ts +69 -0
- package/out/runtime/interpreter.d.ts.map +1 -0
- package/out/runtime/interpreter.js +1163 -0
- package/out/runtime/interpreter.js.map +1 -0
- package/out/runtime/loader.d.ts +25 -0
- package/out/runtime/loader.d.ts.map +1 -0
- package/out/runtime/loader.js +346 -0
- package/out/runtime/loader.js.map +1 -0
- package/out/runtime/logger.d.ts +2 -0
- package/out/runtime/logger.d.ts.map +1 -0
- package/out/runtime/logger.js +44 -0
- package/out/runtime/logger.js.map +1 -0
- package/out/runtime/module.d.ts +273 -0
- package/out/runtime/module.d.ts.map +1 -0
- package/out/runtime/module.js +1786 -0
- package/out/runtime/module.js.map +1 -0
- package/out/runtime/modules/ai.d.ts +26 -0
- package/out/runtime/modules/ai.d.ts.map +1 -0
- package/out/runtime/modules/ai.js +211 -0
- package/out/runtime/modules/ai.js.map +1 -0
- package/out/runtime/modules/auth.d.ts +39 -0
- package/out/runtime/modules/auth.d.ts.map +1 -0
- package/out/runtime/modules/auth.js +359 -0
- package/out/runtime/modules/auth.js.map +1 -0
- package/out/runtime/modules/core.d.ts +2 -0
- package/out/runtime/modules/core.d.ts.map +1 -0
- package/out/runtime/modules/core.js +67 -0
- package/out/runtime/modules/core.js.map +1 -0
- package/out/runtime/relgraph.d.ts +21 -0
- package/out/runtime/relgraph.d.ts.map +1 -0
- package/out/runtime/relgraph.js +156 -0
- package/out/runtime/relgraph.js.map +1 -0
- package/out/runtime/resolvers/interface.d.ts +59 -0
- package/out/runtime/resolvers/interface.d.ts.map +1 -0
- package/out/runtime/resolvers/interface.js +111 -0
- package/out/runtime/resolvers/interface.js.map +1 -0
- package/out/runtime/resolvers/registry.d.ts +8 -0
- package/out/runtime/resolvers/registry.d.ts.map +1 -0
- package/out/runtime/resolvers/registry.js +26 -0
- package/out/runtime/resolvers/registry.js.map +1 -0
- package/out/runtime/resolvers/sqldb/database.d.ts +50 -0
- package/out/runtime/resolvers/sqldb/database.d.ts.map +1 -0
- package/out/runtime/resolvers/sqldb/database.js +618 -0
- package/out/runtime/resolvers/sqldb/database.js.map +1 -0
- package/out/runtime/resolvers/sqldb/dbutil.d.ts +18 -0
- package/out/runtime/resolvers/sqldb/dbutil.d.ts.map +1 -0
- package/out/runtime/resolvers/sqldb/dbutil.js +221 -0
- package/out/runtime/resolvers/sqldb/dbutil.js.map +1 -0
- package/out/runtime/resolvers/sqldb/impl.d.ts +26 -0
- package/out/runtime/resolvers/sqldb/impl.d.ts.map +1 -0
- package/out/runtime/resolvers/sqldb/impl.js +300 -0
- package/out/runtime/resolvers/sqldb/impl.js.map +1 -0
- package/out/runtime/state.js +83 -0
- package/out/runtime/state.js.map +1 -0
- package/out/runtime/util.d.ts +43 -0
- package/out/runtime/util.d.ts.map +1 -0
- package/out/runtime/util.js +447 -0
- package/out/runtime/util.js.map +1 -0
- package/out/setupClassic.d.ts +98 -0
- package/out/setupClassic.d.ts.map +1 -0
- package/out/setupClassic.js +38 -0
- package/out/setupClassic.js.map +1 -0
- package/out/setupCommon.d.ts +2 -0
- package/out/setupCommon.d.ts.map +1 -0
- package/out/setupCommon.js +33 -0
- package/out/setupCommon.js.map +1 -0
- package/out/setupExtended.d.ts +40 -0
- package/out/setupExtended.d.ts.map +1 -0
- package/out/setupExtended.js +67 -0
- package/out/setupExtended.js.map +1 -0
- package/out/syntaxes/agentlang.monarch.d.ts +77 -0
- package/out/syntaxes/agentlang.monarch.d.ts.map +1 -0
- package/out/syntaxes/agentlang.monarch.js +31 -0
- package/out/syntaxes/agentlang.monarch.js.map +1 -0
- package/out/utils/fs/index.d.ts +14 -0
- package/out/utils/fs/index.d.ts.map +1 -0
- package/out/utils/fs/index.js +26 -0
- package/out/utils/fs/index.js.map +1 -0
- package/out/utils/fs/interfaces.d.ts +105 -0
- package/out/utils/fs/interfaces.d.ts.map +1 -0
- package/out/utils/fs/interfaces.js +5 -0
- package/out/utils/fs/interfaces.js.map +1 -0
- package/out/utils/fs/lightning-fs.d.ts +116 -0
- package/out/utils/fs/lightning-fs.d.ts.map +1 -0
- package/out/utils/fs/lightning-fs.js +243 -0
- package/out/utils/fs/lightning-fs.js.map +1 -0
- package/out/utils/fs/node-fs.d.ts +93 -0
- package/out/utils/fs/node-fs.d.ts.map +1 -0
- package/out/utils/fs/node-fs.js +169 -0
- package/out/utils/fs/node-fs.js.map +1 -0
- package/out/utils/fs-utils.d.ts +153 -0
- package/out/utils/fs-utils.d.ts.map +1 -0
- package/out/utils/fs-utils.js +271 -0
- package/out/utils/fs-utils.js.map +1 -0
- package/out/utils/runtime.d.ts +36 -0
- package/out/utils/runtime.d.ts.map +1 -0
- package/out/utils/runtime.js +39 -0
- package/out/utils/runtime.js.map +1 -0
- package/package.json +155 -0
- package/src/api/http.ts +361 -0
- package/src/cli/cli-util.ts +18 -0
- package/src/cli/main.ts +146 -0
- package/src/extension/main.ts +51 -0
- package/src/language/agentlang-module.ts +75 -0
- package/src/language/agentlang-validator.ts +60 -0
- package/src/language/agentlang.langium +178 -0
- package/src/language/generated/ast.ts +1698 -0
- package/src/language/generated/grammar.ts +4477 -0
- package/src/language/generated/module.ts +25 -0
- package/src/language/main-browser.ts +19 -0
- package/src/language/main.ts +13 -0
- package/src/language/parser.ts +329 -0
- package/src/language/syntax.ts +646 -0
- package/src/runtime/agents/common.ts +177 -0
- package/src/runtime/agents/impl/openai.ts +19 -0
- package/src/runtime/agents/provider.ts +58 -0
- package/src/runtime/agents/registry.ts +9 -0
- package/src/runtime/auth/cognito.ts +225 -0
- package/src/runtime/auth/defs.ts +33 -0
- package/src/runtime/auth/interface.ts +31 -0
- package/src/runtime/defs.ts +33 -0
- package/src/runtime/interpreter.ts +1352 -0
- package/src/runtime/loader.ts +450 -0
- package/src/runtime/logger.ts +51 -0
- package/src/runtime/module.ts +2188 -0
- package/src/runtime/modules/ai.ts +257 -0
- package/src/runtime/modules/auth.ts +489 -0
- package/src/runtime/modules/core.ts +95 -0
- package/src/runtime/relgraph.ts +195 -0
- package/src/runtime/resolvers/interface.ts +160 -0
- package/src/runtime/resolvers/registry.ts +30 -0
- package/src/runtime/resolvers/sqldb/database.ts +823 -0
- package/src/runtime/resolvers/sqldb/dbutil.ts +257 -0
- package/src/runtime/resolvers/sqldb/impl.ts +471 -0
- package/src/runtime/state.ts +87 -0
- package/src/runtime/util.ts +513 -0
- package/src/setupClassic.ts +43 -0
- package/src/setupCommon.ts +33 -0
- package/src/setupExtended.ts +79 -0
- package/src/syntaxes/agentlang.monarch.ts +31 -0
- package/src/utils/fs/index.ts +28 -0
- package/src/utils/fs/interfaces.ts +118 -0
- package/src/utils/fs/lightning-fs.ts +284 -0
- package/src/utils/fs/node-fs.ts +185 -0
- package/src/utils/fs-utils.ts +304 -0
- package/src/utils/runtime.ts +43 -0
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: My API
|
|
5
|
+
description: This is the API
|
|
6
|
+
servers:
|
|
7
|
+
- url: v1
|
|
8
|
+
components:
|
|
9
|
+
securitySchemes:
|
|
10
|
+
bearerAuth:
|
|
11
|
+
type: http
|
|
12
|
+
scheme: bearer
|
|
13
|
+
bearerFormat: JWT
|
|
14
|
+
schemas:
|
|
15
|
+
ProfileSchema:
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
id:
|
|
19
|
+
type: string
|
|
20
|
+
format: uuid
|
|
21
|
+
address:
|
|
22
|
+
type: string
|
|
23
|
+
email:
|
|
24
|
+
nullable: true
|
|
25
|
+
photo:
|
|
26
|
+
nullable: true
|
|
27
|
+
DOB:
|
|
28
|
+
type: string
|
|
29
|
+
required:
|
|
30
|
+
- id
|
|
31
|
+
- address
|
|
32
|
+
- DOB
|
|
33
|
+
UserSchema:
|
|
34
|
+
type: object
|
|
35
|
+
properties:
|
|
36
|
+
id:
|
|
37
|
+
type: string
|
|
38
|
+
format: uuid
|
|
39
|
+
name:
|
|
40
|
+
type: string
|
|
41
|
+
required:
|
|
42
|
+
- id
|
|
43
|
+
- name
|
|
44
|
+
PostSchema:
|
|
45
|
+
type: object
|
|
46
|
+
properties:
|
|
47
|
+
id:
|
|
48
|
+
type: string
|
|
49
|
+
format: uuid
|
|
50
|
+
title:
|
|
51
|
+
type: string
|
|
52
|
+
required:
|
|
53
|
+
- id
|
|
54
|
+
- title
|
|
55
|
+
CategorySchema:
|
|
56
|
+
type: object
|
|
57
|
+
properties:
|
|
58
|
+
id:
|
|
59
|
+
type: string
|
|
60
|
+
format: uuid
|
|
61
|
+
description:
|
|
62
|
+
type: string
|
|
63
|
+
required:
|
|
64
|
+
- id
|
|
65
|
+
- description
|
|
66
|
+
CreateUserSchema:
|
|
67
|
+
type: object
|
|
68
|
+
properties:
|
|
69
|
+
id:
|
|
70
|
+
type: string
|
|
71
|
+
format: uuid
|
|
72
|
+
address:
|
|
73
|
+
type: string
|
|
74
|
+
email:
|
|
75
|
+
nullable: true
|
|
76
|
+
photo:
|
|
77
|
+
nullable: true
|
|
78
|
+
DOB:
|
|
79
|
+
type: string
|
|
80
|
+
name:
|
|
81
|
+
type: string
|
|
82
|
+
required:
|
|
83
|
+
- id
|
|
84
|
+
- address
|
|
85
|
+
- DOB
|
|
86
|
+
- name
|
|
87
|
+
FindUsersByNameSchema:
|
|
88
|
+
type: object
|
|
89
|
+
properties: {}
|
|
90
|
+
CreateUserWithPostsSchema:
|
|
91
|
+
type: object
|
|
92
|
+
properties: {}
|
|
93
|
+
AddPostSchema:
|
|
94
|
+
type: object
|
|
95
|
+
properties: {}
|
|
96
|
+
AddCategorySchema:
|
|
97
|
+
type: object
|
|
98
|
+
properties: {}
|
|
99
|
+
AddCategoryToPostSchema:
|
|
100
|
+
type: object
|
|
101
|
+
properties: {}
|
|
102
|
+
GetUserPostsSchema:
|
|
103
|
+
type: object
|
|
104
|
+
properties: {}
|
|
105
|
+
FindUserProfileSchema:
|
|
106
|
+
type: object
|
|
107
|
+
properties: {}
|
|
108
|
+
UpdateUserNameSchema:
|
|
109
|
+
type: object
|
|
110
|
+
properties: {}
|
|
111
|
+
parameters: {}
|
|
112
|
+
paths:
|
|
113
|
+
/api/Blog/Profile:
|
|
114
|
+
post:
|
|
115
|
+
security:
|
|
116
|
+
- bearerAuth: []
|
|
117
|
+
tags:
|
|
118
|
+
- Blog/Profile
|
|
119
|
+
requestBody:
|
|
120
|
+
content:
|
|
121
|
+
application/json:
|
|
122
|
+
schema:
|
|
123
|
+
type: object
|
|
124
|
+
properties:
|
|
125
|
+
Blog/Profile:
|
|
126
|
+
$ref: "#/components/schemas/ProfileSchema"
|
|
127
|
+
required:
|
|
128
|
+
- Blog/Profile
|
|
129
|
+
responses:
|
|
130
|
+
"200":
|
|
131
|
+
description: Success
|
|
132
|
+
content:
|
|
133
|
+
application/json:
|
|
134
|
+
schema:
|
|
135
|
+
$ref: "#/components/schemas/ProfileSchema"
|
|
136
|
+
"500":
|
|
137
|
+
description: Internal Server Error
|
|
138
|
+
get:
|
|
139
|
+
security:
|
|
140
|
+
- bearerAuth: []
|
|
141
|
+
tags:
|
|
142
|
+
- Blog/Profile
|
|
143
|
+
responses:
|
|
144
|
+
"200":
|
|
145
|
+
description: Success
|
|
146
|
+
content:
|
|
147
|
+
application/json:
|
|
148
|
+
schema:
|
|
149
|
+
type: array
|
|
150
|
+
items:
|
|
151
|
+
$ref: "#/components/schemas/ProfileSchema"
|
|
152
|
+
"404":
|
|
153
|
+
description: Not Found
|
|
154
|
+
"500":
|
|
155
|
+
description: Internal Server Error
|
|
156
|
+
/api/Blog/Profile/{id}:
|
|
157
|
+
put:
|
|
158
|
+
tags:
|
|
159
|
+
- Blog/Profile
|
|
160
|
+
parameters:
|
|
161
|
+
- name: id
|
|
162
|
+
in: path
|
|
163
|
+
required: true
|
|
164
|
+
schema:
|
|
165
|
+
type: string
|
|
166
|
+
security:
|
|
167
|
+
- bearerAuth: []
|
|
168
|
+
requestBody:
|
|
169
|
+
content:
|
|
170
|
+
application/json:
|
|
171
|
+
schema:
|
|
172
|
+
type: object
|
|
173
|
+
properties:
|
|
174
|
+
Blog/Profile:
|
|
175
|
+
$ref: "#/components/schemas/ProfileSchema"
|
|
176
|
+
required:
|
|
177
|
+
- Blog/Profile
|
|
178
|
+
responses:
|
|
179
|
+
"200":
|
|
180
|
+
description: Success
|
|
181
|
+
content:
|
|
182
|
+
application/json:
|
|
183
|
+
schema:
|
|
184
|
+
$ref: "#/components/schemas/ProfileSchema"
|
|
185
|
+
"404":
|
|
186
|
+
description: Not Found
|
|
187
|
+
"500":
|
|
188
|
+
description: Internal Server Error
|
|
189
|
+
delete:
|
|
190
|
+
security:
|
|
191
|
+
- bearerAuth: []
|
|
192
|
+
tags:
|
|
193
|
+
- Blog/Profile
|
|
194
|
+
parameters:
|
|
195
|
+
- name: id
|
|
196
|
+
in: path
|
|
197
|
+
required: true
|
|
198
|
+
schema:
|
|
199
|
+
type: string
|
|
200
|
+
responses:
|
|
201
|
+
"200":
|
|
202
|
+
description: Success
|
|
203
|
+
"404":
|
|
204
|
+
description: Not Found
|
|
205
|
+
"500":
|
|
206
|
+
description: Internal Server Error
|
|
207
|
+
/api/Blog/User:
|
|
208
|
+
post:
|
|
209
|
+
security:
|
|
210
|
+
- bearerAuth: []
|
|
211
|
+
tags:
|
|
212
|
+
- Blog/User
|
|
213
|
+
requestBody:
|
|
214
|
+
content:
|
|
215
|
+
application/json:
|
|
216
|
+
schema:
|
|
217
|
+
type: object
|
|
218
|
+
properties:
|
|
219
|
+
Blog/User:
|
|
220
|
+
$ref: "#/components/schemas/UserSchema"
|
|
221
|
+
required:
|
|
222
|
+
- Blog/User
|
|
223
|
+
responses:
|
|
224
|
+
"200":
|
|
225
|
+
description: Success
|
|
226
|
+
content:
|
|
227
|
+
application/json:
|
|
228
|
+
schema:
|
|
229
|
+
$ref: "#/components/schemas/UserSchema"
|
|
230
|
+
"500":
|
|
231
|
+
description: Internal Server Error
|
|
232
|
+
get:
|
|
233
|
+
security:
|
|
234
|
+
- bearerAuth: []
|
|
235
|
+
tags:
|
|
236
|
+
- Blog/User
|
|
237
|
+
responses:
|
|
238
|
+
"200":
|
|
239
|
+
description: Success
|
|
240
|
+
content:
|
|
241
|
+
application/json:
|
|
242
|
+
schema:
|
|
243
|
+
type: array
|
|
244
|
+
items:
|
|
245
|
+
$ref: "#/components/schemas/UserSchema"
|
|
246
|
+
"404":
|
|
247
|
+
description: Not Found
|
|
248
|
+
"500":
|
|
249
|
+
description: Internal Server Error
|
|
250
|
+
/api/Blog/User/{id}:
|
|
251
|
+
put:
|
|
252
|
+
tags:
|
|
253
|
+
- Blog/User
|
|
254
|
+
parameters:
|
|
255
|
+
- name: id
|
|
256
|
+
in: path
|
|
257
|
+
required: true
|
|
258
|
+
schema:
|
|
259
|
+
type: string
|
|
260
|
+
security:
|
|
261
|
+
- bearerAuth: []
|
|
262
|
+
requestBody:
|
|
263
|
+
content:
|
|
264
|
+
application/json:
|
|
265
|
+
schema:
|
|
266
|
+
type: object
|
|
267
|
+
properties:
|
|
268
|
+
Blog/User:
|
|
269
|
+
$ref: "#/components/schemas/UserSchema"
|
|
270
|
+
required:
|
|
271
|
+
- Blog/User
|
|
272
|
+
responses:
|
|
273
|
+
"200":
|
|
274
|
+
description: Success
|
|
275
|
+
content:
|
|
276
|
+
application/json:
|
|
277
|
+
schema:
|
|
278
|
+
$ref: "#/components/schemas/UserSchema"
|
|
279
|
+
"404":
|
|
280
|
+
description: Not Found
|
|
281
|
+
"500":
|
|
282
|
+
description: Internal Server Error
|
|
283
|
+
delete:
|
|
284
|
+
security:
|
|
285
|
+
- bearerAuth: []
|
|
286
|
+
tags:
|
|
287
|
+
- Blog/User
|
|
288
|
+
parameters:
|
|
289
|
+
- name: id
|
|
290
|
+
in: path
|
|
291
|
+
required: true
|
|
292
|
+
schema:
|
|
293
|
+
type: string
|
|
294
|
+
responses:
|
|
295
|
+
"200":
|
|
296
|
+
description: Success
|
|
297
|
+
"404":
|
|
298
|
+
description: Not Found
|
|
299
|
+
"500":
|
|
300
|
+
description: Internal Server Error
|
|
301
|
+
/api/Blog/Post:
|
|
302
|
+
post:
|
|
303
|
+
security:
|
|
304
|
+
- bearerAuth: []
|
|
305
|
+
tags:
|
|
306
|
+
- Blog/Post
|
|
307
|
+
requestBody:
|
|
308
|
+
content:
|
|
309
|
+
application/json:
|
|
310
|
+
schema:
|
|
311
|
+
type: object
|
|
312
|
+
properties:
|
|
313
|
+
Blog/Post:
|
|
314
|
+
$ref: "#/components/schemas/PostSchema"
|
|
315
|
+
required:
|
|
316
|
+
- Blog/Post
|
|
317
|
+
responses:
|
|
318
|
+
"200":
|
|
319
|
+
description: Success
|
|
320
|
+
content:
|
|
321
|
+
application/json:
|
|
322
|
+
schema:
|
|
323
|
+
$ref: "#/components/schemas/PostSchema"
|
|
324
|
+
"500":
|
|
325
|
+
description: Internal Server Error
|
|
326
|
+
get:
|
|
327
|
+
security:
|
|
328
|
+
- bearerAuth: []
|
|
329
|
+
tags:
|
|
330
|
+
- Blog/Post
|
|
331
|
+
responses:
|
|
332
|
+
"200":
|
|
333
|
+
description: Success
|
|
334
|
+
content:
|
|
335
|
+
application/json:
|
|
336
|
+
schema:
|
|
337
|
+
type: array
|
|
338
|
+
items:
|
|
339
|
+
$ref: "#/components/schemas/PostSchema"
|
|
340
|
+
"404":
|
|
341
|
+
description: Not Found
|
|
342
|
+
"500":
|
|
343
|
+
description: Internal Server Error
|
|
344
|
+
/api/Blog/Post/{id}:
|
|
345
|
+
put:
|
|
346
|
+
tags:
|
|
347
|
+
- Blog/Post
|
|
348
|
+
parameters:
|
|
349
|
+
- name: id
|
|
350
|
+
in: path
|
|
351
|
+
required: true
|
|
352
|
+
schema:
|
|
353
|
+
type: string
|
|
354
|
+
security:
|
|
355
|
+
- bearerAuth: []
|
|
356
|
+
requestBody:
|
|
357
|
+
content:
|
|
358
|
+
application/json:
|
|
359
|
+
schema:
|
|
360
|
+
type: object
|
|
361
|
+
properties:
|
|
362
|
+
Blog/Post:
|
|
363
|
+
$ref: "#/components/schemas/PostSchema"
|
|
364
|
+
required:
|
|
365
|
+
- Blog/Post
|
|
366
|
+
responses:
|
|
367
|
+
"200":
|
|
368
|
+
description: Success
|
|
369
|
+
content:
|
|
370
|
+
application/json:
|
|
371
|
+
schema:
|
|
372
|
+
$ref: "#/components/schemas/PostSchema"
|
|
373
|
+
"404":
|
|
374
|
+
description: Not Found
|
|
375
|
+
"500":
|
|
376
|
+
description: Internal Server Error
|
|
377
|
+
delete:
|
|
378
|
+
security:
|
|
379
|
+
- bearerAuth: []
|
|
380
|
+
tags:
|
|
381
|
+
- Blog/Post
|
|
382
|
+
parameters:
|
|
383
|
+
- name: id
|
|
384
|
+
in: path
|
|
385
|
+
required: true
|
|
386
|
+
schema:
|
|
387
|
+
type: string
|
|
388
|
+
responses:
|
|
389
|
+
"200":
|
|
390
|
+
description: Success
|
|
391
|
+
"404":
|
|
392
|
+
description: Not Found
|
|
393
|
+
"500":
|
|
394
|
+
description: Internal Server Error
|
|
395
|
+
/api/Blog/Category:
|
|
396
|
+
post:
|
|
397
|
+
security:
|
|
398
|
+
- bearerAuth: []
|
|
399
|
+
tags:
|
|
400
|
+
- Blog/Category
|
|
401
|
+
requestBody:
|
|
402
|
+
content:
|
|
403
|
+
application/json:
|
|
404
|
+
schema:
|
|
405
|
+
type: object
|
|
406
|
+
properties:
|
|
407
|
+
Blog/Category:
|
|
408
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
409
|
+
required:
|
|
410
|
+
- Blog/Category
|
|
411
|
+
responses:
|
|
412
|
+
"200":
|
|
413
|
+
description: Success
|
|
414
|
+
content:
|
|
415
|
+
application/json:
|
|
416
|
+
schema:
|
|
417
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
418
|
+
"500":
|
|
419
|
+
description: Internal Server Error
|
|
420
|
+
get:
|
|
421
|
+
security:
|
|
422
|
+
- bearerAuth: []
|
|
423
|
+
tags:
|
|
424
|
+
- Blog/Category
|
|
425
|
+
responses:
|
|
426
|
+
"200":
|
|
427
|
+
description: Success
|
|
428
|
+
content:
|
|
429
|
+
application/json:
|
|
430
|
+
schema:
|
|
431
|
+
type: array
|
|
432
|
+
items:
|
|
433
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
434
|
+
"404":
|
|
435
|
+
description: Not Found
|
|
436
|
+
"500":
|
|
437
|
+
description: Internal Server Error
|
|
438
|
+
/api/Blog/Category/{id}:
|
|
439
|
+
put:
|
|
440
|
+
tags:
|
|
441
|
+
- Blog/Category
|
|
442
|
+
parameters:
|
|
443
|
+
- name: id
|
|
444
|
+
in: path
|
|
445
|
+
required: true
|
|
446
|
+
schema:
|
|
447
|
+
type: string
|
|
448
|
+
security:
|
|
449
|
+
- bearerAuth: []
|
|
450
|
+
requestBody:
|
|
451
|
+
content:
|
|
452
|
+
application/json:
|
|
453
|
+
schema:
|
|
454
|
+
type: object
|
|
455
|
+
properties:
|
|
456
|
+
Blog/Category:
|
|
457
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
458
|
+
required:
|
|
459
|
+
- Blog/Category
|
|
460
|
+
responses:
|
|
461
|
+
"200":
|
|
462
|
+
description: Success
|
|
463
|
+
content:
|
|
464
|
+
application/json:
|
|
465
|
+
schema:
|
|
466
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
467
|
+
"404":
|
|
468
|
+
description: Not Found
|
|
469
|
+
"500":
|
|
470
|
+
description: Internal Server Error
|
|
471
|
+
delete:
|
|
472
|
+
security:
|
|
473
|
+
- bearerAuth: []
|
|
474
|
+
tags:
|
|
475
|
+
- Blog/Category
|
|
476
|
+
parameters:
|
|
477
|
+
- name: id
|
|
478
|
+
in: path
|
|
479
|
+
required: true
|
|
480
|
+
schema:
|
|
481
|
+
type: string
|
|
482
|
+
responses:
|
|
483
|
+
"200":
|
|
484
|
+
description: Success
|
|
485
|
+
"404":
|
|
486
|
+
description: Not Found
|
|
487
|
+
"500":
|
|
488
|
+
description: Internal Server Error
|
|
489
|
+
/api/Blog/CreateUser:
|
|
490
|
+
post:
|
|
491
|
+
security:
|
|
492
|
+
- bearerAuth: []
|
|
493
|
+
tags:
|
|
494
|
+
- Events
|
|
495
|
+
requestBody:
|
|
496
|
+
content:
|
|
497
|
+
application/json:
|
|
498
|
+
schema:
|
|
499
|
+
type: object
|
|
500
|
+
properties:
|
|
501
|
+
Blog/CreateUser:
|
|
502
|
+
$ref: "#/components/schemas/CreateUserSchema"
|
|
503
|
+
required:
|
|
504
|
+
- Blog/CreateUser
|
|
505
|
+
responses:
|
|
506
|
+
"200":
|
|
507
|
+
description: Success
|
|
508
|
+
"404":
|
|
509
|
+
description: Not Found
|
|
510
|
+
"500":
|
|
511
|
+
description: Internal Server Error
|
|
512
|
+
/api/Blog/FindUsersByName:
|
|
513
|
+
post:
|
|
514
|
+
security:
|
|
515
|
+
- bearerAuth: []
|
|
516
|
+
tags:
|
|
517
|
+
- Events
|
|
518
|
+
requestBody:
|
|
519
|
+
content:
|
|
520
|
+
application/json:
|
|
521
|
+
schema:
|
|
522
|
+
type: object
|
|
523
|
+
properties:
|
|
524
|
+
Blog/FindUsersByName:
|
|
525
|
+
$ref: "#/components/schemas/FindUsersByNameSchema"
|
|
526
|
+
required:
|
|
527
|
+
- Blog/FindUsersByName
|
|
528
|
+
responses:
|
|
529
|
+
"200":
|
|
530
|
+
description: Success
|
|
531
|
+
"404":
|
|
532
|
+
description: Not Found
|
|
533
|
+
"500":
|
|
534
|
+
description: Internal Server Error
|
|
535
|
+
/api/Blog/CreateUserWithPosts:
|
|
536
|
+
post:
|
|
537
|
+
security:
|
|
538
|
+
- bearerAuth: []
|
|
539
|
+
tags:
|
|
540
|
+
- Events
|
|
541
|
+
requestBody:
|
|
542
|
+
content:
|
|
543
|
+
application/json:
|
|
544
|
+
schema:
|
|
545
|
+
type: object
|
|
546
|
+
properties:
|
|
547
|
+
Blog/CreateUserWithPosts:
|
|
548
|
+
$ref: "#/components/schemas/CreateUserWithPostsSchema"
|
|
549
|
+
required:
|
|
550
|
+
- Blog/CreateUserWithPosts
|
|
551
|
+
responses:
|
|
552
|
+
"200":
|
|
553
|
+
description: Success
|
|
554
|
+
"404":
|
|
555
|
+
description: Not Found
|
|
556
|
+
"500":
|
|
557
|
+
description: Internal Server Error
|
|
558
|
+
/api/Blog/AddPost:
|
|
559
|
+
post:
|
|
560
|
+
security:
|
|
561
|
+
- bearerAuth: []
|
|
562
|
+
tags:
|
|
563
|
+
- Events
|
|
564
|
+
requestBody:
|
|
565
|
+
content:
|
|
566
|
+
application/json:
|
|
567
|
+
schema:
|
|
568
|
+
type: object
|
|
569
|
+
properties:
|
|
570
|
+
Blog/AddPost:
|
|
571
|
+
$ref: "#/components/schemas/AddPostSchema"
|
|
572
|
+
required:
|
|
573
|
+
- Blog/AddPost
|
|
574
|
+
responses:
|
|
575
|
+
"200":
|
|
576
|
+
description: Success
|
|
577
|
+
"404":
|
|
578
|
+
description: Not Found
|
|
579
|
+
"500":
|
|
580
|
+
description: Internal Server Error
|
|
581
|
+
/api/Blog/AddCategory:
|
|
582
|
+
post:
|
|
583
|
+
security:
|
|
584
|
+
- bearerAuth: []
|
|
585
|
+
tags:
|
|
586
|
+
- Events
|
|
587
|
+
requestBody:
|
|
588
|
+
content:
|
|
589
|
+
application/json:
|
|
590
|
+
schema:
|
|
591
|
+
type: object
|
|
592
|
+
properties:
|
|
593
|
+
Blog/AddCategory:
|
|
594
|
+
$ref: "#/components/schemas/AddCategorySchema"
|
|
595
|
+
required:
|
|
596
|
+
- Blog/AddCategory
|
|
597
|
+
responses:
|
|
598
|
+
"200":
|
|
599
|
+
description: Success
|
|
600
|
+
"404":
|
|
601
|
+
description: Not Found
|
|
602
|
+
"500":
|
|
603
|
+
description: Internal Server Error
|
|
604
|
+
/api/Blog/AddCategoryToPost:
|
|
605
|
+
post:
|
|
606
|
+
security:
|
|
607
|
+
- bearerAuth: []
|
|
608
|
+
tags:
|
|
609
|
+
- Events
|
|
610
|
+
requestBody:
|
|
611
|
+
content:
|
|
612
|
+
application/json:
|
|
613
|
+
schema:
|
|
614
|
+
type: object
|
|
615
|
+
properties:
|
|
616
|
+
Blog/AddCategoryToPost:
|
|
617
|
+
$ref: "#/components/schemas/AddCategoryToPostSchema"
|
|
618
|
+
required:
|
|
619
|
+
- Blog/AddCategoryToPost
|
|
620
|
+
responses:
|
|
621
|
+
"200":
|
|
622
|
+
description: Success
|
|
623
|
+
"404":
|
|
624
|
+
description: Not Found
|
|
625
|
+
"500":
|
|
626
|
+
description: Internal Server Error
|
|
627
|
+
/api/Blog/GetUserPosts:
|
|
628
|
+
post:
|
|
629
|
+
security:
|
|
630
|
+
- bearerAuth: []
|
|
631
|
+
tags:
|
|
632
|
+
- Events
|
|
633
|
+
requestBody:
|
|
634
|
+
content:
|
|
635
|
+
application/json:
|
|
636
|
+
schema:
|
|
637
|
+
type: object
|
|
638
|
+
properties:
|
|
639
|
+
Blog/GetUserPosts:
|
|
640
|
+
$ref: "#/components/schemas/GetUserPostsSchema"
|
|
641
|
+
required:
|
|
642
|
+
- Blog/GetUserPosts
|
|
643
|
+
responses:
|
|
644
|
+
"200":
|
|
645
|
+
description: Success
|
|
646
|
+
"404":
|
|
647
|
+
description: Not Found
|
|
648
|
+
"500":
|
|
649
|
+
description: Internal Server Error
|
|
650
|
+
/api/Blog/FindUserProfile:
|
|
651
|
+
post:
|
|
652
|
+
security:
|
|
653
|
+
- bearerAuth: []
|
|
654
|
+
tags:
|
|
655
|
+
- Events
|
|
656
|
+
requestBody:
|
|
657
|
+
content:
|
|
658
|
+
application/json:
|
|
659
|
+
schema:
|
|
660
|
+
type: object
|
|
661
|
+
properties:
|
|
662
|
+
Blog/FindUserProfile:
|
|
663
|
+
$ref: "#/components/schemas/FindUserProfileSchema"
|
|
664
|
+
required:
|
|
665
|
+
- Blog/FindUserProfile
|
|
666
|
+
responses:
|
|
667
|
+
"200":
|
|
668
|
+
description: Success
|
|
669
|
+
"404":
|
|
670
|
+
description: Not Found
|
|
671
|
+
"500":
|
|
672
|
+
description: Internal Server Error
|
|
673
|
+
/api/Blog/UpdateUserName:
|
|
674
|
+
post:
|
|
675
|
+
security:
|
|
676
|
+
- bearerAuth: []
|
|
677
|
+
tags:
|
|
678
|
+
- Events
|
|
679
|
+
requestBody:
|
|
680
|
+
content:
|
|
681
|
+
application/json:
|
|
682
|
+
schema:
|
|
683
|
+
type: object
|
|
684
|
+
properties:
|
|
685
|
+
Blog/UpdateUserName:
|
|
686
|
+
$ref: "#/components/schemas/UpdateUserNameSchema"
|
|
687
|
+
required:
|
|
688
|
+
- Blog/UpdateUserName
|
|
689
|
+
responses:
|
|
690
|
+
"200":
|
|
691
|
+
description: Success
|
|
692
|
+
"404":
|
|
693
|
+
description: Not Found
|
|
694
|
+
"500":
|
|
695
|
+
description: Internal Server Error
|