gpt4 book ai didi

apiblueprint - 在 apiary.io markdown 中指定属性数据类型的约定是什么?

转载 作者:行者123 更新时间:2023-12-02 01:52:32 24 4
gpt4 key购买 nike

apiary.io 以点的形式列出资源属性。是否有特定的约定来显示这些属性是什么数据类型,或者满足数据指定格式?

最佳答案

目前在 API 蓝图中没有讨论资源属性的约定。接近的是计划 Message-body Attributes Description .

但我觉得真正的解决方案是 future API 蓝图的概念 – Resource Blueprint在(资源的)语义数据定义 下提出建议。引用example resource blueprint .

因此,虽然之前的都没有实现,但如果您正在寻找约定,我建议考虑资源蓝图中提出的约定,例如:

# Resource [/resource]

## Attributes

+ ip (string) ... ipv4 or ipv6 address associated with the resource
+ some-other-attribute (number, optional, `42`) ... a number of something

关于apiblueprint - 在 apiary.io markdown 中指定属性数据类型的约定是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21864954/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com