怎么设计一个restful的url,表示:某个用户评价另一个用户

这个url要能表示: 某个用户评价另一个用户

目前我的想法是: POST /users/123/comments/users/456 不知是否还有更好的

已邀请:

nil

赞同来自: fangniu yet luw2007 tsingson gosky nove001更多 »

POST /users/123/comments

Body {users:456,comments:"comment content"}

iron_js

赞同来自:

POST v1/comments Body { "creator":123, "target":456, "content":"comment content" }

jhuly1234

赞同来自:

It will be great pleasure when you download the wonderful new whatsapp here https://downloadstatus.xyz/category/sad/ status. I'm sure you will get more and more likes

fwhezfwhez

赞同来自:

  1. 增加评论 POST /user/comment/
    {
    "commenter": "Li Hua",
    "commentee": "ZhangLei"
    "message": "说得对",
    ...
    }
  2. 获取评论 GET /user/comment/?commenter_id=1&commentee_id=3&topic_id=12

要回复问题请先登录注册