Class OADoc


  • public final class OADoc
    extends Object
    An OpenAPI v 3.0.2 document.
    Author:
    scf
    • Constructor Detail

      • OADoc

        public OADoc()
    • Method Detail

      • getOpenapi

        public String getOpenapi()
        Returns:
        the openapi
      • setOpenapi

        public void setOpenapi​(String openapi)
        Parameters:
        openapi - the openapi to set
      • getInfo

        public OADocInfo getInfo()
        Returns:
        the info
      • setInfo

        public void setInfo​(OADocInfo info)
        Parameters:
        info - the OADocInfo to set
      • getPaths

        public Map<String,​OAPath> getPaths()
        Gets the paths defined in the document.
        Returns:
        the paths
      • addServer

        public void addServer​(OAServer server)
      • getComponents

        public OAComponents getComponents()
        Returns:
        the components