我有一个基于RAML的Mule Flow,它执行一个返回180行左右的sql查询。我在我的yaml中定义了特征分页。但是当我运行流程似乎返回所有行。而不是下面一次10行是我的yaml片段。我是否还需要在后端实现分页
/books/{topicName}:
get:
is: [ paged ]
responses:
200:
body:
application/json:
schema: !include books-output.json
example: !include books-example.json
traits:
- paged:
queryParameters:
pagenumber:
description: The page number of the result-set to return.
type: integer
minimum: 0
pagesize:
description: The number of rows in a page request.
type: integer
maximum: 10
感谢。
答案 0 :(得分:1)
是的,您还需要在后端实现分页。 RAML特性只定义了如何将分页信息传递给API的界面。