Tabnine Logo
SwaggerWriter.fillApiDeclarationMainAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
fillApiDeclarationMainAttributes
method
in
org.restlet.ext.platform.internal.conversion.swagger.v1_2.SwaggerWriter

Best Java code snippets using org.restlet.ext.platform.internal.conversion.swagger.v1_2.SwaggerWriter.fillApiDeclarationMainAttributes (Showing top 4 results out of 315)

origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Retrieves the Swagger API declaration corresponding to a category of the
 * given Restlet Web API {@link Definition}
 *
 * @param definition
 *            The Restlet Web API {@link Definition}
 * @param sectionName
 *            The category of the API declaration
 * @return The Swagger {@link ApiDeclaration} of the given category
 */
public static ApiDeclaration getApiDeclaration(Definition definition, String sectionName) {
  ApiDeclaration result = new ApiDeclaration();
  Contract contract = definition.getContract();
  // fill API declaration main attributes
  fillApiDeclarationMainAttributes(definition, result);
  // fill API declaration resources
  Collection<String> usedModels = fillApiDeclarationResources(contract, result, sectionName);
  // fill API declaration representations
  fillApiDeclarationRepresentations(contract, result, usedModels);
  return result;
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Retrieves the Swagger API declaration corresponding to a category of the
 * given Restlet Web API {@link Definition}
 *
 * @param definition
 *            The Restlet Web API {@link Definition}
 * @param sectionName
 *            The category of the API declaration
 * @return The Swagger {@link ApiDeclaration} of the given category
 */
public static ApiDeclaration getApiDeclaration(Definition definition, String sectionName) {
  ApiDeclaration result = new ApiDeclaration();
  Contract contract = definition.getContract();
  // fill API declaration main attributes
  fillApiDeclarationMainAttributes(definition, result);
  // fill API declaration resources
  Collection<String> usedModels = fillApiDeclarationResources(contract, result, sectionName);
  // fill API declaration representations
  fillApiDeclarationRepresentations(contract, result, usedModels);
  return result;
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Retrieves the Swagger API declaration corresponding to a category of the
 * given Restlet Web API {@link Definition}
 *
 * @param definition
 *            The Restlet Web API {@link Definition}
 * @param sectionName
 *            The category of the API declaration
 * @return The Swagger {@link ApiDeclaration} of the given category
 */
public static ApiDeclaration getApiDeclaration(Definition definition, String sectionName) {
  ApiDeclaration result = new ApiDeclaration();
  Contract contract = definition.getContract();
  // fill API declaration main attributes
  fillApiDeclarationMainAttributes(definition, result);
  // fill API declaration resources
  Collection<String> usedModels = fillApiDeclarationResources(contract, result, sectionName);
  // fill API declaration representations
  fillApiDeclarationRepresentations(contract, result, usedModels);
  return result;
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Retrieves the Swagger API declaration corresponding to a category of the
 * given Restlet Web API {@link Definition}
 *
 * @param definition
 *            The Restlet Web API {@link Definition}
 * @param sectionName
 *            The category of the API declaration
 * @return The Swagger {@link ApiDeclaration} of the given category
 */
public static ApiDeclaration getApiDeclaration(Definition definition, String sectionName) {
  ApiDeclaration result = new ApiDeclaration();
  Contract contract = definition.getContract();
  // fill API declaration main attributes
  fillApiDeclarationMainAttributes(definition, result);
  // fill API declaration resources
  Collection<String> usedModels = fillApiDeclarationResources(contract, result, sectionName);
  // fill API declaration representations
  fillApiDeclarationRepresentations(contract, result, usedModels);
  return result;
}
org.restlet.ext.platform.internal.conversion.swagger.v1_2SwaggerWriterfillApiDeclarationMainAttributes

Javadoc

Fills Swagger API declaration main attributes from Restlet Web API definition

Popular methods of SwaggerWriter

  • fillApiDeclarationInRepresentation
    Fills Swagger ResourceOperationDeclaration's type from Restlet Web API definition's Operation
  • fillApiDeclarationOperations
    Fills Swagger ResourceDeclaration's ResourceOperationDeclaration from Restlet Web API definition's R
  • fillApiDeclarationOutRepresentation
    Fills Swagger ResourceOperationDeclaration's returned type from Restlet Web API definition's Operati
  • fillApiDeclarationPathVariables
    Fills Swagger ResourceOperationDeclaration's ResourceOperationParameterDeclaration from Restlet Web
  • fillApiDeclarationQueryParameters
    Fills Swagger ResourceOperationDeclaration's ResourceOperationParameterDeclaration from Restlet Web
  • fillApiDeclarationRepresentations
    Fills Swagger ApiDeclaration's ModelDeclarations from Restlet Web API definition
  • fillApiDeclarationResources
    Fills a Swagger ApiDeclaration's ResourceDeclarations from Restlet Web API definition. Only includes
  • fillApiDeclarationResponses
    Fills Swagger ResourceOperationDeclaration's error responses from Restlet Web API definition's Opera
  • fillModel
  • fillResourceListingApis
    Fills Swagger resource listing main attributes from Restlet Web API definition
  • fillResourceListingMainAttributes
    Fills Swagger resource listing main attributes from Restlet Web API definition
  • getApiDeclaration
    Retrieves the Swagger API declaration corresponding to a category of the given Restlet Web API Defin
  • fillResourceListingMainAttributes,
  • getApiDeclaration

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Collectors (java.util.stream)
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now