All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.reprezen.genflow.openapi3.doc.ParamsDoc.xtend Maven / Gradle / Ivy

/*******************************************************************************
 * 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.openapi3.doc

import com.reprezen.genflow.openapi3.doc.StructureTable.ParametersStructureTable
import com.reprezen.kaizen.oasparser.model3.Parameter
import java.util.List

class ParamsDoc {

	def paramsHtml(List params) {
		if (!params.empty) {
			val table = new ParametersStructureTable(params, #["name", "Name"], #["in", "In"],
				#["default", "Default"], #["type", "Type"], #["doc", "Description"])
			'''
				
  • Parameters

    «table.render(null)»
  • ''' } } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy