|
4398 | 4398 | "description": "**Required scope:** `plugin`" |
4399 | 4399 | } |
4400 | 4400 | }, |
| 4401 | + "/api/v1/plugins/views": { |
| 4402 | + "get": { |
| 4403 | + "tags": [ |
| 4404 | + "Plugin Pages" |
| 4405 | + ], |
| 4406 | + "summary": "List plugin views by query ID (alias of /plugins/pages)", |
| 4407 | + "operationId": "listPluginViewsById", |
| 4408 | + "x-astrbot-scope": "plugin", |
| 4409 | + "parameters": [ |
| 4410 | + { |
| 4411 | + "name": "plugin_id", |
| 4412 | + "in": "query", |
| 4413 | + "required": true, |
| 4414 | + "schema": { |
| 4415 | + "type": "string" |
| 4416 | + } |
| 4417 | + } |
| 4418 | + ], |
| 4419 | + "responses": { |
| 4420 | + "200": { |
| 4421 | + "$ref": "#/components/responses/Ok" |
| 4422 | + } |
| 4423 | + }, |
| 4424 | + "description": "**Required scope:** `plugin`" |
| 4425 | + } |
| 4426 | + }, |
| 4427 | + "/api/v1/plugins/view": { |
| 4428 | + "get": { |
| 4429 | + "tags": [ |
| 4430 | + "Plugin Pages" |
| 4431 | + ], |
| 4432 | + "summary": "Get plugin view entry HTML by query ID (alias of /plugins/page)", |
| 4433 | + "operationId": "getPluginViewById", |
| 4434 | + "x-astrbot-scope": "plugin", |
| 4435 | + "parameters": [ |
| 4436 | + { |
| 4437 | + "name": "plugin_id", |
| 4438 | + "in": "query", |
| 4439 | + "required": true, |
| 4440 | + "schema": { |
| 4441 | + "type": "string" |
| 4442 | + } |
| 4443 | + }, |
| 4444 | + { |
| 4445 | + "name": "page_name", |
| 4446 | + "in": "query", |
| 4447 | + "required": true, |
| 4448 | + "schema": { |
| 4449 | + "type": "string" |
| 4450 | + } |
| 4451 | + } |
| 4452 | + ], |
| 4453 | + "responses": { |
| 4454 | + "200": { |
| 4455 | + "$ref": "#/components/responses/Html" |
| 4456 | + } |
| 4457 | + }, |
| 4458 | + "description": "**Required scope:** `plugin`" |
| 4459 | + } |
| 4460 | + }, |
| 4461 | + "/api/v1/plugins/view/assets": { |
| 4462 | + "get": { |
| 4463 | + "tags": [ |
| 4464 | + "Plugin Pages" |
| 4465 | + ], |
| 4466 | + "summary": "Get a plugin view asset by query ID (alias of /plugins/page/assets)", |
| 4467 | + "operationId": "getPluginViewAssetById", |
| 4468 | + "x-astrbot-scope": "plugin", |
| 4469 | + "parameters": [ |
| 4470 | + { |
| 4471 | + "name": "plugin_id", |
| 4472 | + "in": "query", |
| 4473 | + "required": true, |
| 4474 | + "schema": { |
| 4475 | + "type": "string" |
| 4476 | + } |
| 4477 | + }, |
| 4478 | + { |
| 4479 | + "name": "page_name", |
| 4480 | + "in": "query", |
| 4481 | + "required": true, |
| 4482 | + "schema": { |
| 4483 | + "type": "string" |
| 4484 | + } |
| 4485 | + }, |
| 4486 | + { |
| 4487 | + "name": "asset_path", |
| 4488 | + "in": "query", |
| 4489 | + "required": true, |
| 4490 | + "schema": { |
| 4491 | + "type": "string" |
| 4492 | + } |
| 4493 | + } |
| 4494 | + ], |
| 4495 | + "responses": { |
| 4496 | + "200": { |
| 4497 | + "description": "Plugin asset content" |
| 4498 | + } |
| 4499 | + }, |
| 4500 | + "description": "**Required scope:** `plugin`" |
| 4501 | + } |
| 4502 | + }, |
| 4503 | + "/api/v1/plugins/{plugin_id}/views": { |
| 4504 | + "get": { |
| 4505 | + "tags": [ |
| 4506 | + "Plugin Pages" |
| 4507 | + ], |
| 4508 | + "summary": "List plugin views (alias of /plugins/{plugin_id}/pages)", |
| 4509 | + "operationId": "listPluginViews", |
| 4510 | + "x-astrbot-scope": "plugin", |
| 4511 | + "parameters": [ |
| 4512 | + { |
| 4513 | + "$ref": "#/components/parameters/PluginId" |
| 4514 | + } |
| 4515 | + ], |
| 4516 | + "responses": { |
| 4517 | + "200": { |
| 4518 | + "$ref": "#/components/responses/Ok" |
| 4519 | + } |
| 4520 | + }, |
| 4521 | + "description": "**Required scope:** `plugin`" |
| 4522 | + } |
| 4523 | + }, |
| 4524 | + "/api/v1/plugins/{plugin_id}/views/{page_name}": { |
| 4525 | + "get": { |
| 4526 | + "tags": [ |
| 4527 | + "Plugin Pages" |
| 4528 | + ], |
| 4529 | + "summary": "Get plugin view entry HTML (alias of /plugins/{plugin_id}/pages/{page_name})", |
| 4530 | + "operationId": "getPluginView", |
| 4531 | + "x-astrbot-scope": "plugin", |
| 4532 | + "parameters": [ |
| 4533 | + { |
| 4534 | + "$ref": "#/components/parameters/PluginId" |
| 4535 | + }, |
| 4536 | + { |
| 4537 | + "name": "page_name", |
| 4538 | + "in": "path", |
| 4539 | + "required": true, |
| 4540 | + "schema": { |
| 4541 | + "type": "string" |
| 4542 | + } |
| 4543 | + } |
| 4544 | + ], |
| 4545 | + "responses": { |
| 4546 | + "200": { |
| 4547 | + "$ref": "#/components/responses/Html" |
| 4548 | + } |
| 4549 | + }, |
| 4550 | + "description": "**Required scope:** `plugin`" |
| 4551 | + } |
| 4552 | + }, |
| 4553 | + "/api/v1/plugins/{plugin_id}/views/{page_name}/assets/{asset_path}": { |
| 4554 | + "get": { |
| 4555 | + "tags": [ |
| 4556 | + "Plugin Pages" |
| 4557 | + ], |
| 4558 | + "summary": "Get a plugin view asset (alias of /plugins/{plugin_id}/pages/{page_name}/assets/{asset_path})", |
| 4559 | + "operationId": "getPluginViewAsset", |
| 4560 | + "x-astrbot-scope": "plugin", |
| 4561 | + "parameters": [ |
| 4562 | + { |
| 4563 | + "$ref": "#/components/parameters/PluginId" |
| 4564 | + }, |
| 4565 | + { |
| 4566 | + "name": "page_name", |
| 4567 | + "in": "path", |
| 4568 | + "required": true, |
| 4569 | + "schema": { |
| 4570 | + "type": "string" |
| 4571 | + } |
| 4572 | + }, |
| 4573 | + { |
| 4574 | + "name": "asset_path", |
| 4575 | + "in": "path", |
| 4576 | + "required": true, |
| 4577 | + "description": "URL-encoded relative asset path.", |
| 4578 | + "schema": { |
| 4579 | + "type": "string" |
| 4580 | + } |
| 4581 | + } |
| 4582 | + ], |
| 4583 | + "responses": { |
| 4584 | + "200": { |
| 4585 | + "description": "Plugin asset content" |
| 4586 | + } |
| 4587 | + }, |
| 4588 | + "description": "**Required scope:** `plugin`" |
| 4589 | + } |
| 4590 | + }, |
4401 | 4591 | "/api/v1/plugins/page-bridge-sdk.js": { |
4402 | 4592 | "get": { |
4403 | 4593 | "tags": [ |
|
0 commit comments