protected void writeResponses(WriteContext context, ApiMetadata m, JsonWriter w, MApiResponse[] rs) { w.startObject(); for(MApiResponse r : rs) { w.property(r.getName(), () -> writeResponse(context, m, w, r)); } w.endObject(); }
public MApiResponseBuilder(MApiResponse r) { this.name = r.getName(); this.status = r.getStatus(); this.type = r.getType(); this.file = r.isFile(); this.setSummary(r.getSummary()); this.setDescription(r.getDescription()); for(MApiHeader header : r.getHeaders()) { headers.add(new MApiHeaderBuilder(header)); } }