feat: llms.txt and llms-full.txt, openapi.json, MCP server
This commit is contained in:
1 parent
daba3c04c0
commit
4cff43fefb
25 files changed
+1691
-1
No files matched your search
@@ -28,6 +28,7 @@ export interface ApiEndpoint {
|
||||
bodySample: Record<string, unknown> | null
|
||||
errors: ApiError[]
|
||||
response: string
|
||||
status: number
|
||||
rateLimited: boolean
|
||||
}
|
||||
|
||||
@@ -542,6 +543,7 @@ function endpoint(
|
||||
bodySample: null,
|
||||
errors,
|
||||
response,
|
||||
status: response === NO_CONTENT_RESPONSE ? 204 : 200,
|
||||
rateLimited: false,
|
||||
...extra,
|
||||
}
|
||||
@@ -638,6 +640,7 @@ export const API_GROUPS: ApiGroup[] = [
|
||||
title: 'Choosing tiles for a small bathroom',
|
||||
body: 'Small rooms show every grout line.',
|
||||
},
|
||||
status: 201,
|
||||
},
|
||||
),
|
||||
endpoint(
|
||||
@@ -886,6 +889,7 @@ export const API_GROUPS: ApiGroup[] = [
|
||||
json(mediaItem()),
|
||||
{
|
||||
pathId: null,
|
||||
status: 201,
|
||||
bodyKind: 'multipart',
|
||||
body: [
|
||||
{
|
||||
@@ -1156,6 +1160,7 @@ export const API_GROUPS: ApiGroup[] = [
|
||||
],
|
||||
json(invite()),
|
||||
{
|
||||
status: 201,
|
||||
bodyKind: 'json',
|
||||
body: [
|
||||
{
|
||||
|
||||
@@ -21,6 +21,10 @@ export default defineConfig({
|
||||
'/v1': 'http://localhost:8080',
|
||||
'/healthz': 'http://localhost:8080',
|
||||
'/static': 'http://localhost:8080',
|
||||
'/llms.txt': 'http://localhost:8080',
|
||||
'/llms-full.txt': 'http://localhost:8080',
|
||||
'/llms/': 'http://localhost:8080',
|
||||
'/openapi.json': 'http://localhost:8080',
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Reference in new issue
Block a user