diff --git a/.DS_Store b/.DS_Store index 8db86f2..4513e1c 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/MANUAL.md b/MANUAL.md new file mode 100644 index 0000000..8355cd9 --- /dev/null +++ b/MANUAL.md @@ -0,0 +1,83 @@ +# 合规性验证工具使用手册 + +## 1. 用户注册与登录 + +为了保证测试环境的隔离和安全,所有操作都需要在登录后进行。 + +### 1.1 注册 + +首次访问时,您将被重定向到登录页面。点击 "点此注册" 链接进入注册页面。 + +![注册页面截图](images/register_page.png) + +输入您想要的用户名和密码,然后点击 "注册" 按钮。如果用户名未被占用,系统将提示您 "注册成功! 请登录." 并跳转回登录页面。 + +### 1.2 登录 + +在登录页面,输入您刚刚注册的用户名和密码,点击 "登录"。 + +![登录页面截图](images/login_page.png) + +登录成功后,您将看到应用的主界面。 + +## 2. 主界面功能介绍 + +应用的主界面是您配置和发起测试的核心区域。 + +![应用主界面截图](images/main_interface.png) + +### 2.1 API 规范配置 + +这是进行测试的首要步骤。 + +- **API 规范类型**: 选择您的 API 定义文件类型,是 YAPI 还是 Swagger/OpenAPI。 +- **YAPI/Swagger 文件路径**: + - 输入 API 规范文件在 **服务器上** 的 **绝对路径** 或 **相对于 `flask_app.py` 的相对路径**。 + - 例如,如果文件在 `/data/specs/my_api.json`,则输入该绝对路径。 + - 如果文件在项目根目录下的 `assets/doc/api.json`,可以输入 `assets/doc/api.json`。 +- **加载分类/标签**: 输入文件路径后,点击此按钮。系统会解析文件,并在下方列出文件中定义的所有 API 分类(YAPI)或标签(Swagger),供您查阅。 + +### 2.2 基本配置 + +- **目标服务 Base URL**: 输入您要测试的 API 服务的基础地址。例如 `http://api.example.com/v1`。框架会将此 URL 与 API 规范中的相对路径拼接成完整的请求地址。 + +### 2.3 高级配置 (可折叠) + +点击 "高级配置" 标题可以展开或收起以下选项,这些选项都有预设的默认值。 + +- **自定义测试用例目录**: 指向包含自定义测试用例(`BaseAPITestCase` 的子类)的文件夹路径。 +- **自定义阶段目录**: 指向包含自定义测试阶段(`BaseAPIStage` 的子类)的文件夹路径。 +- **报告输出目录**: 指定生成的测试报告(JSON 摘要和 Markdown 详情)要保存到的目录。 + +默认值分别为 `./custom_testcases`, `./custom_stages`, 和 `./test_reports`。 + +### 2.4 LLM 配置 (可折叠) + +点击 "LLM 配置" 标题可以展开或收起此部分。这些配置用于启用和控制使用大语言模型(LLM)生成测试数据的功能。 + +- **LLM API Key**: 您的 LLM 服务提供商的 API 密钥。 +- **LLM Base URL**: 您的 LLM 服务的 API 地址。 +- **LLM 模型名称**: 您要使用的具体模型名称。 +- **使用 LLM 生成...**: 勾选相应的复选框,可以启用 LLM 来自动生成请求体、路径参数、查询参数或请求头。 + +## 3. 执行测试与查看结果 + +配置完成后,点击页面底部的 "运行测试" 按钮。 + +![测试结果区域截图](images/results_section.png) + +- **日志输出**: 测试过程中的实时日志会显示在此文本框中。 +- **测试摘要**: 测试完成后,此处会显示一个总结性的表格,包含成功、失败、总计等信息。 +- **报告链接**: + - **摘要报告 (JSON)**: 点击链接可以查看详细的 JSON 格式测试摘要。 + - **API 调用详情 (Markdown)**: 点击链接可以下载一个 Markdown 格式的报告,其中包含了每一次 API 调用的详细信息(请求头、请求体、响应头、响应体、cURL 命令等),并且每个条目都是可折叠的,方便查阅。 + +## 4. 查看报告详情 + +下载的 "API 调用详情 (Markdown)" 文件,可以使用任何支持 Markdown 的编辑器(如 VS Code, Typora)打开,以获得最佳的阅读体验。 + +![Markdown 报告截图](images/markdown_report.png) + +报告中的每个 API 调用都是一个独立的、可折叠的部分,您可以轻松地展开您关心的失败或成功的请求,查看其所有细节。 + +--- diff --git a/Makefile b/Makefile index 89547b7..5dac161 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,8 @@ # build: # pyinstaller --name ddms_compliance_tool --onefile run_api_tests.py - +db: + flask init-db run: python run_api_tests.py --base-url http://127.0.0.1:4523/m1/6389742-6086420-default --yapi assets/doc/井筒API示例_simple.json --custom-test-cases-dir ./custom_testcases --verbose --output test_report.json >log.txt 2>&1 run_stages: diff --git a/__pycache__/flask_app.cpython-312.pyc b/__pycache__/flask_app.cpython-312.pyc new file mode 100644 index 0000000..fecfa0f Binary files /dev/null and b/__pycache__/flask_app.cpython-312.pyc differ diff --git a/ddms_compliance_suite/__pycache__/test_case_registry.cpython-312.pyc b/ddms_compliance_suite/__pycache__/test_case_registry.cpython-312.pyc index 87e2fab..4a42dbe 100644 Binary files a/ddms_compliance_suite/__pycache__/test_case_registry.cpython-312.pyc and b/ddms_compliance_suite/__pycache__/test_case_registry.cpython-312.pyc differ diff --git a/ddms_compliance_suite/__pycache__/test_framework_core.cpython-312.pyc b/ddms_compliance_suite/__pycache__/test_framework_core.cpython-312.pyc index 1054f5d..2a876c0 100644 Binary files a/ddms_compliance_suite/__pycache__/test_framework_core.cpython-312.pyc and b/ddms_compliance_suite/__pycache__/test_framework_core.cpython-312.pyc differ diff --git a/ddms_compliance_suite/__pycache__/test_orchestrator.cpython-312.pyc b/ddms_compliance_suite/__pycache__/test_orchestrator.cpython-312.pyc index edbd53b..f6d0438 100644 Binary files a/ddms_compliance_suite/__pycache__/test_orchestrator.cpython-312.pyc and b/ddms_compliance_suite/__pycache__/test_orchestrator.cpython-312.pyc differ diff --git a/ddms_compliance_suite/test_case_registry.py b/ddms_compliance_suite/test_case_registry.py index a5a8be1..3c6e234 100644 --- a/ddms_compliance_suite/test_case_registry.py +++ b/ddms_compliance_suite/test_case_registry.py @@ -1,4 +1,5 @@ import os +import sys import importlib.util import inspect import logging @@ -12,27 +13,38 @@ class TestCaseRegistry: """ 负责发现、加载和管理所有自定义的APITestCase类。 """ - def __init__(self, test_cases_dir: str): + def __init__(self, test_cases_dir: Optional[str]): """ 初始化 TestCaseRegistry。 Args: test_cases_dir: 存放自定义测试用例 (.py 文件) 的目录路径。 """ - self.test_cases_dir = test_cases_dir self.logger = logging.getLogger(__name__) + self.test_cases_dir = test_cases_dir self._registry: Dict[str, Type[BaseAPITestCase]] = {} self._test_case_classes: List[Type[BaseAPITestCase]] = [] - self.discover_test_cases() + self._discovery_errors: List[str] = [] + + if self.test_cases_dir: + self.discover_test_cases() + else: + self.logger.info("No custom test cases directory provided. Skipping test case discovery.") def discover_test_cases(self): """ 扫描指定目录及其所有子目录,动态导入模块,并注册所有继承自 BaseAPITestCase 的类。 """ - if not os.path.isdir(self.test_cases_dir): - self.logger.warning(f"测试用例目录不存在或不是一个目录: {self.test_cases_dir}") + if not self.test_cases_dir: + self.logger.info("Test cases directory is not set. Skipping discovery.") return - self.logger.info(f"开始从目录 '{self.test_cases_dir}' 及其子目录发现测试用例...") + if not os.path.isdir(self.test_cases_dir): + self.logger.error(f"Custom test cases directory not found or is not a directory: {self.test_cases_dir}") + self._discovery_errors.append(f"Directory not found: {self.test_cases_dir}") + return + + self.logger.info(f"Discovering custom test cases from: {self.test_cases_dir}") + sys.path.insert(0, self.test_cases_dir) found_count = 0 # 使用 os.walk 进行递归扫描 for root_dir, _, files in os.walk(self.test_cases_dir): diff --git a/ddms_compliance_suite/test_orchestrator.py b/ddms_compliance_suite/test_orchestrator.py index 70a0770..a82ae27 100644 --- a/ddms_compliance_suite/test_orchestrator.py +++ b/ddms_compliance_suite/test_orchestrator.py @@ -18,6 +18,7 @@ from dataclasses import asdict as dataclass_asdict, is_dataclass import copy from collections import defaultdict from pathlib import Path +from urllib.parse import urljoin # <-- ADDED from pydantic import BaseModel, Field, create_model, HttpUrl # Added HttpUrl for Literal type hint if needed from pydantic.networks import EmailStr @@ -425,7 +426,7 @@ class APITestOrchestrator: "use_for_headers": use_llm_for_headers, } - if llm_api_key and LLMService: + if llm_api_key and llm_base_url and LLMService: # <-- MODIFIED: Added check for llm_base_url try: self.llm_service = LLMService(api_key=llm_api_key, base_url=llm_base_url, model_name=llm_model_name) self.logger.info(f"LLMService initialized with model: {self.llm_service.model_name}.") @@ -2155,7 +2156,7 @@ class APITestOrchestrator: final_headers['Content-Type'] = 'application/json' self.logger.debug(f"{step_log_prefix}: 为JSON请求体设置默认Content-Type: application/json") - full_request_url = self._format_url_with_path_params(api_op_spec.path, final_path_params) + full_request_url = urljoin(self.base_url, self._format_url_with_path_params(api_op_spec.path, final_path_params)) # <-- MODIFIED api_request_obj = APIRequest( method=api_op_spec.method, url=full_request_url, @@ -2488,6 +2489,8 @@ class APITestOrchestrator: summary.add_stage_result(failure_result) self.logger.info(f"API Test Stage execution processed. Considered {total_stages_considered_for_execution} (stage_definition x api_group) combinations.") + + return summary # <-- ADDED def _execute_tests_from_parsed_spec(self, parsed_spec: ParsedAPISpec, @@ -2497,54 +2500,30 @@ class APITestOrchestrator: custom_test_cases_dir: Optional[str] = None ) -> TestSummary: """基于已解析的API规范对象执行测试用例。""" - # Restore the original start of the method body, the rest of the method should be intact from before. - if custom_test_cases_dir and (not self.test_case_registry or not hasattr(self.test_case_registry, 'test_cases_dir') or self.test_case_registry.test_cases_dir != custom_test_cases_dir): - self.logger.info(f"Re-initializing TestCaseRegistry from _execute_tests_from_parsed_spec with new directory: {custom_test_cases_dir}") - try: - # Assuming TestCaseRegistry can be re-initialized or its directory updated. - # If TestCaseRegistry is loaded in __init__, this might need adjustment - # For now, let's assume direct re-init is possible if dir changes. - self.test_case_registry = TestCaseRegistry() - self.test_case_registry.discover_and_load_test_cases(custom_test_cases_dir) - self.logger.info(f"TestCaseRegistry (re)initialized, found {len(self.test_case_registry.get_all_test_case_classes())} test case classes.") - except Exception as e: - self.logger.error(f"Failed to re-initialize TestCaseRegistry from _execute_tests_from_parsed_spec: {e}", exc_info=True) - # summary.finalize_summary() # Finalize might be premature here - return summary # Early exit if registry fails + if custom_test_cases_dir and (not self.test_case_registry or self.test_case_registry.test_cases_dir != custom_test_cases_dir): + self.logger.info(f"Re-initializing TestCaseRegistry with new directory: {custom_test_cases_dir}") + self.test_case_registry = TestCaseRegistry(test_cases_dir=custom_test_cases_dir) endpoints_to_test: List[Union[YAPIEndpoint, SwaggerEndpoint]] = [] if isinstance(parsed_spec, ParsedYAPISpec): endpoints_to_test = parsed_spec.endpoints if categories: - # Ensure YAPIEndpoint has 'category_name' if this filter is used. endpoints_to_test = [ep for ep in endpoints_to_test if hasattr(ep, 'category_name') and ep.category_name in categories] elif isinstance(parsed_spec, ParsedSwaggerSpec): endpoints_to_test = parsed_spec.endpoints if tags: - # Ensure SwaggerEndpoint has 'tags' attribute for this filter. endpoints_to_test = [ep for ep in endpoints_to_test if hasattr(ep, 'tags') and isinstance(ep.tags, list) and any(tag in ep.tags for tag in tags)] - else: - self.logger.warning(f"Unknown parsed_spec type: {type(parsed_spec)}. Cannot filter endpoints.") - # summary.finalize_summary() # Finalize might be premature - return summary - - current_total_defined = summary.total_endpoints_defined - summary.set_total_endpoints_defined(current_total_defined + len(endpoints_to_test)) - total_applicable_tcs_for_this_run = 0 + summary.set_total_endpoints_defined(summary.total_endpoints_defined + len(endpoints_to_test)) + if self.test_case_registry: - for endpoint_spec_obj in endpoints_to_test: - total_applicable_tcs_for_this_run += len( - self.test_case_registry.get_applicable_test_cases( - endpoint_spec_obj.method.upper(), endpoint_spec_obj.path - ) - ) - current_total_applicable = summary.total_test_cases_applicable - summary.set_total_test_cases_applicable(current_total_applicable + total_applicable_tcs_for_this_run) + total_applicable_tcs = sum( + len(self.test_case_registry.get_applicable_test_cases(ep.method.upper(), ep.path)) + for ep in endpoints_to_test + ) + summary.set_total_test_cases_applicable(summary.total_test_cases_applicable + total_applicable_tcs) for endpoint in endpoints_to_test: - # global_api_spec 应该是包含完整定义的 ParsedYAPISpec/ParsedSwaggerSpec 对象 - # 而不是其内部的 .spec 字典,因为 _execute_single_test_case 需要这个对象 result = self.run_test_for_endpoint(endpoint, global_api_spec=parsed_spec) summary.add_endpoint_result(result) diff --git a/flask_app.py b/flask_app.py index e0cc041..5f60300 100644 --- a/flask_app.py +++ b/flask_app.py @@ -4,8 +4,12 @@ import json import logging import argparse import traceback # 用于更详细的错误日志 +import uuid # For unique filenames from pathlib import Path -from flask import Flask, request, jsonify, send_from_directory +import sqlite3 # <-- ADDED: For SQLite database +from werkzeug.security import generate_password_hash, check_password_hash # <-- ADDED: For password hashing +from werkzeug.utils import secure_filename # For safe filenames +from flask import Flask, request, jsonify, send_from_directory, session, redirect, url_for, render_template_string, g # <-- MODIFIED: Added session, redirect, url_for, render_template_string from flask_cors import CORS # 用于处理跨域请求 # 将ddms_compliance_suite的父目录添加到sys.path @@ -17,6 +21,7 @@ from flask_cors import CORS # 用于处理跨域请求 # 或者更具体地添加包含ddms_compliance_suite的目录 # sys.path.insert(0, os.path.join(project_root, 'ddms_compliance_suite')) +from ddms_compliance_suite.api_caller.caller import APICallDetail from ddms_compliance_suite.test_orchestrator import APITestOrchestrator, TestSummary from ddms_compliance_suite.input_parser.parser import InputParser, ParsedYAPISpec, ParsedSwaggerSpec # 从 run_api_tests.py 导入辅助函数 (如果它们被重构为可导入的) @@ -32,12 +37,310 @@ logging.basicConfig( ) logger = logging.getLogger(__name__) +# 获取 flask_app.py 脚本所在的目录 +APP_ROOT = os.path.dirname(os.path.abspath(__file__)) +UPLOAD_FOLDER = os.path.join(APP_ROOT, 'uploads') +os.makedirs(UPLOAD_FOLDER, exist_ok=True) +app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER +DATABASE = os.path.join(APP_ROOT, 'users.db') # <-- ADDED: Database path + +app.config['SECRET_KEY'] = os.urandom(24) # <-- ADDED: Secret key for session management +app.config['DATABASE'] = DATABASE + +# --- 数据库辅助函数 --- +def get_db(): + db = getattr(g, '_database', None) + if db is None: + db = g._database = sqlite3.connect(DATABASE) + db.row_factory = sqlite3.Row # Access columns by name + return db + +@app.teardown_appcontext +def close_connection(exception): + db = getattr(g, '_database', None) + if db is not None: + db.close() + +def init_db(force_create=False): + """Initializes the database from schema.sql.""" + if force_create or not os.path.exists(DATABASE): + with app.app_context(): + db = get_db() + with app.open_resource('schema.sql', mode='r') as f: + db.cursor().executescript(f.read()) + db.commit() + logger.info("Database initialized!") + else: + logger.info("Database already exists.") + +@app.cli.command('init-db') +def init_db_command(): + """CLI command to initialize the database.""" + init_db(force_create=True) + print("Initialized the database.") + +# --- 用户认证路由 --- +REGISTER_TEMPLATE = ''' + + +注册 + +

注册新用户

+ {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} +
+ +

+ +

+ +
+

已有账户? 点此登录

+ + +''' + +LOGIN_TEMPLATE = ''' + + +登录 + +

请登录

+ {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + + {% endif %} + {% endwith %} +
+ +

+ +

+ +
+

没有账户? 点此注册

+ + +''' + +@app.route('/register', methods=('GET', 'POST')) +def register(): + if request.method == 'POST': + username = request.form['username'] + password = request.form['password'] + db = get_db() + error = None + + if not username: + error = '用户名是必需的.' + elif not password: + error = '密码是必需的.' + + if error is None: + try: + db.execute( + "INSERT INTO user (username, password_hash) VALUES (?, ?)", + (username, generate_password_hash(password)), + ) + db.commit() + except db.IntegrityError: # Username already exists + error = f"用户 {username} 已被注册." + else: + flash('注册成功! 请登录.') + return redirect(url_for("login")) + + flash(error) + return render_template_string(REGISTER_TEMPLATE) + +@app.route('/login', methods=('GET', 'POST')) +def login(): + if request.method == 'POST': + username = request.form['username'] + password = request.form['password'] + db = get_db() + error = None + user = db.execute( + 'SELECT * FROM user WHERE username = ?', + (username,) + ).fetchone() + + if user is None: + error = '用户名不存在.' + elif not check_password_hash(user['password_hash'], password): + error = '密码错误.' + + if error is None: + session.clear() + session['user_id'] = user['id'] + session['username'] = user['username'] + flash('登录成功!', 'success') + return redirect(url_for('serve_index')) + + flash(error, 'error') + + # If user is already logged in, redirect to index + if 'user_id' in session: + return redirect(url_for('serve_index')) + + return render_template_string(LOGIN_TEMPLATE) + +@app.route('/logout') +def logout(): + session.clear() + flash('您已成功登出.') + return redirect(url_for('login')) + +# --- 应用辅助函数和路由保护 --- +from functools import wraps +from flask import g, flash # ensure g and flash are imported + +def login_required(view): + @wraps(view) + def wrapped_view(**kwargs): + if g.user is None: + return redirect(url_for('login')) + return view(**kwargs) + return wrapped_view + +@app.before_request +def load_logged_in_user(): + user_id = session.get('user_id') + if user_id is None: + g.user = None + else: + g.user = get_db().execute( + 'SELECT * FROM user WHERE id = ?', (user_id,) + ).fetchone() + # --- 辅助函数 --- +def save_api_call_details_to_file(api_call_details: list[APICallDetail], output_dir_path_str: str, filename: str = "api_call_details.md"): + """将API调用详情保存到Markdown文件。""" + if not api_call_details: + logger.info("没有API调用详情可保存。") + return None + + output_dir = Path(output_dir_path_str) + output_dir.mkdir(parents=True, exist_ok=True) + file_path = output_dir / filename + + unique_id_counter = 0 + + try: + with open(file_path, 'w', encoding='utf-8') as f: + f.write("# API 调用详情记录\\n\\n") + for detail_obj in api_call_details: + unique_id_counter +=1 + unique_id = f"api-call-{unique_id_counter}" + + # Convert elapsed time from seconds to milliseconds for display + elapsed_ms = detail_obj.response_elapsed_time * 1000 + + f.write(f"
\\n") + f.write(f"{detail_obj.request_method.upper()} {detail_obj.request_url} - 状态: {detail_obj.response_status_code} - 耗时: {elapsed_ms:.2f}ms\\n\\n") + + # 请求详情 + f.write("#### 请求 (Request)\\n") + f.write(f"- **Method:** `{detail_obj.request_method.upper()}`\\n") + f.write(f"- **URL:** `{detail_obj.request_url}`\\n") + if detail_obj.request_headers: + f.write("- **Headers:**\\n") + f.write("```json\\n") + f.write(json.dumps(detail_obj.request_headers, indent=2, ensure_ascii=False) + "\\n") + f.write("```\\n") + if detail_obj.request_params: + f.write("- **Query Parameters:**\\n") + f.write("```json\\n") + f.write(json.dumps(detail_obj.request_params, indent=2, ensure_ascii=False) + "\\n") + f.write("```\\n") + if detail_obj.request_body: + f.write("- **Request Body:**\\n") + f.write("```json\\n") # 假设请求体是JSON,如果不是则可能需要调整 + # 尝试解析为JSON,如果失败则按原样写入 + try: + body_json = json.loads(detail_obj.request_body) if isinstance(detail_obj.request_body, str) else detail_obj.request_body + f.write(json.dumps(body_json, indent=2, ensure_ascii=False) + "\\n") + except json.JSONDecodeError: + f.write(str(detail_obj.request_body) + "\\n") # Fallback to string + f.write("```\\n") + + f.write(f"- **cURL Command:**\\n") + f.write("```bash\\n") + f.write(detail_obj.curl_command + "\\n") + f.write("```\\n\\n") + + # 响应详情 + f.write("#### 响应 (Response)\\n") + f.write(f"- **Status Code:** `{detail_obj.response_status_code}`\\n") + f.write(f"- **Elapsed Time:** {elapsed_ms:.2f} ms\\n") + if detail_obj.response_headers: + f.write("- **Response Headers:**\\n") + f.write("```json\\n") + f.write(json.dumps(detail_obj.response_headers, indent=2, ensure_ascii=False) + "\\n") + f.write("```\\n") + if detail_obj.response_body: + f.write("- **Response Body:**\\n") + # 首先尝试格式化为JSON,如果失败则保持原样 + try: + # 假设 response_body 是字符串或者可以被json.loads处理的字节串 + body_to_write = detail_obj.response_body + if isinstance(body_to_write, bytes): + try: + body_to_write = body_to_write.decode('utf-8') + except UnicodeDecodeError: + body_to_write = str(body_to_write) # Fallback if not UTF-8 + + if isinstance(body_to_write, str): + try: + parsed_json = json.loads(body_to_write) + f.write("```json\\n") + f.write(json.dumps(parsed_json, indent=2, ensure_ascii=False) + "\\n") + f.write("```\\n") + except json.JSONDecodeError: # Not a JSON string + f.write("```text\\n") # Treat as plain text + f.write(body_to_write + "\\n") + f.write("```\\n") + else: # Already a dict/list (shouldn't happen if APICallDetail.response_body is str/bytes) + f.write("```json\\n") + f.write(json.dumps(body_to_write, indent=2, ensure_ascii=False) + "\\n") + f.write("```\\n") + except Exception as e_resp_body: + logger.error(f"Error processing response body for API call to {detail_obj.request_url}: {e_resp_body}") + f.write("```text\\n") + f.write(f"(Error processing response body: {e_resp_body})\\n") + f.write(str(detail_obj.response_body) + "\\n") # Fallback + f.write("```\\n") + else: + f.write("- Response Body: (empty)\\n") + + f.write("\\n
\\n\\n") + f.write("---\\n\\n") # Separator + + logger.info(f"API 调用详情已成功保存到: {file_path}") + return str(file_path) + except IOError as e: + logger.error(f"保存 API 调用详情到文件时发生IO错误 '{file_path}': {e}", exc_info=True) + return None + except Exception as e: + logger.error(f"保存 API 调用详情时发生未知错误 '{file_path}': {e}", exc_info=True) + return None + def get_orchestrator_from_config(config: dict) -> APITestOrchestrator: """根据配置字典实例化APITestOrchestrator""" return APITestOrchestrator( base_url=config.get('base_url', ''), custom_test_cases_dir=config.get('custom_test_cases_dir'), + stages_dir=config.get('stages_dir'), llm_api_key=config.get('llm_api_key'), llm_base_url=config.get('llm_base_url'), llm_model_name=config.get('llm_model_name'), @@ -50,159 +353,182 @@ def get_orchestrator_from_config(config: dict) -> APITestOrchestrator: # --- API 端点 --- @app.route('/') +@login_required # Protect the main page def serve_index(): + # Initialize DB if it doesn't exist when first accessing the app + # This is a simple way, for production you might want a separate init step. + if not os.path.exists(DATABASE): + init_db(force_create=True) return send_from_directory(app.static_folder, 'index.html') @app.route('/run-tests', methods=['POST']) +@login_required # Protect this endpoint def run_tests_endpoint(): + logger.info("Received request to run tests.") + + output_dir = None # To hold the path for report links + temp_spec_path = None # To hold the path for the uploaded spec file + try: - config_data = request.json - if not config_data: - return jsonify({"error": "Request body must be JSON"}), 400 + # The form is now sent as multipart/form-data + config_data = request.form.to_dict() + logger.info(f"Received config: {config_data}") - logger.info(f"接收到测试运行请求: {config_data}") + # Handle file upload + if 'api_spec_file' not in request.files: + logger.error("API spec file part is missing from the request.") + return jsonify({"error": "API spec file part is missing"}), 400 + + file = request.files['api_spec_file'] + if file.filename == '': + logger.error("No API spec file selected.") + return jsonify({"error": "No API spec file selected"}), 400 - # 校验必需参数 - if not config_data.get('base_url'): - return jsonify({"error": "'base_url' is required"}), 400 - if not config_data.get('yapi_file_path') and not config_data.get('swagger_file_path'): - return jsonify({"error": "Either 'yapi_file_path' or 'swagger_file_path' is required"}), 400 + if file: + filename = secure_filename(file.filename) + # Create a unique filename to avoid conflicts + unique_filename = f"{uuid.uuid4()}_{filename}" + temp_spec_path = os.path.join(app.config['UPLOAD_FOLDER'], unique_filename) + file.save(temp_spec_path) + logger.info(f"Saved uploaded spec file to {temp_spec_path}") + else: + # This case should ideally not be reached if the above checks are in place + return jsonify({"error": "Invalid file object received"}), 400 + # Create orchestrator from form data orchestrator = get_orchestrator_from_config(config_data) - summary = TestSummary() # 为本次运行创建新的摘要 + + # Prepare summary object + summary = TestSummary() + # Determine API spec type and parse the uploaded file + api_spec_type = config_data.get('api_spec_type', 'YAPI') + logger.info(f"API Spec Type: {api_spec_type}") + + parser = InputParser() parsed_spec = None - api_spec_type = "" - - if config_data.get('yapi_file_path'): - api_spec_type = "YAPI" - yapi_path = config_data['yapi_file_path'] - if not os.path.isabs(yapi_path): - yapi_path = os.path.join(os.getcwd(), yapi_path) # 假设相对路径相对于服务器工作目录 - if not os.path.exists(yapi_path): - return jsonify({"error": f"YAPI file not found: {yapi_path}"}), 400 - logger.info(f"解析YAPI文件: {yapi_path}") - parsed_spec = orchestrator.parser.parse_yapi_spec(yapi_path) - if not parsed_spec: - logger.error(f"解析YAPI文件失败: {yapi_path}") - return jsonify({"error": f"Failed to parse YAPI file: {yapi_path}"}), 500 + if api_spec_type == "YAPI": + parsed_spec = parser.parse_yapi_spec(temp_spec_path) + elif api_spec_type == "Swagger": + parsed_spec = parser.parse_swagger_spec(temp_spec_path) - elif config_data.get('swagger_file_path'): - api_spec_type = "Swagger/OpenAPI" - swagger_path = config_data['swagger_file_path'] - if not os.path.isabs(swagger_path): - swagger_path = os.path.join(os.getcwd(), swagger_path) # 假设相对路径 - if not os.path.exists(swagger_path): - return jsonify({"error": f"Swagger file not found: {swagger_path}"}), 400 - logger.info(f"解析Swagger/OpenAPI文件: {swagger_path}") - parsed_spec = orchestrator.parser.parse_swagger_spec(swagger_path) - if not parsed_spec: - logger.error(f"解析Swagger文件失败: {swagger_path}") - return jsonify({"error": f"Failed to parse Swagger file: {swagger_path}"}), 500 + if not parsed_spec: + error_msg = f"Failed to parse the uploaded {api_spec_type} file." + logger.error(error_msg) + return jsonify({"error": error_msg}), 400 + + logger.info("Successfully parsed API specification.") - # 执行测试用例 - logger.info(f"开始从已解析的 {api_spec_type} 规范执行测试用例...") + # Execute tests from parsed spec + logger.info(f"Starting test execution from parsed {api_spec_type} spec...") summary = orchestrator._execute_tests_from_parsed_spec( parsed_spec=parsed_spec, summary=summary, - categories=config_data.get('categories'), # 逗号分隔的字符串,需要转为列表 - tags=config_data.get('tags'), # 同上 + categories=config_data.get('categories').split(',') if config_data.get('categories') else None, + tags=config_data.get('tags').split(',') if config_data.get('tags') else None, custom_test_cases_dir=config_data.get('custom_test_cases_dir') ) - logger.info("测试用例执行完成。") + logger.info("Test case execution finished.") - # 执行场景测试 (如果指定了目录) - scenarios_dir = config_data.get('scenarios_dir') - if scenarios_dir and parsed_spec: - if not os.path.isabs(scenarios_dir): - scenarios_dir = os.path.join(os.getcwd(), scenarios_dir) - logger.info(f"开始执行API场景测试,目录: {scenarios_dir}") - orchestrator.run_scenarios_from_spec( - scenarios_dir=scenarios_dir, - parsed_spec=parsed_spec, - summary=summary - ) - logger.info("API场景测试执行完毕。") + # Execute test stages + logger.info("Starting stage execution...") + summary = orchestrator.run_stages_from_spec( + parsed_spec=parsed_spec, + summary=summary + ) + logger.info("Stage execution finished.") + + # Handle output and reporting + output_dir = config_data.get('output_dir', './test_reports') + if not os.path.isabs(output_dir): + output_dir = os.path.join(APP_ROOT, output_dir) - summary.finalize_summary() # 最终确定摘要,计算总时长等 - # summary.print_summary_to_console() # 后端服务通常不直接打印到控制台 + os.makedirs(output_dir, exist_ok=True) + summary_path = os.path.join(output_dir, "test_summary.json") + details_path = os.path.join(output_dir, "api_call_details.md") - # 可以在这里决定如何保存报告,例如保存到 output_dir (如果提供) - output_dir_path_str = config_data.get('output_dir') - main_report_file_path_str = "" - api_calls_output_path_str = "" - api_calls_filename = "api_call_details.md" - - if output_dir_path_str: - output_path = Path(output_dir_path_str) - output_path.mkdir(parents=True, exist_ok=True) - main_report_file_path = output_path / f"summary_report.json" # 默认保存为json - main_report_file_path_str = str(main_report_file_path) - with open(main_report_file_path, 'w', encoding='utf-8') as f: - f.write(summary.to_json(pretty=True)) - logger.info(f"主测试报告已保存到: {main_report_file_path}") - - # 保存API调用详情 - api_calls_output_path_str = str(output_path) - # (需要从 run_api_tests.py 移植 save_api_call_details_to_file 或类似功能) - # 暂时跳过保存 api_call_details 文件,因为 orchestrator.get_api_call_details() 需要被调用 - # 并且保存逻辑也需要移植。 - # save_api_call_details_to_file(orchestrator.get_api_call_details(), api_calls_output_path_str, api_calls_filename) + with open(summary_path, 'w', encoding='utf-8') as f: + f.write(summary.to_json(pretty=True)) + logger.info(f"Test summary saved to {summary_path}") + + save_api_call_details_to_file(orchestrator.get_api_call_details(), output_dir) + logger.info(f"API call details saved to {details_path}") return jsonify({ - "message": "测试执行完成。", "summary": summary.to_dict(), - "report_file": main_report_file_path_str, # 报告文件路径(如果保存了) - # "api_calls_file": api_calls_output_path_str + "/" + api_calls_filename # API调用详情文件路径 - }), 200 + "summary_report_path": f"/download/{os.path.basename(output_dir)}/test_summary.json", + "details_report_path": f"/download/{os.path.basename(output_dir)}/api_call_details.md" + }) except Exception as e: - logger.error(f"执行测试时发生错误: {e}\n{traceback.format_exc()}") - return jsonify({"error": f"执行测试时发生内部错误: {str(e)}"}), 500 + error_msg = f"An unexpected error occurred during testing: {traceback.format_exc()}" + logger.error(error_msg) + return jsonify({"error": error_msg}), 500 + finally: + # Clean up the uploaded file + if temp_spec_path and os.path.exists(temp_spec_path): + os.remove(temp_spec_path) + logger.info(f"Cleaned up temporary file: {temp_spec_path}") @app.route('/list-yapi-categories', methods=['POST']) +@login_required def list_yapi_categories_endpoint(): + if 'api_spec_file' not in request.files: + return jsonify({"error": "api_spec_file part is missing"}), 400 + + file = request.files['api_spec_file'] + if file.filename == '': + return jsonify({"error": "No file selected"}), 400 + + temp_spec_path = None try: - data = request.json - yapi_file = data.get('yapi_file_path') - if not yapi_file: - return jsonify({"error": "'yapi_file_path' is required"}), 400 - - if not os.path.isabs(yapi_file): - yapi_file = os.path.join(os.getcwd(), yapi_file) - if not os.path.exists(yapi_file): - return jsonify({"error": f"YAPI file not found: {yapi_file}"}), 400 + filename = secure_filename(file.filename) + unique_filename = f"{uuid.uuid4()}_{filename}" + temp_spec_path = os.path.join(app.config['UPLOAD_FOLDER'], unique_filename) + file.save(temp_spec_path) parser = InputParser() - parsed_yapi = parser.parse_yapi_spec(yapi_file) - if not parsed_yapi or not parsed_yapi.categories: + parsed_yapi = parser.parse_yapi_spec(temp_spec_path) + + if not parsed_yapi or not hasattr(parsed_yapi, 'categories') or not parsed_yapi.categories: return jsonify({"error": "Failed to parse YAPI categories or no categories found"}), 500 categories_list = [ - {"name": cat.get('name', '未命名'), "description": cat.get('desc', '无描述')} + { + "name": cat.get('name', '未命名'), + "description": cat.get('desc') if cat.get('desc') else cat.get('description') if cat.get('description') else '无描述' + } for cat in parsed_yapi.categories ] return jsonify(categories_list), 200 except Exception as e: - logger.error(f"列出YAPI分类时出错: {e}\n{traceback.format_exc()}") - return jsonify({"error": f"处理YAPI分类列表时出错: {str(e)}"}), 500 + logger.error(f"Error fetching YAPI categories: {traceback.format_exc()}") + return jsonify({"error": str(e)}), 500 + finally: + if temp_spec_path and os.path.exists(temp_spec_path): + os.remove(temp_spec_path) @app.route('/list-swagger-tags', methods=['POST']) +@login_required def list_swagger_tags_endpoint(): - try: - data = request.json - swagger_file = data.get('swagger_file_path') - if not swagger_file: - return jsonify({"error": "'swagger_file_path' is required"}), 400 + if 'api_spec_file' not in request.files: + return jsonify({"error": "api_spec_file part is missing"}), 400 + + file = request.files['api_spec_file'] + if file.filename == '': + return jsonify({"error": "No file selected"}), 400 - if not os.path.isabs(swagger_file): - swagger_file = os.path.join(os.getcwd(), swagger_file) - if not os.path.exists(swagger_file): - return jsonify({"error": f"Swagger file not found: {swagger_file}"}), 400 + temp_spec_path = None + try: + filename = secure_filename(file.filename) + unique_filename = f"{uuid.uuid4()}_{filename}" + temp_spec_path = os.path.join(app.config['UPLOAD_FOLDER'], unique_filename) + file.save(temp_spec_path) parser = InputParser() - parsed_swagger = parser.parse_swagger_spec(swagger_file) - if not parsed_swagger or not parsed_swagger.tags: + parsed_swagger = parser.parse_swagger_spec(temp_spec_path) + + if not parsed_swagger or not hasattr(parsed_swagger, 'tags') or not parsed_swagger.tags: return jsonify({"error": "Failed to parse Swagger tags or no tags found"}), 500 tags_list = [ @@ -211,9 +537,33 @@ def list_swagger_tags_endpoint(): ] return jsonify(tags_list), 200 except Exception as e: - logger.error(f"列出Swagger标签时出错: {e}\n{traceback.format_exc()}") - return jsonify({"error": f"处理Swagger标签列表时出错: {str(e)}"}), 500 + logger.error(f"Error fetching Swagger tags: {traceback.format_exc()}") + return jsonify({"error": str(e)}), 500 + finally: + if temp_spec_path and os.path.exists(temp_spec_path): + os.remove(temp_spec_path) + +@app.route('/download/') +@login_required +def download_file(filepath): + """Serve files from a designated reports directory.""" + # This is a simplified download endpoint. For production, consider: + # - More robust security checks on the filepath. + # - Configuring the reports directory from a central config. + reports_base_dir = os.path.join(APP_ROOT, 'test_reports') + + # Basic security check to prevent directory traversal + if '..' in filepath or os.path.isabs(filepath): + from flask import abort + abort(404) + + logger.info(f"Attempting to serve file: {filepath} from directory: {reports_base_dir}") + return send_from_directory(reports_base_dir, filepath, as_attachment=True) if __name__ == '__main__': # 注意:在生产环境中,应使用Gunicorn或uWSGI等WSGI服务器运行Flask应用 + # For initial setup, you might need to run the init_db function once. + # You can do this by running flask --app flask_app init-db in your terminal + # or by uncommenting the line below for the very first run: + # init_db(force_create=False) app.run(debug=True, host='0.0.0.0', port=5050) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a80e538..748bfab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,6 @@ prance[osv]>=23.0.0,<24.0.0 # 测试框架 (可选, 推荐) # pytest>=7.0.0,<8.0.0 # pytest-cov>=4.0.0,<5.0.0 -# httpx>=0.20.0,<0.28.0 # for testing API calls \ No newline at end of file +# httpx>=0.20.0,<0.28.0 # for testing API calls + +Flask-Cors>=3.0 \ No newline at end of file diff --git a/schema.sql b/schema.sql new file mode 100644 index 0000000..89c9d57 --- /dev/null +++ b/schema.sql @@ -0,0 +1,7 @@ +DROP TABLE IF EXISTS user; + +CREATE TABLE user ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username TEXT UNIQUE NOT NULL, + password_hash TEXT NOT NULL +); \ No newline at end of file diff --git a/static/index.html b/static/index.html index 1edf0ca..9154223 100644 --- a/static/index.html +++ b/static/index.html @@ -12,7 +12,7 @@

测试配置

-
+
@@ -21,73 +21,85 @@
API 定义源 (选择一个)
- - - -
+ +
- - - -
+ +
+
+ +
+
+
-
- - -
-
- - -
-
- - -
+
+ 高级配置 (点击展开) +
+ + +
+
+ + +
+
+ + +
+
-
- LLM 配置 (可选) -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
+
+ LLM 配置 (可选, 点击展开) +
+ LLM 配置 (可选) +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
-

测试状态与结果

-
等待配置并运行测试...
-

-            
+            

测试日志与结果

+ + +
+ +
diff --git a/static/script.js b/static/script.js index cc0f23f..1f6e907 100644 --- a/static/script.js +++ b/static/script.js @@ -1,140 +1,139 @@ document.addEventListener('DOMContentLoaded', () => { - const form = document.getElementById('test-config-form'); - const statusArea = document.getElementById('status-area'); - const resultsOutput = document.getElementById('results-output'); - const reportLinkArea = document.getElementById('report-link-area'); + const form = document.getElementById('test-form'); + const logOutput = document.getElementById('log-output'); + const resultsContainer = document.getElementById('results-container'); + const loadSpecBtn = document.getElementById('load-spec-btn'); + const apiSpecFileInput = document.getElementById('api_spec_file'); + const apiSpecTypeSelect = document.getElementById('api_spec_type'); + const yapiCategoriesContainer = document.getElementById('yapi-categories-container'); + const swaggerTagsContainer = document.getElementById('swagger-tags-container'); + + // Make the log output area larger as per user request + if (logOutput) { + logOutput.rows = 25; + } + + // Event listener for the new "Load Categories/Tags" button + if (loadSpecBtn) { + loadSpecBtn.addEventListener('click', async () => { + const specType = apiSpecTypeSelect.value; + const file = apiSpecFileInput.files[0]; + + if (!file) { + alert('请先选择一个 API 规范文件。'); + return; + } + + const formData = new FormData(); + formData.append('api_spec_file', file); + + let url = ''; + let container = null; + + if (specType === 'YAPI') { + url = '/list-yapi-categories'; + container = yapiCategoriesContainer; + swaggerTagsContainer.style.display = 'none'; + yapiCategoriesContainer.style.display = 'block'; + } else { // Swagger + url = '/list-swagger-tags'; + container = swaggerTagsContainer; + yapiCategoriesContainer.style.display = 'none'; + swaggerTagsContainer.style.display = 'block'; + } + + container.innerHTML = '

正在加载...

'; + + try { + const response = await fetch(url, { + method: 'POST', + body: formData, // Send FormData directly + }); + + if (!response.ok) { + const errorData = await response.json().catch(() => ({ error: '无法解析错误响应' })); + throw new Error(errorData.error || `请求 ${specType} 分类/标签时出错`); + } + + const data = await response.json(); + renderItemsList(container, data, specType); // Using a simplified renderer + } catch (error) { + console.error(`请求${specType}分类时出错:`, error); + container.innerHTML = `

加载失败: ${error.message}

`; + } + }); + } form.addEventListener('submit', async (event) => { event.preventDefault(); - statusArea.textContent = '正在运行测试,请稍候...'; - resultsOutput.textContent = ''; - reportLinkArea.innerHTML = ''; - + logOutput.value = '正在开始测试...\n'; + resultsContainer.innerHTML = ''; + + // FormData will correctly handle all form fields, including the file upload const formData = new FormData(form); - const config = {}; - formData.forEach((value, key) => { - // 处理复选框 - if (key.startsWith('use_llm_for_')) { - config[key] = form.elements[key].checked; - } else if (value.trim() !== '') { // 只添加非空值 - config[key] = value.trim(); - } - }); - - // 如果复选框未被选中,FormData 不会包含它们,所以要确保它们是 false - ['use_llm_for_request_body', 'use_llm_for_path_params', 'use_llm_for_query_params', 'use_llm_for_headers'].forEach(key => { - if (!(key in config)) { - config[key] = false; - } - }); - - // 从 YAPI 分类和 Swagger 标签中获取选中的项 - const selectedYapiCategories = Array.from(document.querySelectorAll('#yapi-categories-container input[type="checkbox"]:checked')) - .map(cb => cb.value); - if (selectedYapiCategories.length > 0) { - config['categories'] = selectedYapiCategories.join(','); - } - - const selectedSwaggerTags = Array.from(document.querySelectorAll('#swagger-tags-container input[type="checkbox"]:checked')) - .map(cb => cb.value); - if (selectedSwaggerTags.length > 0) { - config['tags'] = selectedSwaggerTags.join(','); - } - + try { const response = await fetch('/run-tests', { method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(config) + // For FormData, the browser sets the Content-Type to multipart/form-data with the correct boundary. + // Do not set the 'Content-Type' header manually. + body: formData, }); - + const result = await response.json(); - - if (response.ok) { - statusArea.textContent = `测试完成: ${result.message || '成功'}`; - resultsOutput.textContent = JSON.stringify(result.summary, null, 2); - if (result.report_file) { - reportLinkArea.innerHTML = `

测试报告已保存到: ${result.report_file}

`; - } - } else { - statusArea.textContent = `测试失败: ${result.error || '未知错误'}`; - resultsOutput.textContent = JSON.stringify(result, null, 2); + + if (!response.ok) { + // Try to parse the error, provide a fallback message. + const errorMessage = result.error || '运行测试时发生未知错误'; + logOutput.value += `\n错误: ${errorMessage}`; + throw new Error(errorMessage); } + + // Restore summary to the log output + logOutput.value += '\n测试执行完成。\n\n'; + logOutput.value += '--- 测试摘要 ---\n'; + logOutput.value += JSON.stringify(result.summary, null, 2); + + displayResults(result); + } catch (error) { - statusArea.textContent = '运行测试时发生网络错误或服务器内部错误。'; - resultsOutput.textContent = error.toString(); - console.error('运行测试出错:', error); + console.error('运行测试时捕获到错误:', error); + logOutput.value += `\n\n发生严重错误: ${error.message}`; + resultsContainer.innerHTML = `

测试运行失败: ${error.message}

`; } }); + + // A simplified function to render categories/tags as a list + function renderItemsList(container, items, type) { + if (!items || items.length === 0) { + container.innerHTML = '

未找到任何项。

'; + return; + } + let html = `

${type} ${type === 'YAPI' ? '分类' : '标签'}:

'; + container.innerHTML = html; + } + + function displayResults(result) { + // Per user request, only show download links and remove the summary view. + let linksHtml = '

下载报告

'; + if (result.summary_report_path) { + linksHtml += `

摘要报告 (JSON)

`; + } + if (result.details_report_path) { + linksHtml += `

API 调用详情 (Markdown)

`; + } + + if (!result.summary_report_path && !result.details_report_path) { + linksHtml += '

没有可用的报告文件。

'; + } + + resultsContainer.innerHTML = linksHtml; + } }); -async function fetchYapiCategories() { - const yapiFilePath = document.getElementById('yapi_file_path').value; - const container = document.getElementById('yapi-categories-container'); - container.innerHTML = '正在加载分类...'; - - if (!yapiFilePath) { - container.innerHTML = '

请输入YAPI文件路径。

'; - return; - } - - try { - const response = await fetch('/list-yapi-categories', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ yapi_file_path: yapiFilePath }) - }); - const categories = await response.json(); - if (response.ok) { - renderCheckboxes(container, categories, 'yapi_category'); - } else { - container.innerHTML = `

加载YAPI分类失败: ${categories.error || '未知错误'}

`; - } - } catch (error) { - container.innerHTML = `

请求YAPI分类时出错: ${error}

`; - } -} - -async function fetchSwaggerTags() { - const swaggerFilePath = document.getElementById('swagger_file_path').value; - const container = document.getElementById('swagger-tags-container'); - container.innerHTML = '正在加载标签...'; - - if (!swaggerFilePath) { - container.innerHTML = '

请输入Swagger文件路径。

'; - return; - } - - try { - const response = await fetch('/list-swagger-tags', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ swagger_file_path: swaggerFilePath }) - }); - const tags = await response.json(); - if (response.ok) { - renderCheckboxes(container, tags, 'swagger_tag'); - } else { - container.innerHTML = `

加载Swagger标签失败: ${tags.error || '未知错误'}

`; - } - } catch (error) { - container.innerHTML = `

请求Swagger标签时出错: ${error}

`; - } -} - -function renderCheckboxes(container, items, groupName) { - if (!items || items.length === 0) { - container.innerHTML = '

未找到任何项。

'; - return; - } - let html = items.map((item, index) => { - const id = `${groupName}_${index}`; - return `
- - -
`; - }).join(''); - container.innerHTML = html; -} \ No newline at end of file +// The old functions fetchYapiCategories, fetchSwaggerTags, and renderCheckboxes are no longer needed +// and should be removed if they exist elsewhere in this file. \ No newline at end of file diff --git a/test_reports/api_call_details.md b/test_reports/api_call_details.md index a2acb6c..a37c1f2 100644 --- a/test_reports/api_call_details.md +++ b/test_reports/api_call_details.md @@ -1,22 +1,8 @@ -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ +# API 调用详情记录\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 48.96ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ "tenant-id": "header_val_tenant-id", "Content-Type": "application/json", "Accept": "application/json" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "dataRegions": [ @@ -54,78 +40,35 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, }, "sort": {} } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0706s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 48.96 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "433", + "Content-Length": "179", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 21, - "message": "in enim ut voluptate dolor", +}\n```\n- **Response Body:**\n```json\n{ + "code": 60, + "message": "exercitation in laborum", "data": { - "total": 97, + "total": 9, "list": [ - { - "dsid": "78", - "dataRegion": "enim Ut occaecat", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, { "dsid": "88", - "dataRegion": "Lorem ipsum nulla exercitation laborum", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "42", - "dataRegion": "do dolor dolore ad", + "dataRegion": "dolor enim", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 23.01ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ "tenant-id": "header_val_tenant-id", "Content-Type": "application/json", "Accept": "application/json" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "dataRegions": [ @@ -163,588 +106,42 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, }, "sort": {} } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0229s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 23.01 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "287", + "Content-Length": "288", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 89, - "message": "aliqua irure quis commodo fugiat", +}\n```\n- **Response Body:**\n```json\n{ + "code": 4, + "message": "Ut officia deserunt", "data": { - "total": 1, + "total": 76, "list": [ { - "dsid": "75", - "dataRegion": "quis qui", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "89", - "dataRegion": "nostrud", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0202s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "196", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 78, - "message": "reprehenderit adipisicing", - "data": { - "total": 22, - "list": [ - { - "dsid": "34", - "dataRegion": "cupidatat ad in aute est", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0159s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "410", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 65, - "message": "officia", - "data": { - "total": 13, - "list": [ - { - "dsid": "64", - "dataRegion": "officia nisi", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "45", - "dataRegion": "est sint in commodo Excepteur", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "87", - "dataRegion": "sit eu qui voluptate veniam", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": "not-a-boolean", - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0156s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "285", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 83, - "message": "enim tempor qui cupidatat Excepteur", - "data": { - "total": 92, - "list": [ - { - "dsid": "47", - "dataRegion": "nisi eu", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "2", - "dataRegion": "sed", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0165s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "171", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 45, - "message": "non sit", - "data": { - "total": 5, - "list": [ - { - "dsid": "87", - "dataRegion": "reprehenderit esse", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0157s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "382", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 93, - "message": "in", - "data": { - "total": 83, - "list": [ - { - "dsid": "51", - "dataRegion": "anim", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "23", - "dataRegion": "Excepteur laboris", + "dsid": "14", + "dataRegion": "minim", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "15", - "dataRegion": "ut magna eu fugiat velit", + "dataRegion": "consectetur cupidatat in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 18.97ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ "tenant-id": "header_val_tenant-id", "Content-Type": "application/json", "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "dataRegions": [ @@ -782,71 +179,35 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, }, "sort": {} } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0149s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 18.97 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "189", + "Content-Length": "195", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 70, - "message": "ullamco ea qui ex", +}\n```\n- **Response Body:**\n```json\n{ + "code": 46, + "message": "est minim tempor officia", "data": { - "total": 10, + "total": 52, "list": [ { - "dsid": "56", - "dataRegion": "occaecat mollit est ipsum", + "dsid": "54", + "dataRegion": "commodo elit sunt cillum", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 22.28ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ "tenant-id": "header_val_tenant-id", "Content-Type": "application/json", "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "dataRegions": [ @@ -884,194 +245,1508 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, }, "sort": {} } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0137s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 22.28 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "432", + "Content-Length": "186", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 70, - "message": "ad labore commodo deserunt", +}\n```\n- **Response Body:**\n```json\n{ + "code": 30, + "message": "veniam pariatur voluptate", "data": { - "total": 35, + "total": 46, "list": [ { - "dsid": "7", - "dataRegion": "anim laboris quis", + "dsid": "43", + "dataRegion": "dolore laborum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 18.03ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": "not-a-boolean", + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 18.03 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "294", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 95, + "message": "ut anim irure ex", + "data": { + "total": 57, + "list": [ + { + "dsid": "88", + "dataRegion": "commodo dolore", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { - "dsid": "20", - "dataRegion": "mollit cupidatat est id", + "dsid": "89", + "dataRegion": "cupidatat ut nisi ipsum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 14.94ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.94 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "415", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 34, + "message": "ullamco", + "data": { + "total": 57, + "list": [ + { + "dsid": "55", + "dataRegion": "Duis nisi exercitation aute ad", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, + { + "dsid": "96", + "dataRegion": "est et", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "26", + "dataRegion": "adipisicing ullamco sit elit deserunt", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version - 状态: 200 - 耗时: 19.05ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 19.05 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "336", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 23, + "message": "voluptate incididunt laboris in consequat", + "data": { + "total": 63, + "list": [ + { + "dsid": "91", + "dataRegion": "Ut Duis occaecat cillum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "64", + "dataRegion": "tempor sint eiusmod et deserunt", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 15.13ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.13 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "303", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 23, + "message": "reprehenderit qui in aliqua velit", + "data": { + "total": 8, + "list": [ + { + "dsid": "88", + "dataRegion": "cupidatat", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "31", + "dataRegion": "Ut adipisicing dolore", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 16.27ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 16.27 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "320", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 46, + "message": "adipisicing aute mollit nostrud fugiat", + "data": { + "total": 58, + "list": [ + { + "dsid": "47", + "dataRegion": "et nostrud eiusmod voluptate dolore", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "47", + "dataRegion": "cillum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 15.63ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.63 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "165", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 42, + "message": "aliqua et nisi", + "data": { + "total": 28, + "list": [ + { + "dsid": "26", + "dataRegion": "aute", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 15.63ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": 12345, + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=12345&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.63 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "180", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 33, + "message": "nisi ipsum id reprehenderit", + "data": { + "total": 87, + "list": [ + { + "dsid": "50", + "dataRegion": "veniam", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 14.17ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": "not-a-boolean", + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.17 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "170", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 78, + "message": "fugiat mollit", + "data": { + "total": 81, + "list": [ + { + "dsid": "52", + "dataRegion": "id nostrud", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 14.94ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.94 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "275", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 15, + "message": "ex anim consectetur ut in", + "data": { + "total": 76, + "list": [ + { + "dsid": "4", + "dataRegion": "veniam", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "72", + "dataRegion": "amet", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 17.07ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "pageNo": "query_val_pageNo", + "pageSize": "query_val_pageSize" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 17.07 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "378", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 22, + "message": "mollit", + "data": { + "total": 21, + "list": [ + { + "dsid": "55", + "dataRegion": "ut aliquip elit consequat enim", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "21", + "dataRegion": "et", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "99", + "dataRegion": "velit", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 12.52ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "id": "example_string", + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.52 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "45", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 79, + "message": "minim ex", + "data": false +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 14.81ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "id": "example_string", + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.81 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "51", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 89, + "message": "quis in laboris", + "data": true +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 12.97ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "id": "example_string", + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.97 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "60", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 78, + "message": "magna adipisicing nulla", + "data": false +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 14.04ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": 12345 +}\n```\n- **Request Body:**\n```json\n{ + "id": "example_string", + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.04 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "63", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 80, + "message": "dolore cupidatat amet Duis", + "data": false +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 16.87ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "id": 12345, + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 42' -d '{"id": 12345, "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 16.87 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "66", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 7, + "message": "esse et reprehenderit ex tempor", + "data": true +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 16.69ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 29' -d '{"version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 16.69 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "13", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 4003 +}\n```\n\n
\n\n---\n\n
\nPUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.24ms\n\n#### 请求 (Request)\n- **Method:** `PUT`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "id": "example_string", + "version": "example_string" +}\n```\n- **cURL Command:**\n```bash\ncurl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.24 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "57", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 36, + "message": "sed cillum qui labore", + "data": true +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.80ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.80 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "65", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 90, + "message": "enim ut exercitation sit sed", + "data": false +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 12.31ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.31 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "57", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 14, + "message": "occaecat magna minim", + "data": false +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.36ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.36 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "58", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 59, + "message": "cupidatat adipisicing", + "data": false +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 15.01ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": 12345 +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.01 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "47", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 28, + "message": "sed veniam", + "data": false +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.03ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": 12345, + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 46' -d '{"version": 12345, "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.03 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "41", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:48 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 81, + "message": "ex Ut", + "data": true +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 16.39ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Query Parameters:**\n```json\n{ + "id": "dsid" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 16.39 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "63", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 87, + "message": "amet eiusmod commodo dolore", + "data": true +}\n```\n\n
\n\n---\n\n
\nDELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.31ms\n\n#### 请求 (Request)\n- **Method:** `DELETE`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + "example_string" + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.31 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "70", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 64, + "message": "dolor Excepteur labore tempor amet", + "data": true +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.26ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.26 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "62", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 62, + "message": "deserunt Ut sed quis culpa", + "data": true +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 12.66ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.66 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "39", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 32, + "message": "ea", + "data": false +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 15.69ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.69 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "47", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 66, + "message": "incididunt", + "data": false +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.09ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.09 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "42", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 71, + "message": "dolore", + "data": true +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 17.23ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": 12345, + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 141' -d '{"version": 12345, "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 17.23 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "50", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 80, + "message": "Ut Lorem ex id", + "data": true +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 13.50ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 137' -d '{"version": "example_string", "data": [{"wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.50 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "53", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 15, + "message": "in commodo minim", + "data": false +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 12.53ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "version": "example_string", + "data": [ + { + "bsflag": 0.0, + "wellCommonName": "example_string", + "wellId": "example_string", + "dataRegion": "example_string" + } + ] +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.53 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "40", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 7, + "message": "culpa", + "data": true +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 18.09ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 18.09 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "433", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 21, + "message": "consectetur dolor tempor", + "data": { + "total": 88, + "list": [ + { + "dsid": "41", + "dataRegion": "adipisicing mollit eiusmod dolore occaecat", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "84", + "dataRegion": "sunt non adipisicing", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "91", + "dataRegion": "sit amet non", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 12.99ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.99 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "175", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 50, + "message": "officia id ipsum aliquip", + "data": { + "total": 99, + "list": [ + { + "dsid": "33", + "dataRegion": "elit", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 12.11ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.11 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "398", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 15, + "message": "est in", + "data": { + "total": 49, + "list": [ { "dsid": "76", - "dataRegion": "cupidatat dolore eu commodo quis", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0141s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "282", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 40, - "message": "quis sint", - "data": { - "total": 37, - "list": [ - { - "dsid": "69", - "dataRegion": "sit dolore", + "dataRegion": "consequat", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { "dsid": "67", - "dataRegion": "ullamco esse consequat", + "dataRegion": "ex quis consequat sunt velit", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "15", + "dataRegion": "adipisicing nisi sed", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=12345&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=12345&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=12345&pageSize=query_val_pageSize` -- **Headers:** -```json -{ +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 12.68ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ "tenant-id": "header_val_tenant-id", "Content-Type": "application/json", "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": 12345, - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "dataRegions": [ @@ -1109,2328 +1784,298 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, }, "sort": {} } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0145s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.68 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "190", + "Content-Length": "409", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 3, - "message": "reprehenderit Ut adipisicing anim", +}\n```\n- **Response Body:**\n```json\n{ + "code": 33, + "message": "exercitation amet", "data": { "total": 78, "list": [ { - "dsid": "99", - "dataRegion": "ex enim sit", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ - "isSearchCount": "not-a-boolean", - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0154s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "179", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 55, - "message": "qui ea est", - "data": { - "total": 37, - "list": [ - { - "dsid": "27", - "dataRegion": "qui adipisicing sed in", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0177s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "205", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 50, - "message": "aliqua nisi occaecat", - "data": { - "total": 32, - "list": [ - { - "dsid": "92", - "dataRegion": "incididunt non dolore cupidatat labore", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=query_val_pageNo&pageSize=query_val_pageSize` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "pageNo": "query_val_pageNo", - "pageSize": "query_val_pageSize" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0318s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "297", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 10, - "message": "fugiat ex", - "data": { - "total": 85, - "list": [ - { - "dsid": "94", - "dataRegion": "reprehenderit enim velit esse", + "dsid": "66", + "dataRegion": "voluptate in", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, - { - "dsid": "51", - "dataRegion": "sit amet Excepteur", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "id": "example_string", - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0131s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "69", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 59, - "message": "officia ea eiusmod nisi cupidatat", - "data": true -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "id": "example_string", - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0136s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "50", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 91, - "message": "minim elit in", - "data": false -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "id": "example_string", - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0157s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "72", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 15, - "message": "occaecat ullamco minim reprehenderit", - "data": true -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": 12345 -} - ``` -- **Body:** -```json -{ - "id": "example_string", - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0124s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "49", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 15, - "message": "dolore ex id", - "data": false -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 42' -d '{"id": 12345, "version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "id": 12345, - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0123s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "60", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 9, - "message": "et ut aliqua aliquip est", - "data": false -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 29' -d '{"version": "example_string"}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0218s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "13", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 4003 -} - ``` - ---- -## `PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -X PUT -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 53' -d '{"id": "example_string", "version": "example_string"}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `PUT` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "id": "example_string", - "version": "example_string" -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0132s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "54", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 76, - "message": "ut do enim dolore", - "data": false -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0134s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "40", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 85, - "message": "qui", - "data": false -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0125s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "57", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 18, - "message": "id elit dolor ullamco", - "data": true -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0160s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "41", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:02 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 12, - "message": "dolor", - "data": true -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=12345` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": 12345 -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0143s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "41", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 72, - "message": "dolor", - "data": true -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 46' -d '{"version": 12345, "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": 12345, - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0161s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "69", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 54, - "message": "do magna labore aliquip occaecat", - "data": false -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid' -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit?id=dsid` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Query Parameters:** -```json -{ - "id": "dsid" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0144s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "59", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 36, - "message": "minim nisi fugiat velit", - "data": true -} - ``` - ---- -## `DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -X DELETE -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 57' -d '{"version": "example_string", "data": ["example_string"]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `DELETE` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - "example_string" - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0130s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "52", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 52, - "message": "proident dolore", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0187s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "39", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 54, - "message": "ad", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0140s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "58", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 39, - "message": "voluptate commodo est", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0128s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "70", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 5, - "message": "deserunt labore Excepteur veniam do", - "data": true -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0129s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "51", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 45, - "message": "Lorem dolor et", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 141' -d '{"version": 12345, "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": 12345, - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0130s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "54", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 92, - "message": "tempor ut aliquip", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 137' -d '{"version": "example_string", "data": [{"wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0167s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "49", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 35, - "message": "tempor culpa", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 152' -d '{"version": "example_string", "data": [{"bsflag": 0.0, "wellCommonName": "example_string", "wellId": "example_string", "dataRegion": "example_string"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "version": "example_string", - "data": [ - { - "bsflag": 0.0, - "wellCommonName": "example_string", - "wellId": "example_string", - "dataRegion": "example_string" - } - ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0192s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "62", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 38, - "message": "nulla ad ullamco Lorem qui", - "data": true -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0139s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "415", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 11, - "message": "velit ullamco nulla occaecat est", - "data": { - "total": 4, - "list": [ - { - "dsid": "62", - "dataRegion": "sint eiusmod minim eu", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "2", - "dataRegion": "anim Duis", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "71", - "dataRegion": "nostrud do cupidatat", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0131s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "310", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 38, - "message": "sit aliquip dolore pariatur", - "data": { - "total": 94, - "list": [ - { - "dsid": "69", - "dataRegion": "dolore", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "22", - "dataRegion": "aliquip dolore aliqua nisi voluptate", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0126s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "432", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 25, - "message": "Ut cupidatat cillum", - "data": { - "total": 95, - "list": [ - { - "dsid": "34", - "dataRegion": "amet dolor voluptate dolore", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "60", - "dataRegion": "dolore commodo", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "76", - "dataRegion": "pariatur exercitation voluptate dolor", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0123s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "382", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 14, - "message": "proident", - "data": { - "total": 2, - "list": [ - { - "dsid": "71", - "dataRegion": "deserunt occaecat", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "75", - "dataRegion": "in voluptate ullamco", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "70", - "dataRegion": "qui", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": "not-a-boolean", - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0147s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "183", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 62, - "message": "eu magna culpa nisi", - "data": { - "total": 75, - "list": [ - { - "dsid": "41", - "dataRegion": "culpa mollit sunt", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0165s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "162", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 75, - "message": "et", - "data": { - "total": 93, - "list": [ - { - "dsid": "96", - "dataRegion": "do enim nulla", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - } - ] - } -} - ``` - ---- -## `GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -**cURL Command:** -```sh -curl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id -``` -### Request Details -- **Method:** `GET` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id` -- **Headers:** -```json -{ - "tenant-id": "header_val_tenant-id", - "Content-Type": "application/json", - "Accept": "application/json" -} - ``` -- **Body:** -```json -{ - "isSearchCount": true, - "query": { - "dataRegions": [ - "example_string" - ], - "fields": [ - "example_string" - ], - "filter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "groupFields": [ - "example_string" - ], - "groupFilter": { - "key": "example_string", - "logic": "example_string", - "realValue": [ - {} - ], - "singleValue": {}, - "subFilter": [ - "example_string" - ], - "symbol": "example_string" - }, - "sort": {} - } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0136s` -- **Headers:** -```json -{ - "Vary": "Origin", - "Access-Control-Allow-Origin": "*", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "395", - "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", - "Connection": "keep-alive", - "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 15, - "message": "sunt nisi enim", - "data": { - "total": 45, - "list": [ { "dsid": "37", - "dataRegion": "reprehenderit", + "dataRegion": "do consectetur eu dolor", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { - "dsid": "97", - "dataRegion": "amet anim esse", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "30", - "dataRegion": "sunt Ut enim et sit", + "dsid": "34", + "dataRegion": "elit Duis magna in qui", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: your-tenant-id' -H 'Content-Type: application/json' -H 'Authorization: Bearer your-test-token' -H 'Content-Length: 120' -d '{"version": "1.0.0", "data": [{"wellCommonName": "TestResource_1749119283_3c0f3c", "dataRegion": "Feature_1749119283"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit` -- **Headers:** -```json -{ +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 15.03ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": "not-a-boolean", + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 488' -d '{"isSearchCount": "not-a-boolean", "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.03 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "427", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 10, + "message": "et ut consequat laboris", + "data": { + "total": 54, + "list": [ + { + "dsid": "22", + "dataRegion": "deserunt incididunt", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "80", + "dataRegion": "ullamco id et consectetur cillum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "10", + "dataRegion": "anim eu aliquip et", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 13.17ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 13.17 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "185", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 11, + "message": "nisi", + "data": { + "total": 64, + "list": [ + { + "dsid": "4", + "dataRegion": "adipisicing Lorem cupidatat commodo", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nGET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id - 状态: 200 - 耗时: 15.10ms\n\n#### 请求 (Request)\n- **Method:** `GET`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id`\n- **Headers:**\n```json\n{ + "tenant-id": "header_val_tenant-id", + "Content-Type": "application/json", + "Accept": "application/json" +}\n```\n- **Request Body:**\n```json\n{ + "isSearchCount": true, + "query": { + "dataRegions": [ + "example_string" + ], + "fields": [ + "example_string" + ], + "filter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "groupFields": [ + "example_string" + ], + "groupFilter": { + "key": "example_string", + "logic": "example_string", + "realValue": [ + {} + ], + "singleValue": {}, + "subFilter": [ + "example_string" + ], + "symbol": "example_string" + }, + "sort": {} + } +}\n```\n- **cURL Command:**\n```bash\ncurl -X GET -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: header_val_tenant-id' -H 'Content-Type: application/json' -H 'Content-Length: 477' -d '{"isSearchCount": true, "query": {"dataRegions": ["example_string"], "fields": ["example_string"], "filter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "groupFields": ["example_string"], "groupFilter": {"key": "example_string", "logic": "example_string", "realValue": [{}], "singleValue": {}, "subFilter": ["example_string"], "symbol": "example_string"}, "sort": {}}}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 15.10 ms\n- **Response Headers:**\n```json\n{ + "Vary": "Origin", + "Access-Control-Allow-Origin": "*", + "Content-Type": "application/json; charset=utf-8", + "Content-Length": "318", + "success": "false", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", + "Connection": "keep-alive", + "Keep-Alive": "timeout=5" +}\n```\n- **Response Body:**\n```json\n{ + "code": 64, + "message": "cupidatat", + "data": { + "total": 30, + "list": [ + { + "dsid": "39", + "dataRegion": "voluptate magna consequat incididunt", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "29", + "dataRegion": "officia ullamco do reprehenderit", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit - 状态: 200 - 耗时: 14.80ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit`\n- **Headers:**\n```json\n{ "tenant-id": "your-tenant-id", "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer your-test-token" -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "version": "1.0.0", "data": [ { - "wellCommonName": "TestResource_1749119283_3c0f3c", - "dataRegion": "Feature_1749119283" + "wellCommonName": "TestResource_1749192709_93a75f", + "dataRegion": "Feature_1749192709" } ] -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0121s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: your-tenant-id' -H 'Content-Type: application/json' -H 'Authorization: Bearer your-test-token' -H 'Content-Length: 120' -d '{"version": "1.0.0", "data": [{"wellCommonName": "TestResource_1749192709_93a75f", "dataRegion": "Feature_1749192709"}]}' --insecure http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 14.80 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "59", + "Content-Length": "42", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 32, - "message": "esse nulla adipisicing", - "data": false -} - ``` - ---- -## `POST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=1&pageSize=10` -**cURL Command:** -```sh -curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: your-tenant-id' -H 'Content-Type: application/json' -H 'Authorization: Bearer your-test-token' -H 'Content-Length: 187' -d '{"isSearchCount": true, "query": {"fields": ["dsid", "wellCommonName", "dataRegion"], "filter": {"key": "wellCommonName", "symbol": "=", "realValue": ["TestResource_1749119283_3c0f3c"]}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=1&pageSize=10' -``` -### Request Details -- **Method:** `POST` -- **Full URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=1&pageSize=10` -- **Headers:** -```json -{ +}\n```\n- **Response Body:**\n```json\n{ + "code": 31, + "message": "labore", + "data": true +}\n```\n\n
\n\n---\n\n
\nPOST http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0 - 状态: 200 - 耗时: 12.73ms\n\n#### 请求 (Request)\n- **Method:** `POST`\n- **URL:** `http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0`\n- **Headers:**\n```json\n{ "tenant-id": "your-tenant-id", "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer your-test-token" -} - ``` -- **Query Parameters:** -```json -{ +}\n```\n- **Query Parameters:**\n```json\n{ "pageNo": 1, "pageSize": 10 -} - ``` -- **Body:** -```json -{ +}\n```\n- **Request Body:**\n```json\n{ "isSearchCount": true, "query": { "fields": [ @@ -3442,60 +2087,46 @@ curl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, "key": "wellCommonName", "symbol": "=", "realValue": [ - "TestResource_1749119283_3c0f3c" + "TestResource_1749192709_93a75f" ] } } -} - ``` -### Response Details -- **Status Code:** `200` -- **Elapsed Time:** `0.0129s` -- **Headers:** -```json -{ +}\n```\n- **cURL Command:**\n```bash\ncurl -H 'User-Agent: python-requests/2.32.3' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'tenant-id: your-tenant-id' -H 'Content-Type: application/json' -H 'Authorization: Bearer your-test-token' -H 'Content-Length: 187' -d '{"isSearchCount": true, "query": {"fields": ["dsid", "wellCommonName", "dataRegion"], "filter": {"key": "wellCommonName", "symbol": "=", "realValue": ["TestResource_1749192709_93a75f"]}}}' --insecure 'http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0?pageNo=1&pageSize=10'\n```\n\n#### 响应 (Response)\n- **Status Code:** `200`\n- **Elapsed Time:** 12.73 ms\n- **Response Headers:**\n```json\n{ "Vary": "Origin", "Access-Control-Allow-Origin": "*", "Content-Type": "application/json; charset=utf-8", - "Content-Length": "386", + "Content-Length": "387", "success": "false", - "Date": "Thu, 05 Jun 2025 10:28:03 GMT", + "Date": "Fri, 06 Jun 2025 06:51:49 GMT", "Connection": "keep-alive", "Keep-Alive": "timeout=5" -} - ``` -- **Body:** -```json -{ - "code": 98, - "message": "Duis proident magna nulla", +}\n```\n- **Response Body:**\n```json\n{ + "code": 61, + "message": "in reprehenderit", "data": { - "total": 61, + "total": 47, "list": [ + { + "dsid": "47", + "dataRegion": "et eiusmod ut veniam dolore", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, { "dsid": "16", - "dataRegion": "pariatur dolore", + "dataRegion": "sunt", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null }, { - "dsid": "69", - "dataRegion": "Ut", - "gasReleaseMon": null, - "gasReleaseYear": null, - "releaseGasCum": null - }, - { - "dsid": "25", - "dataRegion": "ut in sed", + "dsid": "80", + "dataRegion": "Lorem", "gasReleaseMon": null, "gasReleaseYear": null, "releaseGasCum": null } ] } -} - ``` - ---- \ No newline at end of file +}\n```\n\n
\n\n---\n\n \ No newline at end of file diff --git a/test_reports/summary_report.json b/test_reports/summary_report.json new file mode 100644 index 0000000..3949ef0 --- /dev/null +++ b/test_reports/summary_report.json @@ -0,0 +1,1091 @@ +{ + "start_time": "2025-06-06T13:53:10.172079", + "end_time": "2025-06-06T13:53:11.207955", + "duration_seconds": "1.04", + "overall_summary": { + "total_endpoints_defined": 6, + "endpoints_tested": 6, + "endpoints_passed": 0, + "endpoints_failed": 6, + "endpoints_error": 0, + "endpoints_skipped": 0, + "endpoints_partial_success": 0, + "endpoint_success_rate": "0.00%", + "total_test_cases_applicable": 42, + "total_test_cases_executed": 42, + "test_cases_passed": 24, + "test_cases_failed": 18, + "test_cases_error": 0, + "test_cases_skipped_in_endpoint": 0, + "test_case_success_rate": "57.14%", + "total_stages_defined": 1, + "total_stages_executed": 1, + "stages_passed": 0, + "stages_failed": 1, + "stages_error": 0, + "stages_skipped": 0, + "stage_success_rate": "0.00%" + }, + "errors": [], + "endpoint_results": [ + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}", + "endpoint_name": "数据推送接口", + "overall_status": "失败", + "duration_seconds": 0.395623, + "start_time": "2025-06-06T13:53:10.172995", + "end_time": "2025-06-06T13:53:10.568618", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.26096183299887343, + "timestamp": "2025-06-06T13:53:10.434089", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.02282766700045613, + "timestamp": "2025-06-06T13:53:10.457234", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.02275595900027838, + "timestamp": "2025-06-06T13:53:10.480036", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.022829749999800697, + "timestamp": "2025-06-06T13:53:10.502918", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '48'.", + "duration_seconds": 0.025692915998661192, + "timestamp": "2025-06-06T13:53:10.528688", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 48, + "message": "anim aliqua", + "data": { + "total": 38, + "list": [ + { + "dsid": "44", + "dataRegion": "consequat et anim ut", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "86", + "dataRegion": "ad minim proident", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "72", + "dataRegion": "exercitation", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.019248083999627852, + "timestamp": "2025-06-06T13:53:10.547981", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.020521917000223766, + "timestamp": "2025-06-06T13:53:10.568582", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}", + "endpoint_name": "地质单元列表查询", + "overall_status": "失败", + "duration_seconds": 0.139168, + "start_time": "2025-06-06T13:53:10.568743", + "end_time": "2025-06-06T13:53:10.707911", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.020759208000526996, + "timestamp": "2025-06-06T13:53:10.589611", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.01967112500096846, + "timestamp": "2025-06-06T13:53:10.609410", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.02585029100009706, + "timestamp": "2025-06-06T13:53:10.635305", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'pageNo' (路径: 'pageNo') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '33'.", + "duration_seconds": 0.018051707998893107, + "timestamp": "2025-06-06T13:53:10.653414", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 33, + "message": "quis", + "data": { + "total": 49, + "list": [ + { + "dsid": "24", + "dataRegion": "non", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "pageNo" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '19'.", + "duration_seconds": 0.02016833299967402, + "timestamp": "2025-06-06T13:53:10.673671", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 19, + "message": "non proident voluptate", + "data": { + "total": 48, + "list": [ + { + "dsid": "48", + "dataRegion": "mollit Duis anim nulla in", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "35", + "dataRegion": "cillum in", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.01876833400092437, + "timestamp": "2025-06-06T13:53:10.692515", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.015312000001358683, + "timestamp": "2025-06-06T13:53:10.707873", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据修改", + "overall_status": "失败", + "duration_seconds": 0.132339, + "start_time": "2025-06-06T13:53:10.708009", + "end_time": "2025-06-06T13:53:10.840348", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.0175804579994292, + "timestamp": "2025-06-06T13:53:10.725658", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.025048292000064976, + "timestamp": "2025-06-06T13:53:10.750771", + "validation_points": [ + { + "passed": true, + "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.021549749999394407, + "timestamp": "2025-06-06T13:53:10.772373", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '29'.", + "duration_seconds": 0.0156894169995212, + "timestamp": "2025-06-06T13:53:10.788091", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 29, + "message": "tempor Excepteur dolore", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'id' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '27'.", + "duration_seconds": 0.015921208001600462, + "timestamp": "2025-06-06T13:53:10.804031", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 27, + "message": "labore laborum nostrud deserunt ut", + "data": false + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code').", + "duration_seconds": 0.019309584000438917, + "timestamp": "2025-06-06T13:53:10.823360", + "validation_points": [ + { + "passed": true, + "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code')." + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '72'.", + "duration_seconds": 0.01695425000070827, + "timestamp": "2025-06-06T13:53:10.840334", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 72, + "message": "cupidatat laborum Duis ipsum", + "data": false + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_param": "query.id" + } + ] + } + ] + }, + { + "endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据删除", + "overall_status": "失败", + "duration_seconds": 0.111858, + "start_time": "2025-06-06T13:53:10.840387", + "end_time": "2025-06-06T13:53:10.952245", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.015856624999287305, + "timestamp": "2025-06-06T13:53:10.856271", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.016327416999047273, + "timestamp": "2025-06-06T13:53:10.872617", + "validation_points": [ + { + "passed": true, + "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.018065749998640968, + "timestamp": "2025-06-06T13:53:10.890704", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '85'.", + "duration_seconds": 0.015820958000404062, + "timestamp": "2025-06-06T13:53:10.906554", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 85, + "message": "do ex dolore", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '7'.", + "duration_seconds": 0.01824408399988897, + "timestamp": "2025-06-06T13:53:10.924816", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 7, + "message": "do proident labore", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.version" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.014596875000279397, + "timestamp": "2025-06-06T13:53:10.939431", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '56'.", + "duration_seconds": 0.012786332999894512, + "timestamp": "2025-06-06T13:53:10.952234", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 56, + "message": "reprehenderit eiusmod ullamco", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_param": "query.id" + } + ] + } + ] + }, + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据添加", + "overall_status": "失败", + "duration_seconds": 0.101687, + "start_time": "2025-06-06T13:53:10.952279", + "end_time": "2025-06-06T13:53:11.053966", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.013899000001401873, + "timestamp": "2025-06-06T13:53:10.966202", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.012564917000418063, + "timestamp": "2025-06-06T13:53:10.978785", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.015663750000385335, + "timestamp": "2025-06-06T13:53:10.994473", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.017019375000018044, + "timestamp": "2025-06-06T13:53:11.011511", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '48'.", + "duration_seconds": 0.014236125000024913, + "timestamp": "2025-06-06T13:53:11.025765", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 48, + "message": "minim exercitation non occaecat enim", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.version" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填请求体字段 'data.0.bsflag' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '37'.", + "duration_seconds": 0.014379374999407446, + "timestamp": "2025-06-06T13:53:11.040162", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 37, + "message": "dolore tempor", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_field": "body.data.0.bsflag" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.013773791999483365, + "timestamp": "2025-06-06T13:53:11.053953", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}", + "endpoint_name": "地质单元查询详情", + "overall_status": "失败", + "duration_seconds": 0.116003, + "start_time": "2025-06-06T13:53:11.054002", + "end_time": "2025-06-06T13:53:11.170005", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.013373874999160762, + "timestamp": "2025-06-06T13:53:11.067404", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.01739479199932248, + "timestamp": "2025-06-06T13:53:11.084816", + "validation_points": [ + { + "passed": true, + "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.015521667000939487, + "timestamp": "2025-06-06T13:53:11.100359", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.018343916999583598, + "timestamp": "2025-06-06T13:53:11.118817", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '94'.", + "duration_seconds": 0.015072542000780231, + "timestamp": "2025-06-06T13:53:11.133939", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 94, + "message": "fugiat sint", + "data": { + "total": 5, + "list": [ + { + "dsid": "59", + "dataRegion": "dolore reprehenderit", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.015055791000122554, + "timestamp": "2025-06-06T13:53:11.149037", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.02081745800023782, + "timestamp": "2025-06-06T13:53:11.169916", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + } + ], + "stage_results": [ + { + "stage_id": "generic_crud_validation_stage", + "stage_name": "Generic CRUD Validation Stage", + "description": "Performs a generic CRUD (Create, List, Read, Update, Delete) flow. It tries to dynamically discover API operations based on common keywords and HTTP methods. Field names for IDs, names, features, and JSON paths for list/detail objects are configurable via class attributes or can be set in `before_stage` based on `api_group_name`.", + "api_group_name": "地质单元", + "tags": [ + "crud", + "generic_validation" + ], + "overall_status": "失败", + "duration_seconds": "0.03", + "start_time": "2025-06-06T13:53:11", + "end_time": "2025-06-06T13:53:11", + "message": "测试阶段因步骤 'List and Find Created Resource' 的状态 (失败) 而中止.", + "executed_steps_count": 2, + "executed_steps": [ + { + "step_name": "Create New Resource", + "description": null, + "lookup_key": "地质单元数据添加", + "resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "status": "通过", + "message": "", + "duration_seconds": "0.0000", + "timestamp": "2025-06-06T13:53:11+0800", + "validation_points": [ + { + "passed": true, + "message": "状态码匹配 (200)." + } + ], + "api_call_curl": "N/A", + "request_details": { + "method": "POST", + "url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit", + "headers": { + "tenant-id": "your-tenant-id", + "Content-Type": "application/json", + "Accept": "application/json", + "Authorization": "Bearer your-test-token" + }, + "params": {}, + "json_data": { + "version": "1.0.0", + "data": [ + { + "wellCommonName": "TestResource_1749189191_6471f8", + "dataRegion": "Feature_1749189191" + } + ] + }, + "body": { + "version": "1.0.0", + "data": [ + { + "wellCommonName": "TestResource_1749189191_6471f8", + "dataRegion": "Feature_1749189191" + } + ] + }, + "data": null, + "timeout": 30 + }, + "extracted_outputs": {}, + "context_after_step_summary": { + "unique_resource_name": "TestResource_1749189191_6471f8", + "updated_resource_name": "TestResource_1749189191_6471f8_UPDATED", + "unique_feature_value": "Feature_1749189191", + "updated_feature_value": "Feature_1749189191_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + }, + { + "step_name": "List and Find Created Resource", + "description": null, + "lookup_key": "地质单元列表查询", + "resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}", + "status": "失败", + "message": "Resource not found: Name 'TestResource_1749189191_6471f8' (field: wellCommonName) not found in list at path 'data.list'.", + "duration_seconds": "0.0000", + "timestamp": "2025-06-06T13:53:11+0800", + "validation_points": [ + { + "passed": true, + "message": "状态码匹配 (200)." + }, + { + "passed": false, + "message": "Resource not found: Name 'TestResource_1749189191_6471f8' (field: wellCommonName) not found in list at path 'data.list'." + } + ], + "api_call_curl": "N/A", + "request_details": { + "method": "POST", + "url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0", + "headers": { + "tenant-id": "your-tenant-id", + "Content-Type": "application/json", + "Accept": "application/json", + "Authorization": "Bearer your-test-token" + }, + "params": { + "pageNo": 1, + "pageSize": 10 + }, + "json_data": { + "isSearchCount": true, + "query": { + "fields": [ + "dsid", + "wellCommonName", + "dataRegion" + ], + "filter": { + "key": "wellCommonName", + "symbol": "=", + "realValue": [ + "TestResource_1749189191_6471f8" + ] + } + } + }, + "body": { + "isSearchCount": true, + "query": { + "fields": [ + "dsid", + "wellCommonName", + "dataRegion" + ], + "filter": { + "key": "wellCommonName", + "symbol": "=", + "realValue": [ + "TestResource_1749189191_6471f8" + ] + } + } + }, + "data": null, + "timeout": 30 + }, + "extracted_outputs": {}, + "context_after_step_summary": { + "unique_resource_name": "TestResource_1749189191_6471f8", + "updated_resource_name": "TestResource_1749189191_6471f8_UPDATED", + "unique_feature_value": "Feature_1749189191", + "updated_feature_value": "Feature_1749189191_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + } + ], + "final_stage_context_summary": { + "unique_resource_name": "TestResource_1749189191_6471f8", + "updated_resource_name": "TestResource_1749189191_6471f8_UPDATED", + "unique_feature_value": "Feature_1749189191", + "updated_feature_value": "Feature_1749189191_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + } + ], + "api_call_details_summary": [] +} \ No newline at end of file diff --git a/test_reports/test_summary.json b/test_reports/test_summary.json new file mode 100644 index 0000000..fedc065 --- /dev/null +++ b/test_reports/test_summary.json @@ -0,0 +1,1091 @@ +{ + "start_time": "2025-06-06T14:51:48.488220", + "end_time": null, + "duration_seconds": "0.00", + "overall_summary": { + "total_endpoints_defined": 6, + "endpoints_tested": 6, + "endpoints_passed": 0, + "endpoints_failed": 6, + "endpoints_error": 0, + "endpoints_skipped": 0, + "endpoints_partial_success": 0, + "endpoint_success_rate": "0.00%", + "total_test_cases_applicable": 42, + "total_test_cases_executed": 42, + "test_cases_passed": 24, + "test_cases_failed": 18, + "test_cases_error": 0, + "test_cases_skipped_in_endpoint": 0, + "test_case_success_rate": "57.14%", + "total_stages_defined": 1, + "total_stages_executed": 1, + "stages_passed": 0, + "stages_failed": 1, + "stages_error": 0, + "stages_skipped": 0, + "stage_success_rate": "0.00%" + }, + "errors": [], + "endpoint_results": [ + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}", + "endpoint_name": "数据推送接口", + "overall_status": "失败", + "duration_seconds": 0.182755, + "start_time": "2025-06-06T14:51:48.491430", + "end_time": "2025-06-06T14:51:48.674185", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.05334266600038973, + "timestamp": "2025-06-06T14:51:48.545207", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.024825041997246444, + "timestamp": "2025-06-06T14:51:48.570085", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.02034641700083739, + "timestamp": "2025-06-06T14:51:48.590459", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.025210584000888048, + "timestamp": "2025-06-06T14:51:48.615720", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '95'.", + "duration_seconds": 0.020784416003152728, + "timestamp": "2025-06-06T14:51:48.636559", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 95, + "message": "ut anim irure ex", + "data": { + "total": 57, + "list": [ + { + "dsid": "88", + "dataRegion": "commodo dolore", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "89", + "dataRegion": "cupidatat ut nisi ipsum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.016974458001641324, + "timestamp": "2025-06-06T14:51:48.653591", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.020508665998931974, + "timestamp": "2025-06-06T14:51:48.674129", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}", + "endpoint_name": "地质单元列表查询", + "overall_status": "失败", + "duration_seconds": 0.12284, + "start_time": "2025-06-06T14:51:48.674289", + "end_time": "2025-06-06T14:51:48.797129", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.017299541999818757, + "timestamp": "2025-06-06T14:51:48.691655", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.018496458000299754, + "timestamp": "2025-06-06T14:51:48.710217", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.017493832998297876, + "timestamp": "2025-06-06T14:51:48.727756", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'pageNo' (路径: 'pageNo') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '33'.", + "duration_seconds": 0.01719437499923515, + "timestamp": "2025-06-06T14:51:48.744973", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 33, + "message": "nisi ipsum id reprehenderit", + "data": { + "total": 87, + "list": [ + { + "dsid": "50", + "dataRegion": "veniam", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "pageNo" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '78'.", + "duration_seconds": 0.016157709000253817, + "timestamp": "2025-06-06T14:51:48.761160", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 78, + "message": "fugiat mollit", + "data": { + "total": 81, + "list": [ + { + "dsid": "52", + "dataRegion": "id nostrud", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.017421792003005976, + "timestamp": "2025-06-06T14:51:48.778659", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.018410417000268353, + "timestamp": "2025-06-06T14:51:48.797093", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据修改", + "overall_status": "失败", + "duration_seconds": 0.11473, + "start_time": "2025-06-06T14:51:48.797203", + "end_time": "2025-06-06T14:51:48.911933", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.014398915998754092, + "timestamp": "2025-06-06T14:51:48.811687", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.016782833001343533, + "timestamp": "2025-06-06T14:51:48.828508", + "validation_points": [ + { + "passed": true, + "message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.014094499998464016, + "timestamp": "2025-06-06T14:51:48.842618", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '80'.", + "duration_seconds": 0.015201000001979992, + "timestamp": "2025-06-06T14:51:48.857836", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 80, + "message": "dolore cupidatat amet Duis", + "data": false + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'id' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '7'.", + "duration_seconds": 0.018401041998004075, + "timestamp": "2025-06-06T14:51:48.876255", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 7, + "message": "esse et reprehenderit ex tempor", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code').", + "duration_seconds": 0.021074042000691406, + "timestamp": "2025-06-06T14:51:48.897354", + "validation_points": [ + { + "passed": true, + "message": "当移除必填请求体字段 'id' 时,API响应了状态码 200 (非主要预期HTTP状态 [400, 422],但为4xx客户端错误), 且响应体中包含预期的业务错误码 '4003' (字段: 'code')." + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '36'.", + "duration_seconds": 0.01451695800278685, + "timestamp": "2025-06-06T14:51:48.911893", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 36, + "message": "sed cillum qui labore", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_param": "query.id" + } + ] + } + ] + }, + { + "endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据删除", + "overall_status": "失败", + "duration_seconds": 0.111018, + "start_time": "2025-06-06T14:51:48.912010", + "end_time": "2025-06-06T14:51:49.023028", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.01588241600256879, + "timestamp": "2025-06-06T14:51:48.927983", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.014806333001615712, + "timestamp": "2025-06-06T14:51:48.942880", + "validation_points": [ + { + "passed": true, + "message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.015079542001330992, + "timestamp": "2025-06-06T14:51:48.957995", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当查询参数 'id' (路径: 'id') 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '28'.", + "duration_seconds": 0.016614416002994403, + "timestamp": "2025-06-06T14:51:48.974630", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 28, + "message": "sed veniam", + "data": false + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_param": "id" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '81'.", + "duration_seconds": 0.01528150000012829, + "timestamp": "2025-06-06T14:51:48.989945", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 81, + "message": "ex Ut", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.version" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.017617207999137463, + "timestamp": "2025-06-06T14:51:49.007586", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填查询参数 'id' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '64'.", + "duration_seconds": 0.015348207998613361, + "timestamp": "2025-06-06T14:51:49.022995", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 64, + "message": "dolor Excepteur labore tempor amet", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_param": "query.id" + } + ] + } + ] + }, + { + "endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "endpoint_name": "地质单元数据添加", + "overall_status": "失败", + "duration_seconds": 0.107121, + "start_time": "2025-06-06T14:51:49.023146", + "end_time": "2025-06-06T14:51:49.130267", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.015233542002533795, + "timestamp": "2025-06-06T14:51:49.038453", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。", + "duration_seconds": 0.014519708001898834, + "timestamp": "2025-06-06T14:51:49.053015", + "validation_points": [ + { + "passed": true, + "message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。" + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.016617666999081848, + "timestamp": "2025-06-06T14:51:49.069652", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.01427829199747066, + "timestamp": "2025-06-06T14:51:49.083948", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'version' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '80'.", + "duration_seconds": 0.018418457999359816, + "timestamp": "2025-06-06T14:51:49.102383", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 80, + "message": "Ut Lorem ex id", + "data": true + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.version" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "失败", + "message": "当移除必填请求体字段 'data.0.bsflag' 时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4003'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '15'.", + "duration_seconds": 0.014483540999208344, + "timestamp": "2025-06-06T14:51:49.116883", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 15, + "message": "in commodo minim", + "data": false + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4003", + "removed_field": "body.data.0.bsflag" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.013351333000173327, + "timestamp": "2025-06-06T14:51:49.130252", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + }, + { + "endpoint_id": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}", + "endpoint_name": "地质单元查询详情", + "overall_status": "失败", + "duration_seconds": 0.10687, + "start_time": "2025-06-06T14:51:49.130308", + "end_time": "2025-06-06T14:51:49.237178", + "executed_test_cases": [ + { + "test_case_id": "TC-STATUS-001", + "test_case_name": "基本状态码 200 检查", + "test_case_severity": "严重", + "status": "通过", + "message": "响应状态码为 200,符合预期 200。", + "duration_seconds": 0.01892316700104857, + "timestamp": "2025-06-06T14:51:49.149260", + "validation_points": [ + { + "passed": true, + "message": "响应状态码为 200,符合预期 200。" + } + ] + }, + { + "test_case_id": "TC-CORE-FUNC-001", + "test_case_name": "Response Body JSON Schema Validation", + "test_case_severity": "严重", + "status": "通过", + "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema.", + "duration_seconds": 0.013931500001490349, + "timestamp": "2025-06-06T14:51:49.163213", + "validation_points": [ + { + "passed": true, + "message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema." + } + ] + }, + { + "test_case_id": "TC-SECURITY-001", + "test_case_name": "HTTPS Protocol Mandatory Verification", + "test_case_severity": "严重", + "status": "失败", + "message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id) 响应了成功的状态码 200,这违反了HTTPS强制策略。", + "duration_seconds": 0.012880499998573214, + "timestamp": "2025-06-06T14:51:49.176112", + "validation_points": [ + { + "status_code": 200 + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-QUERY", + "test_case_name": "Error Code 4001 - Query Parameter Type Mismatch Validation", + "test_case_severity": "中", + "status": "通过", + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。", + "duration_seconds": 0.013656999999511754, + "timestamp": "2025-06-06T14:51:49.189791", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4001-BODY", + "test_case_name": "Error Code 4001 - Request Body Type Mismatch Validation", + "test_case_severity": "中", + "status": "失败", + "message": "当请求体字段 'isSearchCount' 类型不匹配时,期望API返回状态码在 [400, 422] 中,或返回4xx客户端错误且业务码为 '4001'. 实际收到状态码 200. 响应体中的业务码 ('code') 为 '10'.", + "duration_seconds": 0.01650158299889881, + "timestamp": "2025-06-06T14:51:49.206314", + "validation_points": [ + { + "status_code": 200, + "response_body": { + "code": 10, + "message": "et ut consequat laboris", + "data": { + "total": 54, + "list": [ + { + "dsid": "22", + "dataRegion": "deserunt incididunt", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "80", + "dataRegion": "ullamco id et consectetur cillum", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + }, + { + "dsid": "10", + "dataRegion": "anim eu aliquip et", + "gasReleaseMon": null, + "gasReleaseYear": null, + "releaseGasCum": null + } + ] + } + }, + "expected_http_status_codes": [ + 400, + 422 + ], + "expected_business_code": "4001", + "mismatched_field": "body.isSearchCount" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-BODY", + "test_case_name": "Error Code 4003 - Missing Required Request Body Field Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。", + "duration_seconds": 0.014763375002075918, + "timestamp": "2025-06-06T14:51:49.221099", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。" + } + ] + }, + { + "test_case_id": "TC-ERROR-4003-QUERY", + "test_case_name": "Error Code 4003 - Missing Required Query Parameter Validation", + "test_case_severity": "高", + "status": "通过", + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。", + "duration_seconds": 0.016036624998378102, + "timestamp": "2025-06-06T14:51:49.237158", + "validation_points": [ + { + "passed": true, + "message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。" + } + ] + } + ] + } + ], + "stage_results": [ + { + "stage_id": "generic_crud_validation_stage", + "stage_name": "Generic CRUD Validation Stage", + "description": "Performs a generic CRUD (Create, List, Read, Update, Delete) flow. It tries to dynamically discover API operations based on common keywords and HTTP methods. Field names for IDs, names, features, and JSON paths for list/detail objects are configurable via class attributes or can be set in `before_stage` based on `api_group_name`.", + "api_group_name": "地质单元", + "tags": [ + "crud", + "generic_validation" + ], + "overall_status": "失败", + "duration_seconds": "0.03", + "start_time": "2025-06-06T14:51:49", + "end_time": "2025-06-06T14:51:49", + "message": "测试阶段因步骤 'List and Find Created Resource' 的状态 (失败) 而中止.", + "executed_steps_count": 2, + "executed_steps": [ + { + "step_name": "Create New Resource", + "description": null, + "lookup_key": "地质单元数据添加", + "resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit", + "status": "通过", + "message": "", + "duration_seconds": "0.0000", + "timestamp": "2025-06-06T14:51:49+0800", + "validation_points": [ + { + "passed": true, + "message": "状态码匹配 (200)." + } + ], + "api_call_curl": "N/A", + "request_details": { + "method": "POST", + "url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit", + "headers": { + "tenant-id": "your-tenant-id", + "Content-Type": "application/json", + "Accept": "application/json", + "Authorization": "Bearer your-test-token" + }, + "params": {}, + "json_data": { + "version": "1.0.0", + "data": [ + { + "wellCommonName": "TestResource_1749192709_93a75f", + "dataRegion": "Feature_1749192709" + } + ] + }, + "body": { + "version": "1.0.0", + "data": [ + { + "wellCommonName": "TestResource_1749192709_93a75f", + "dataRegion": "Feature_1749192709" + } + ] + }, + "data": null, + "timeout": 30 + }, + "extracted_outputs": {}, + "context_after_step_summary": { + "unique_resource_name": "TestResource_1749192709_93a75f", + "updated_resource_name": "TestResource_1749192709_93a75f_UPDATED", + "unique_feature_value": "Feature_1749192709", + "updated_feature_value": "Feature_1749192709_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + }, + { + "step_name": "List and Find Created Resource", + "description": null, + "lookup_key": "地质单元列表查询", + "resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}", + "status": "失败", + "message": "Resource not found: Name 'TestResource_1749192709_93a75f' (field: wellCommonName) not found in list at path 'data.list'.", + "duration_seconds": "0.0000", + "timestamp": "2025-06-06T14:51:49+0800", + "validation_points": [ + { + "passed": true, + "message": "状态码匹配 (200)." + }, + { + "passed": false, + "message": "Resource not found: Name 'TestResource_1749192709_93a75f' (field: wellCommonName) not found in list at path 'data.list'." + } + ], + "api_call_curl": "N/A", + "request_details": { + "method": "POST", + "url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0", + "headers": { + "tenant-id": "your-tenant-id", + "Content-Type": "application/json", + "Accept": "application/json", + "Authorization": "Bearer your-test-token" + }, + "params": { + "pageNo": 1, + "pageSize": 10 + }, + "json_data": { + "isSearchCount": true, + "query": { + "fields": [ + "dsid", + "wellCommonName", + "dataRegion" + ], + "filter": { + "key": "wellCommonName", + "symbol": "=", + "realValue": [ + "TestResource_1749192709_93a75f" + ] + } + } + }, + "body": { + "isSearchCount": true, + "query": { + "fields": [ + "dsid", + "wellCommonName", + "dataRegion" + ], + "filter": { + "key": "wellCommonName", + "symbol": "=", + "realValue": [ + "TestResource_1749192709_93a75f" + ] + } + } + }, + "data": null, + "timeout": 30 + }, + "extracted_outputs": {}, + "context_after_step_summary": { + "unique_resource_name": "TestResource_1749192709_93a75f", + "updated_resource_name": "TestResource_1749192709_93a75f_UPDATED", + "unique_feature_value": "Feature_1749192709", + "updated_feature_value": "Feature_1749192709_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + } + ], + "final_stage_context_summary": { + "unique_resource_name": "TestResource_1749192709_93a75f", + "updated_resource_name": "TestResource_1749192709_93a75f_UPDATED", + "unique_feature_value": "Feature_1749192709", + "updated_feature_value": "Feature_1749192709_UPDATED", + "cfg_list_path_in_listresponse": "data.list", + "cfg_name_field_in_listitem": "wellCommonName", + "cfg_id_field_in_listitem": "dsid", + "cfg_resource_object_path_in_detailresponse": "data.list.0", + "cfg_name_field_in_detailresponse": "wellCommonName", + "cfg_id_field_in_detailresponse": "dsid", + "cfg_resource_object_path_in_updateresponse": "data.list.0", + "cfg_feature_field_name_for_validation": "dataRegion", + "dms_instance_code": "your_dms_instance_code", + "api_version": "1.0.0" + } + } + ], + "api_call_details_summary": [] +} \ No newline at end of file diff --git a/users.db b/users.db new file mode 100644 index 0000000..33e15b1 Binary files /dev/null and b/users.db differ