全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

通过接口导入的请求接口调用一致显示发送中

ApiPost使用 后端 145次浏览

使用开发文章中的接口保存接口,接口文章等均显示正常 域名也正确,但是一致无法调用,在其他工具中复制接口 参数调用正常

通过接口导入的请求接口调用一致显示发送中


接口调用参数:

{

    "mark": "developing",

    "method": "POST",

    "name": "企业表~列表",

    "parent_id": "1a16bfa3-*****************73fb55",

    "project_id": "fd8c920a-************-099c8beaa12e",

    "request": {

        "body": {

            "mode": "json",

            "raw": "{\"companyName\":\"\",\"page\":{\"current\":1,\"size\":10},\"contacts\":\"\"}",

            "raw_para": [{

                "description": "企业名称",

                "field_type": "String",

                "is_checked": 1,

                "key": "companyName",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "联系人",

                "field_type": "String",

                "is_checked": 1,

                "key": "contacts",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "分页页码,数字类型",

                "field_type": "Object",

                "is_checked": 1,

                "key": "page",

                "not_null": 1,

                "type": "Object",

                "value": ""

            }, {

                "description": "页数",

                "field_type": "Integer",

                "is_checked": 1,

                "key": "page.current",

                "not_null": 1,

                "type": "Text",

                "value": "1"

            }, {

                "description": "条数",

                "field_type": "Integer",

                "is_checked": 1,

                "key": "page.size",

                "not_null": 1,

                "type": "Text",

                "value": "10"

            }]

        },

        "description": "企业表~列表",

        "url": "https://c***********/fullMember/cnool/company/page"

    },

    "response": {

        "error": {

            "parameter": [],

            "raw": "{\"code\": \"partyMember-500\",\"message\": \"对应数据不存在,请确认\"}"

        },

        "success": {

            "parameter": [{

                "description": "状态码 200 成功",

                "field_type": "String",

                "is_checked": 1,

                "key": "code",

                "not_null": 1,

                "type": "Text",

                "value": "200"

            }, {

                "description": "返回信息",

                "field_type": "String",

                "is_checked": 1,

                "key": "message",

                "not_null": 1,

                "type": "Text",

                "value": "OK"

            }, {

                "description": "响应数据",

                "field_type": "Object",

                "is_checked": 1,

                "key": "data",

                "not_null": 1,

                "type": "Object",

                "value": ""

            }, {

                "description": "企业id",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.companyId",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "企业名称",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.companyName",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "组织机构代码",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.organizationCode",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "员工数量",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.staffNum",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "联系人",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.contacts",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "联系电话",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.records.contactsMobile",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "创建时间",

                "field_type": "Date",

                "is_checked": 1,

                "key": "data.records.createTime",

                "not_null": 0,

                "type": "Text",

                "value": ""

            }, {

                "description": "",

                "field_type": "Array",

                "is_checked": 1,

                "key": "data.records",

                "not_null": 1,

                "type": "Text",

                "value": ""

            }, {

                "description": "总条数",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.total",

                "not_null": 1,

                "type": "Text",

                "value": "12"

            }, {

                "description": "每页条数",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.size",

                "not_null": 1,

                "type": "Text",

                "value": "10"

            }, {

                "description": "页数",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.current",

                "not_null": 1,

                "type": "Text",

                "value": "1"

            }, {

                "description": "",

                "field_type": "Array",

                "is_checked": 1,

                "key": "data.orders",

                "not_null": 1,

                "type": "Text",

                "value": ""

            }, {

                "description": "",

                "field_type": "Boolean",

                "is_checked": 1,

                "key": "data.optimizeCountSql",

                "not_null": 1,

                "type": "Text",

                "value": "true"

            }, {

                "description": "",

                "field_type": "Boolean",

                "is_checked": 1,

                "key": "data.searchCount",

                "not_null": 1,

                "type": "Text",

                "value": "true"

            }, {

                "description": "",

                "field_type": "String",

                "is_checked": 1,

                "key": "data.pages",

                "not_null": 1,

                "type": "Text",

                "value": "2"

            }],

            "raw": "{\"code\":\"200\",\"data\":{\"records\":[{\"companyId\":\"\",\"organizationCode\":\"\",\"createTime\":\"\",\"companyName\":\"\",\"staffNum\":\"\",\"contacts\":\"\",\"contactsMobile\":\"\"}]},\"message\":\"OK\"}"

        }

    },

    "sort": 0,

    "target_id": "b8693a22-690f-45f6-ba8b-b7766c0da8e7",

    "target_type": "api"

}

| 0 收藏

6 个回答

这是请求参数吗?

这个是我请求开放接口保存到apiPost中的请求参数

都写在了json里面吗?感觉是不是太长了

不是啊 你们官方文档保存接口文档的字段是要求要求这些参数,然后根据这些参数保存,参数配置都有,就是发送请求无法发送通过接口导入的请求接口调用一致显示发送中

您好,这个能帮忙确认下是什么原因吗

通过接口导入的请求接口调用一致显示发送中

您加我一下微信吧

Apipost 私有化火热进行中

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!