Home Reference Source Repository
public class | source

Paths

Swagger Paths

Method Summary

Public Methods
public

Return the total number of paths

public

walk(callback: function(index: number, name: string, path: Path)): Paths

Walk through all paths

public

walkMethods(callback: function(index: number, name: string, methodName: string, method: Path)): Paths

Walk through all paths methods

Public Methods

public total(): number source

Return the total number of paths

Return:

number

public walk(callback: function(index: number, name: string, path: Path)): Paths source

Walk through all paths

Params:

NameTypeAttributeDescription
callback function(index: number, name: string, path: Path)

function to exectute for each path element.

Return:

Paths

public walkMethods(callback: function(index: number, name: string, methodName: string, method: Path)): Paths source

Walk through all paths methods

Params:

NameTypeAttributeDescription
callback function(index: number, name: string, methodName: string, method: Path)

function to exectute for each paths method element.

Return:

Paths