SQL server转HTTP接口
连接器

SQL server转HTTP接口

连接器

需两次购买:①订购原厂商接口 ②订购易源会员包代理转发;可将您的SQLServer数据库接口转化为http接口,提高开发便利性。提供记录的增删查改、count、discint、建表等功能。 测试时使用的是公用测试库,数据不定期清理,请勿用于生产环境。

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
select-one
接口地址
https://connector.showapi.com/1904-1?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
案例截图
案例
请求参数
Header 参数
参数名称类型示例值必须描述
content-typeString
application/x-www-form-urlencoded
Post 表单
参数名称类型示例值必须描述
tableString
test1
表名
fieldsString
age,name
需要返回的字段名
whereString
name=? and age=?
可写复杂sql语句,重点要求:传入变量必须用?号代替
where_paramString
["张三",30]
对应where条件中的问号变量,区分字符串和数字。本值在替换where中的?号,会经过反sql注射。
order_byString
id desc
排序参数
ds_idString
-
数据源
返回参数
暂无返回参数说明
cURL
curl -X POST "https://connector.showapi.com/1904-1?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "table=test1&fields=age%2Cname&where=name%3D%3F%20and%20age%3D%3F&where_param=%5B%22%E5%BC%A0%E4%B8%89%22%2C30%5D&order_by=id%20desc&ds_id="
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-1904": {
      "url": "http://www.showapi.com.cn/mcp/1904/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。