api

作者: lazyTai | 来源:发表于2018-08-08 13:57 被阅读15次

    find all apil

    url:get /Api/findAll
    [
        {
            "_id": "5b69160bec4c3437841289b6",
            "title": "我不想失去11",
            "url": null,
            "request": " { 'school_code' : '111111',  'school_name' : '汉东政法大学',  'teacher_idcard' : '0000001',  'teacher_name' : '高育良'  } ",
            "response": null,
            "description": null,
            "menu_id": "bf5ff95933394089a336d0856025a2af",
            "method": null
        }
    ]
    

    find api by menu_id

    url get :Api/findByMenuId
    @RequestParam String menuId
    [
        {
            "_id": "5b69160bec4c3437841289b6",
            "title": "我不想失去11",
            "url": null,
            "request": " { 'school_code' : '111111',  'school_name' : '汉东政法大学',  'teacher_idcard' : '0000001',  'teacher_name' : '高育良'  } ",
            "response": null,
            "description": null,
            "menu_id": "bf5ff95933394089a336d0856025a2af",
            "method": null
        }
    ]
    

    保存 修改 api

    url post :/Api/save
    request:
    {
    "_id":"bf5ff95933394089a336d0856025a2af",
        "title":"menu1111"  ,
        "method":"post",
        "url":"/hello/name",
        "request":"1",
        "response":"{'name':'1'}",
        "menu_id":2
    }
    

    delete api

    url  delete : /Api/delete
    id 
    

    相关文章

      网友评论

          本文标题:api

          本文链接:https://www.haomeiwen.com/subject/msatbftx.html