我正在尝试使用 apiblueprint 来记录 API,但我遇到了一个错误(在第 31 行),上面写着“悬空的消息体资产,需要一个预先格式化的代码块,将它的每一行缩进 8 个空格或 2 个制表符”。仅在添加目录后,我才开始看到此错误。
如果我删除第 (34) 行“”,那么错误就消失了。可能是我在这里遗漏了一些东西,或者我可能不清楚。对它的任何帮助都是可观的。谢谢
下面是我的示例降价。
FORMAT: 1A
---
## [I. Introduction](#def-intro)
1. [Group 1](#def-g1)
1. [G1 Resource 1](#def-g1-res1)
2. [G1 Resource 2](#def-g1-res2)
2. [Group 2](#def-g2)
1. [G2 Resource 1](#def-g2-res1)
2. [G2 Resource 2](#def-g2-res2)
---
<a name="def-intro"> </a>
# I. Introduction
This is my test API
<a name="def-g1"> </a>
# 1. Group 1
This is group 1 API
<a name="def-g1-res1"> </a>
## 1. G1 Resource 1 [/g1api1]
### g1api1 [GET]
This is g1api1
+ Response 200 (application/json)
{
"response": "ok",
"resource": "g1api1"
}
<a name="def-g1-res1"> </a>
## 2. G1 Resource 2 [/g1api2]
This is g1api2
### g1api2 [GET]
+ Response 200 (application/json)
{
"response": "ok",
"resource": "g1api2"
}