From 4e585accc466f3e2d2c21e9c957e28e8e9688760 Mon Sep 17 00:00:00 2001 From: timuryan Date: Wed, 25 Oct 2017 14:47:46 -0400 Subject: [PATCH] added multiple responses to blueprint export --- APIBlueprintGenerator.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/APIBlueprintGenerator.coffee b/APIBlueprintGenerator.coffee index 5b61295..5110053 100644 --- a/APIBlueprintGenerator.coffee +++ b/APIBlueprintGenerator.coffee @@ -104,12 +104,13 @@ APIBlueprintGenerator = -> @generate = (context) -> paw_request = context.getCurrentRequest() url = paw_request.url + that = this template = readFile("apiblueprint.mustache") Mustache.render(template, method: paw_request.method, path: @path(url), request: @request(paw_request), - response: @response(paw_request.getLastExchange()), + response: paw_request.getAllExchanges().map (r) -> that.response(r), ) return