* parameters: * - in: path * name: id * required: true * description: Numeric ID of the user to retrieve. * schema: * type: integer * responses: * 200: * ... */ router.get("/:id", function (req, res) { //... }); 在此参数的定义中,in定义了参数的位置(在这种情况下,...
2你可以在这里检查它:http://www.yamllint.com/此外,在apis: []中指定的路径应该是相对于您的app...