api documentation for hapi-swagger (v7.7.0)

A swagger documentation UI generator plugin for hapi

table of contents

  1. module hapi-swagger
    1. function hapi-swagger.definitions (settings)
    2. function hapi-swagger.paths (settings)
    3. function hapi-swagger.properties (settings, definitionCollection, altDefinitionCollection, definitionCache )
    4. function hapi-swagger.register (plugin, options, next)
    5. function hapi-swagger.responses (settings, definitionCollection, altDefinitionCollection, definitionCache)
    6. object hapi-swagger.builder
    7. object hapi-swagger.definitions.prototype
    8. object hapi-swagger.filter
    9. object hapi-swagger.group
    10. object hapi-swagger.info
    11. object hapi-swagger.parameters
    12. object hapi-swagger.paths.prototype
    13. object hapi-swagger.properties.prototype
    14. object hapi-swagger.responses.prototype
    15. object hapi-swagger.sort
    16. object hapi-swagger.tags
    17. object hapi-swagger.utilities
    18. object hapi-swagger.validate
  2. module hapi-swagger.builder
    1. function hapi-swagger.builder.dereference (schema, callback)
    2. function hapi-swagger.builder.getSwaggerJSON (settings, request, callback)
    3. object hapi-swagger.builder.default
    4. object hapi-swagger.builder.schema
  3. module hapi-swagger.definitions
    1. function hapi-swagger.definitions (settings)
  4. module hapi-swagger.definitions.prototype
    1. function hapi-swagger.definitions.prototype.append (definitionName, definition, currentCollection, settings)
  5. module hapi-swagger.filter
    1. function hapi-swagger.filter.byTags (tags, routes)
  6. module hapi-swagger.group
    1. function hapi-swagger.group.appendGroupByPath (pathPrefixSize, basePath, routes, pathReplacements)
    2. function hapi-swagger.group.getNameByPath (pathPrefixSize, basePath, path, pathReplacements)
  7. module hapi-swagger.info
    1. function hapi-swagger.info.build (options)
    2. object hapi-swagger.info.defaults
    3. object hapi-swagger.info.schema
  8. module hapi-swagger.parameters
    1. function hapi-swagger.parameters.fromProperties (schemaObj, parameterType)
    2. object hapi-swagger.parameters.allowedProps
  9. module hapi-swagger.paths
    1. function hapi-swagger.paths (settings)
  10. module hapi-swagger.paths.prototype
    1. function hapi-swagger.paths.prototype.build (routes)
    2. function hapi-swagger.paths.prototype.buildRoutes (routes)
    3. function hapi-swagger.paths.prototype.getDefaultStructures ()
    4. function hapi-swagger.paths.prototype.getSwaggerStructures (joiObj, parameterType, useDefinitions, isAlt)
    5. function hapi-swagger.paths.prototype.testParameterError (joiObj, parameterType, path)
  11. module hapi-swagger.properties
    1. function hapi-swagger.properties (settings, definitionCollection, altDefinitionCollection, definitionCache )
  12. module hapi-swagger.properties.prototype
    1. function hapi-swagger.properties.prototype.getDefinitionCollection (isAlt)
    2. function hapi-swagger.properties.prototype.getDefinitionRef (isAlt)
    3. function hapi-swagger.properties.prototype.parseAlternatives (property, joiObj, name, parameterType, useDefinitions)
    4. function hapi-swagger.properties.prototype.parseArray (property, joiObj, name, parameterType, useDefinitions, isAlt)
    5. function hapi-swagger.properties.prototype.parseDate (property, joiObj)
    6. function hapi-swagger.properties.prototype.parseNumber (property, joiObj)
    7. function hapi-swagger.properties.prototype.parseObject (property, joiObj, name, parameterType, useDefinitions, isAlt)
    8. function hapi-swagger.properties.prototype.parseProperty (name, joiObj, parent, parameterType, useDefinitions, isAlt)
    9. function hapi-swagger.properties.prototype.parsePropertyMetadata (property, name, parent, joiObj)
    10. function hapi-swagger.properties.prototype.parseString (property, joiObj)
  13. module hapi-swagger.responses
    1. function hapi-swagger.responses (settings, definitionCollection, altDefinitionCollection, definitionCache)
  14. module hapi-swagger.responses.prototype
    1. function hapi-swagger.responses.prototype.build (userDefindedSchemas, defaultSchema, statusSchemas, useDefinitions, isAlt)
    2. function hapi-swagger.responses.prototype.getResponse (statusCode, joiObj, useDefinitions)
    3. function hapi-swagger.responses.prototype.optionOverride (discoveredSchemas, userDefindedSchemas, useDefinitions, isAlt)
  15. module hapi-swagger.sort
    1. function hapi-swagger.sort.paths (sortType, routes)
  16. module hapi-swagger.tags
    1. function hapi-swagger.tags.build (settings)
    2. object hapi-swagger.tags.schema
  17. module hapi-swagger.utilities
    1. function hapi-swagger.utilities.createId (method, path)
    2. function hapi-swagger.utilities.deleteEmptyProperties (obj)
    3. function hapi-swagger.utilities.findAndRenameKey (obj, findKey, replaceKey)
    4. function hapi-swagger.utilities.first (array)
    5. function hapi-swagger.utilities.firstBy (f, d)
    6. function hapi-swagger.utilities.geJoiLabel (joiObj)
    7. function hapi-swagger.utilities.getJoiMetaProperty (joiObj, propertyName)
    8. function hapi-swagger.utilities.hasJoiChildren (joiObj)
    9. function hapi-swagger.utilities.hasJoiMeta (joiObj)
    10. function hapi-swagger.utilities.hasKey (obj, findKey)
    11. function hapi-swagger.utilities.hasProperties (obj)
    12. function hapi-swagger.utilities.isFunction (obj)
    13. function hapi-swagger.utilities.isJoi (joiObj)
    14. function hapi-swagger.utilities.isObject (obj)
    15. function hapi-swagger.utilities.isRegex (obj)
    16. function hapi-swagger.utilities.removeProps (obj, listOfProps)
    17. function hapi-swagger.utilities.removeTrailingSlash (str)
    18. function hapi-swagger.utilities.replaceInPath (path, applyTo, options)
    19. function hapi-swagger.utilities.replaceValue (array, current, replacement)
    20. function hapi-swagger.utilities.sortFirstItem (array, firstItem)
    21. function hapi-swagger.utilities.startsWith (str, test)
    22. function hapi-swagger.utilities.toJoiObject (obj)
    23. function hapi-swagger.utilities.toTitleCase (word)
  18. module hapi-swagger.validate
    1. function hapi-swagger.validate.log (doc, logFnc)
    2. function hapi-swagger.validate.test (doc, next)

module hapi-swagger

function hapi-swagger.definitions (settings)

function hapi-swagger.paths (settings)

function hapi-swagger.properties (settings, definitionCollection, altDefinitionCollection, definitionCache )

function hapi-swagger.register (plugin, options, next)

function hapi-swagger.responses (settings, definitionCollection, altDefinitionCollection, definitionCache)

module hapi-swagger.builder

function hapi-swagger.builder.dereference (schema, callback)

function hapi-swagger.builder.getSwaggerJSON (settings, request, callback)

module hapi-swagger.definitions

function hapi-swagger.definitions (settings)

module hapi-swagger.definitions.prototype

function hapi-swagger.definitions.prototype.append (definitionName, definition, currentCollection, settings)

module hapi-swagger.filter

function hapi-swagger.filter.byTags (tags, routes)

module hapi-swagger.group

function hapi-swagger.group.appendGroupByPath (pathPrefixSize, basePath, routes, pathReplacements)

function hapi-swagger.group.getNameByPath (pathPrefixSize, basePath, path, pathReplacements)

module hapi-swagger.info

function hapi-swagger.info.build (options)

module hapi-swagger.parameters

function hapi-swagger.parameters.fromProperties (schemaObj, parameterType)

module hapi-swagger.paths

function hapi-swagger.paths (settings)

module hapi-swagger.paths.prototype

function hapi-swagger.paths.prototype.build (routes)

function hapi-swagger.paths.prototype.buildRoutes (routes)

function hapi-swagger.paths.prototype.getDefaultStructures ()

function hapi-swagger.paths.prototype.getSwaggerStructures (joiObj, parameterType, useDefinitions, isAlt)

function hapi-swagger.paths.prototype.testParameterError (joiObj, parameterType, path)

module hapi-swagger.properties

function hapi-swagger.properties (settings, definitionCollection, altDefinitionCollection, definitionCache )

module hapi-swagger.properties.prototype

function hapi-swagger.properties.prototype.getDefinitionCollection (isAlt)

function hapi-swagger.properties.prototype.getDefinitionRef (isAlt)

function hapi-swagger.properties.prototype.parseAlternatives (property, joiObj, name, parameterType, useDefinitions)

function hapi-swagger.properties.prototype.parseArray (property, joiObj, name, parameterType, useDefinitions, isAlt)

function hapi-swagger.properties.prototype.parseDate (property, joiObj)

function hapi-swagger.properties.prototype.parseNumber (property, joiObj)

function hapi-swagger.properties.prototype.parseObject (property, joiObj, name, parameterType, useDefinitions, isAlt)

function hapi-swagger.properties.prototype.parseProperty (name, joiObj, parent, parameterType, useDefinitions, isAlt)

function hapi-swagger.properties.prototype.parsePropertyMetadata (property, name, parent, joiObj)

function hapi-swagger.properties.prototype.parseString (property, joiObj)

module hapi-swagger.responses

function hapi-swagger.responses (settings, definitionCollection, altDefinitionCollection, definitionCache)

module hapi-swagger.responses.prototype

function hapi-swagger.responses.prototype.build (userDefindedSchemas, defaultSchema, statusSchemas, useDefinitions, isAlt)

function hapi-swagger.responses.prototype.getResponse (statusCode, joiObj, useDefinitions)

function hapi-swagger.responses.prototype.optionOverride (discoveredSchemas, userDefindedSchemas, useDefinitions, isAlt)

module hapi-swagger.sort

function hapi-swagger.sort.paths (sortType, routes)

module hapi-swagger.tags

function hapi-swagger.tags.build (settings)

module hapi-swagger.utilities

function hapi-swagger.utilities.createId (method, path)

function hapi-swagger.utilities.deleteEmptyProperties (obj)

function hapi-swagger.utilities.findAndRenameKey (obj, findKey, replaceKey)

function hapi-swagger.utilities.first (array)

function hapi-swagger.utilities.firstBy (f, d)

function hapi-swagger.utilities.geJoiLabel (joiObj)

function hapi-swagger.utilities.getJoiMetaProperty (joiObj, propertyName)

function hapi-swagger.utilities.hasJoiChildren (joiObj)

function hapi-swagger.utilities.hasJoiMeta (joiObj)

function hapi-swagger.utilities.hasKey (obj, findKey)

function hapi-swagger.utilities.hasProperties (obj)

function hapi-swagger.utilities.isFunction (obj)

function hapi-swagger.utilities.isJoi (joiObj)

function hapi-swagger.utilities.isObject (obj)

function hapi-swagger.utilities.isRegex (obj)

function hapi-swagger.utilities.removeProps (obj, listOfProps)

function hapi-swagger.utilities.removeTrailingSlash (str)

function hapi-swagger.utilities.replaceInPath (path, applyTo, options)

function hapi-swagger.utilities.replaceValue (array, current, replacement)

function hapi-swagger.utilities.sortFirstItem (array, firstItem)

function hapi-swagger.utilities.startsWith (str, test)

function hapi-swagger.utilities.toJoiObject (obj)

function hapi-swagger.utilities.toTitleCase (word)

module hapi-swagger.validate

function hapi-swagger.validate.log (doc, logFnc)

function hapi-swagger.validate.test (doc, next)

[ this document was created with utility2 ]