hal json - HAL and "profile" - Stack Overflow

Could someone give an example of how to use "profile" link with hal+json format? I would like

Could someone give an example of how to use "profile" link with hal+json format? I would like to see how it appears in the resource representation and how the profile reprensetation might look like. Am I allowed to include anything i want in the profile? Like insertable, updateable, type, maxLength etc. Can the format of the profile be plain json?

B.1. How should a client know the meaning/structure/semantics/type of a resource? There are two main approaches to solving this problem. Both involve exposing additional documentation describing the resource which may be human and/or machine readable (i.e. an HTML page and/or a JSON Schema document). The difference between the two approaches is in where that URI is shared with the client, which is either: (1) The URI that was the preceding link relation type. (2) A 'profile' link from the resource itself.**

.txt

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744224597a4563943.html

相关推荐

  • hal json - HAL and "profile" - Stack Overflow

    Could someone give an example of how to use "profile" link with hal+json format? I would like

    8天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信