1
我的REST API格式:适当休息URL格式
- http://myserver.com/rest/messages - 得到的所有消息
- http://myserver.com/rest/messages/5 - 得到消息ID = 5
应如何URL看时,我想所有由id = 1的用户拥有的消息?
- http://myserver.com/rest/messages/user/1
- OR
- http://myserver.com/rest/usermessages/1(没有这样的实体UserMessage存在于系统中)
太棒了,听起来不错。谢谢。 –