
com.reprezen.genflow.swagger.doc.ParamsDoc.xtend Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright © 2013, 2016 Modelsolv, Inc.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property
* of ModelSolv, Inc. See the file license.html in the root directory of
* this project for further information.
*******************************************************************************/
package com.reprezen.genflow.swagger.doc
import io.swagger.models.Swagger
import io.swagger.models.parameters.Parameter
import java.util.List
class ParamsDoc {
val Swagger swagger = HelperHelper.swagger
def paramsHtml(List params) {
if (!params.empty) {
val table = StructureTable::get(swagger, #["name", "Name"], #["in", "In"], #["default", "Default"],
#["type", "Type"], #["doc", "Description"])
'''
Parameters
«table.render(params, null, null)»
'''
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy