Best practices on using URIs as parameter value in REST calls

守給你的承諾、 提交于 2019-12-05 05:49:31

I'd go for making:

GET http://example.org/api/v1/class/java.util.Collection/subclasses

return a list of links to other entries in your RESTful API, one for each direct subclass. I'd also make that information available as part of the descriptor returned by:

GET http://example.org/api/v1/class/java.util.Collection

(That would also include a link to the preceding specific query.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!