API INDEX V2 -- getDictionarys 取字典

2,  取字典

  http://localhost:2448/api/ashx/service.ashx

  POST

  REQUEST 1:

{
      "action":"getDictionarys",
      "token":"ad28282e-81a2-4378-8b27-e17121294e20"
}

  RESPONSE 1: (TOKEN已过期)

    {
        "data": null,
        "msg": null,
        "responseCode":
        {
            "msgCode": 401,
            "msgDetail": "Unauthorized"
        },
        "serverTime": "2016-05-02 00:30:22",
        "success": false
    }

  REQUEST 2:

{
      "action":"getDictionarys",
      "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721"
}

   RESPONSE 2:

    {
        "data":
        {
            "List":
            [
                {
                    "CreatedStamp": "/Date(1462120320871+0800)/",
                    "Key": "03e98553-d65b-485b-8c14-1e13ee8e2793",
                    "Name": "空调品牌",
                    "ParentKey": null,
                    "Tag": "AirConditionBrand"
                },
                {
                    "CreatedStamp": "/Date(1462120320871+0800)/",
                    "Key": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Name": "房屋类型",
                    "ParentKey": null,
                    "Tag": "HouseType"
                },
                {
                    "CreatedStamp": "/Date(1462120320871+0800)/",
                    "Key": "811aa0eb-4016-4aa8-bec9-db43102f08e6",
                    "Name": "房间类型",
                    "ParentKey": null,
                    "Tag": "RoomType"
                }
            ]
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-02 00:32:00",
        "success": true
    }

  REQUEST 3:

{
      "action":"getDictionarys",
      "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721",
       "Tag":"RoomType"
}

  RESPONSE 3:

    {
        "data":
        {
            "List":
            [
                {
                    "CreatedStamp": "/Date(1462120569402+0800)/",
                    "Key": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                    "Name": "卧室",
                    "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120569402+0800)/",
                    "Key": "28bb2708-69bd-464c-9419-a3339c7a2333",
                    "Name": "卫生间",
                    "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120569402+0800)/",
                    "Key": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                    "Name": "客厅",
                    "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120569402+0800)/",
                    "Key": "acbe452b-28da-49a0-a7c3-f3e39de34355",
                    "Name": "厨房",
                    "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6",
                    "Tag": null
                }
            ]
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-02 00:36:09",
        "success": true
    }

  REQUEST 4:

{
      "action":"getDictionarys",
      "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721",
       "Tag":"HouseType"
}

  RESPONSE 4:

    {
        "data":
        {
            "List":
            [
                {
                    "CreatedStamp": "/Date(1462120668731+0800)/",
                    "Key": "f1cf0d0e-f991-4bbf-8e48-23004786ed8c",
                    "Name": "平层",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120668731+0800)/",
                    "Key": "fa2ad2e1-818e-49ff-838b-7a484adf5ccd",
                    "Name": "别墅",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120668731+0800)/",
                    "Key": "d9c88ccc-80dd-462b-aef2-d00c9da6fafb",
                    "Name": "小工装",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120668731+0800)/",
                    "Key": "bd175c2f-248e-40e2-824a-fc75e6f6b21e",
                    "Name": "复式",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                }
            ]
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-02 00:37:48",
        "success": true
    }

  REQUEST 5:

{
      "action":"getDictionarys",
      "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721",
      "Tag":"AirConditionBrand"
}

  RESPONSE 5:

    {
        "data":
        {
            "List":
            [
                {
                    "CreatedStamp": "/Date(1462120743324+0800)/",
                    "Key": "fbcddf58-954e-4249-9b95-4e94d3efa589",
                    "Name": "金立",
                    "ParentKey": "03e98553-d65b-485b-8c14-1e13ee8e2793",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120743324+0800)/",
                    "Key": "be1e3057-7fae-4064-9fdd-ebf97264e78e",
                    "Name": "格力",
                    "ParentKey": "03e98553-d65b-485b-8c14-1e13ee8e2793",
                    "Tag": null
                }
            ]
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-02 00:39:03",
        "success": true
    }

  REQUEST 6:

{
      "action":"getDictionarys",
      "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721",
      "parentKey":"fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4"
}

  RESPONSE 6:

    {
        "data":
        {
            "List":
            [
                {
                    "CreatedStamp": "/Date(1462120817777+0800)/",
                    "Key": "f1cf0d0e-f991-4bbf-8e48-23004786ed8c",
                    "Name": "平层",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120817777+0800)/",
                    "Key": "fa2ad2e1-818e-49ff-838b-7a484adf5ccd",
                    "Name": "别墅",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120817777+0800)/",
                    "Key": "d9c88ccc-80dd-462b-aef2-d00c9da6fafb",
                    "Name": "小工装",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                },
                {
                    "CreatedStamp": "/Date(1462120817777+0800)/",
                    "Key": "bd175c2f-248e-40e2-824a-fc75e6f6b21e",
                    "Name": "复式",
                    "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4",
                    "Tag": null
                }
            ]
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-02 00:40:17",
        "success": true
    }

 

  

时间: 05-01

API INDEX V2 -- getDictionarys 取字典的相关文章

API INDEX V2 -- Login 登录

1, 登录 http://localhost:2448/api/ashx/service.ashx POST REQUEST 1: { "action":"login", "loginName":"zhazha", "loginPwd":"8888" } RESPONSE 1: { "data": { "Approved": false, &quo

django 模板中通过变量替代key取字典内容

模板中通过变量替代key取字典内容 templatetags/├── get_item.py├── __init__.py ###get_item.py # coding=utf-8 from django import templatefrom django.utils.safestring import mark_safefrom django.template.base import resolve_variable, Node, TemplateSyntaxError register

保留键的情况下取字典中最大的值(max\zip函数的联合使用)

在我们平常想要获取字典中value最大或者最小的值的时候,常常使用如下函数: testDict = {"age1":18,"age2":20,"age2":6,"age2":100} v1 = max(testDict.values()) print(v1) #打印结果为100 这样已经达到了获取最大值的目的,但是这样就丢失了key.要如何保留key呢,这就需要用到zip函数 zip函数的作用是将两个序列以顺序对应起来,最后生

Atitit.远程接口 监控与木马   常用的api 标准化v2 q216

Atitit.远程接口 监控与木马   常用的api 标准化v2 q216 1. 木马与远程接口 监控的常用的api2 1.1. 文件复制2 1.2. 屏幕定时截图2 1.3. 邮件发送2 1.4. 键盘监听2 1.5. 远程上传代码与执行2 1.6. 注册系统服务2 1.7. 远程shell  console2 1.8. .修改注册表2 1.9. Eval功能2 1.10. 控制鼠标键盘gui接口功能2 1.11. 文档 图片文件读写监控2 1.11.1. JDK1.6及之前版本: 基于Tim

API Monitor v2.0 Alpha-r13 (32+64) 汉化版

API Monitor v2.0 Alpha-r13 (32+64) 汉化版: 链接: https://pan.baidu.com/s/1jIx5znC 密码: 4538 本软件已最大化汉化,已经趋于完美,其余某些地方汉化了会导致软件异常,比如不能加载API定义等等. 使用教程(官方):http://www.rohitab.com/category/api-monitor-tutorials 如有汉化错误的地方或分享链接过期还请回帖.

Atitit.论图片类型 垃圾文件的识别与清理  流程与设计原则 与api概要设计 v2 pbj

Atitit.论图片类型 垃圾文件的识别与清理  流程与设计原则 与api概要设计 v2 pbj 1. 俩个问题::识别垃圾文件与清理策略1 2. 如何识别垃圾图片1 2.1. 体积过小文件<10kb1 2.2. 增加扩展名对于无扩展名文件1 2.3. 清理非图片(bmp,jpg,jpeg,png)的文件2 2.4. 尺寸过小图片(210*150)2 2.5. 清理广告图片(高度宽度不成比例)超长超宽图片2 2.6. 清理重复图片(此结果不能加入指纹库)2 2.7. 非本类别的图片(人工识别)2

申请Android Map 的API Key(v2)的最新申请方式(SHA1密钥)

申请Android Map 的API Key(v2)的最新申请方式(SHA1密钥)具体步骤如下:                                                                     www.169it.com 1.生SHA1密钥(旧版是MD5)eclipse->help->install new software->add(name: keytool;location:http://www.keytool.sourceforge.net

Phthon函数之一——取字典中的条件key

取字典info中值为10000的key值: def getkeys(key): info = {"刘江红": 12000, "曹俊杰": 10000, "赵磊": 10000} for i in info.keys(): if info[i] == key: print(i)getkeys(10000) 取字典info中值大于10010的key值: def getkeys(v): info = {"刘江红": 12000, &

API index

The Real API prefix please refer to jones.z (QQ: 2810898115). [枚举打印, enum value print]: http://www.cnblogs.com/jwiter/p/5451043.html ----------------------------------------------------------------------------------- Login URL: http://localhost:2448/