我的博客系統接口列表

博客系統後臺接口:

1,登錄:

請求方式:post
        http://192.168.1.102:8080/mobilelogin

        請求參數:
        RequestParams params = new RequestParams();
        params.put("username", "kuangyao");
        params.put("password", "panda0920");

        響應參數:
        model.put("resultCode", "200");
        model.put("message", "登陸成功"); 

2,註冊:

    請求方式:Post

     http://192.168.1.102:8080/mobileRegister

     請求參數: 
        RequestParams params = new RequestParams();
        params.put("username", "kuangyao333");
        params.put("name", "panda0920");
        params.put("email", "[email protected]");
        params.put("password", "panda0920");
        params.put("password2", "panda0920");

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "註冊成功");

3,退出:


     請求方式:Post

     http://192.168.1.102:8080/mobilelogout

     響應參數:
       model.put("resultCode", "200");
       model.put("message", "退出成功");    

4,修改頭像:

         請求方式:Post

         http://192.168.1.102:8080/account/mobileAvatar 

5,修改密碼:

     請求方式:Post
     http://localhost:8080/account/mobilePassword

     請求參數:
    oldPassword  =  panda0920
     password    =  panda0921
    //password2 =   panda0921   

    響應參數:
    model.put("resultCode", "200");
    model.put("message", "操作成功");

6,修改郵箱<暫無>:

     請求方式:Post

     http://192.168.1.102:8080/ 

7,全局查詢:

     請求方式:Get

     http://localhost:8080/browse/mobileSearch

     請求參數:

      params.put("q", "張三");

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "查詢成功");
        model.put("page", page.toString());  

8,首頁(動態)內容:

    請求方式:Get

     http://localhost:8080/mobileHome

     請求參數:

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "主頁數據請求成功");
        model.put("page", paging.toString());
        model.put("user", user.toString());


9,首頁 我發佈過的文章:

     請求方式:Get

    http://localhost:8080/mobileHome?method=mobileHomePosts

    請求參數:

    響應參數:
        model.put("resultCode", "200");
        model.put("message", "我發佈的文章請求成功");
        model.put("page", page.toString());
        model.put("user", user.toString());

10,首頁 我的評論:

     請求方式:Get

      http://localhost:8080/mobileHome?method=mobileComments

      請求參數:

      響應參數:
        model.put("resultCode", "200");
        model.put("message", "我發表的評論獲取成功");
        model.put("page", page.toString());
        model.put("user", user.toString()); 

11,首頁 我的喜歡:

     請求方式:Get

      http://localhost:8080/mobileHome/mobileFavors

      請求參數:

      響應參數:
        model.put("resultCode", "200");
        model.put("message", "我喜歡過的文章獲取成功");
        model.put("page", page.toString());
        model.put("user", user.toString()); 

12,首頁 我的關注:

     請求方式:Get

     http://localhost:8080/home/follows

     請求參數:

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "我關注過的文章獲取成功");
        model.put("page", page.toString());
        model.put("user", user.toString());

13,首頁 我的粉絲:

     請求方式:Get

     http://localhost:8080/mobileHome/mobileFans

     請求參數:

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "我的粉絲獲取成功");
        model.put("page", page.toString());
        model.put("user", user.toString());

14,首頁 我的通知:

     請求方式:Get

     http://localhost:8080/mobileHome/mobileNotifies

     請求參數:

     響應參數:
        model.put("resultCode", "200");
        model.put("message", "我的通知獲取成功");
        model.put("page", page.toString());
        model.put("user", user.toString());

15,主頁 最新動態:

     請求方式:Get

     http://localhost:8080/mobileIndex/

     請求參數:

     params.put("ord", "newest");

     響應參數:

      model.put("resultCode", "200");
      model.put("message", "首頁列表請求成功");
      model.put("ord", order);   

16,主頁 最熱動態:

     請求方式:Get  

      http://localhost:8080/mobileIndex/

      請求參數:

      params.put("ord", "hottest");

      響應參數:

        model.put("resultCode", "200");
       model.put("message", "首頁列表請求成功");
       model.put("ord", order);

17,文章 最新文章:

     請求方式:Get

     http://localhost:8080/group/blog?ord=newest    

18,文章 最熱文章:

     請求方式:Get

      http://localhost:8080/g/blog?ord=hottest  

19,通用接口 熱門文章:

     請求方式:Get

     http://localhost:8080/api/hots.json?maxResults=10

     返回參數:
      List<Post> rets       

20,通用接口 最新發布:

     請求方式:Get

     http://localhost:8080/api/latests.json?maxResults=10 

     返回參數:
     List<Post> rets    

21,通用接口 最熱標籤:

     請求方式:Get

    http://localhost:8080/api/hot_tags.json?maxResults=10

    返回參數:
    List<Tag> rets  

22,通用接口 最熱用戶:

     請求方式:Get

     http://localhost:8080/api/Userfans.json?maxResults=10

     請求參數:

     響應參數:      
        List<User> rets

23,視頻:

     請求方式:Get

     http://localhost:8080/g/video

24,問答 最新問答:

     請求方式:Post

     http://localhost:8080/g/ask?ord=newest 

25,問答 最熱問答:

     請求方式:Post

     http://localhost:8080/g/ask?ord=newest 

26,發現 :

     請求方式:Get

     http://localhost:8080/tags 

27,走廊:

     請求方式:Get

     http://localhost:8080/gallery?g=2  

28,評論列表:

     請求方式:Get

     http://localhost:8080/comment/list/18.json?maxResults=6&pn=1    
     請求響應:
        Paging page 

29,文章詳情:

     請求方式:Get

     http://localhost:8080/view/18  

30,個人資料:

     請求方式:Get

      http://localhost:8080/mobileTa/14

      響應參數:
        model.put("resultCode", "200");
        model.put("message", "獲取他人用戶資料成功");
        model.put("user", user.toString());
        model.put("page", page.toString());

31,關注個人:

     請求方式:Get

     http://localhost:8080/account/mobileFollow.json?id=13

     響應參數:
         model.put("resultCode", "200");
         model.put("message", "關注成功");

32,喜歡文章:

     請求方式:Post

     http://localhost:8080/account/mobileFavor

       請求參數:
        id = 16

     響應參數:
          model.put("resultCode", "200");
         model.put("message", "添加喜歡成功");    

33,評論文章:

     請求方式:Post

     http://localhost:8080/comment/submit.json

     請求參數:
     toId=16&pid=0&text=%E5%BC%A0%E4%B8%89%E6%9D%8E%E5%9B%9B%E7%8E%8B%E4%BA%8C%E9%BA%BB%E5%AD%90

     響應參數:
     {
        "code": 0,
        "message": "發表成功!",
        "data": []
     }  

34,標籤:

     請求方式:Get

     http://localhost:8080/tag/%E7%94%B5%E5%BD%B1/

     toId=16&pid=0&text=%E5%BC%A0%E4%B8%89%E6%9D%8E%E5%9B%9B%E7%8E%8B%E4%BA%8C%E9%BA%BB%E5%AD%90

     響應參數:
     {
        "code": 0,
        "message": "發表成功!",
        "data": []
     }  

35,找回密碼:

     請求方式:Get

     http://localhost:8080/forgot/apply

     請求參數:
     username   = pengdan120

     響應參數:
      model.put("resultCode", "200");
     model.put("message", "郵件發送成功");

36,取消喜歡文章:

     請求方式:Post

     http://localhost:8080/account/mobileUnfavor

     請求參數:
        id = 16

     響應參數:
          model.put("resultCode", "200");
         model.put("message", "取消喜歡成功");

37,關注個人:

     請求方式:Get

     http://localhost:8080/account/mobileUnfollow.json?id=13

     響應參數:
         model.put("resultCode", "200");
         model.put("message", "取消關注成功");
發佈了117 篇原創文章 · 獲贊 29 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章