Rest 养蜂场:忽略无法识别的块

Rest 养蜂场:忽略无法识别的块,rest,request,response,apiblueprint,apiary,Rest,Request,Response,Apiblueprint,Apiary,我在apiary中对发布访问权限的服务有以下定义: ## Access Right [/api/v0.3/accessrights/{id}/assign?isExternalKey=true] ### Assign access rights [Post] + accessRightId (number) + personId (string) + Parameters + id (number) - ID of the Access Right in t

我在apiary中对发布访问权限的服务有以下定义:

## Access Right [/api/v0.3/accessrights/{id}/assign?isExternalKey=true]

### Assign access rights [Post]            

+ accessRightId (number)
+ personId (string)

+ Parameters
    + id (number) - ID of the Access Right in the form of an integer

+ Request (application/json)

            {
                "personId": "785"
            }

+ Response 201
Apariy告诉我请求和响应块无法识别。我试图使字段成为必需的,我使参数成为必需的,我改变了字段的拼写,我删除了(application/json),我修改了间距。似乎没有什么帮助。
请求和响应块有什么问题?

通过切换块的顺序(从参数、请求、响应到请求、响应、参数),可以识别请求和响应体:

## Access Right [/api/v0.3/accessrights/{id}/assign?isExternalKey=true]

### Assign access rights [Post]            

+ accessRightId (number)
+ personId (string)

+ Request (application/json)

            {
                "personId": "785"
            }

+ Response 201

+ Parameters
    + id (number) - ID of the Access Right in the form of an integer
我不知道为什么这很重要,但至少现在API验证为有效的API蓝图。
问题解决了

方法名称必须是所有CAP,如规范和线上所示

因此,“分配访问权限”行应写为:

### Assign access rights [POST]