Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides methods for RAML 0.8 processing

Hierarchy

  • raml08

Index

Methods

Static generateFile

  • Generates file with RAML 0.8 content.

    Parameters

    • model: WebApiBaseUnit

      Parsed WebApi Model to generate content from.

    • url: string

      Path to the generated file.

    Returns Promise<void>

Static generateString

  • Generates string with RAML 0.8 content.

    Parameters

    Returns Promise<string>

    Generated string.

Static parse

  • Parses RAML 0.8 content from string or url.

    Parameters

    • urlOrContent: string

      File url/path or content string.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model.

  • Parses RAML 0.8 content from string with a custom API Doc location.

    Parameters

    • content: string

      Content string to be parsed.

    • baseUrl: string

      Location to assign to a doc parsed from a content string. References are resolved relative to this location.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model (future).

Static resolve

  • Resolves parsed RAML 0.8 amf.model.

    Resolution process includes resolving references to all types, libraries, etc.

    Parameters

    Returns Promise<WebApiBaseUnit>

    Resolved parsed WebApi Model.

Static validate

  • Validates parsed RAML 0.8 amf.model.

    Parameters

    Returns Promise<ValidationReport>

    Validation report.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc