Home Reference Source Repository
public class | source

Method

Swagger Method

Method Summary

Public Methods
public

Get a response by name

public

Check if the method has a description

public

Check if the method has a summaty

public

Check if the method has tags

public

Walk through all parameters

public

Walk through all responses

Public Methods

public getResponse(name: string): object source

Get a response by name

Params:

NameTypeAttributeDescription
name string

The name of the response element

Return:

object

public hasDescription(): boolean source

Check if the method has a description

Return:

boolean

public hasSummary(): boolean source

Check if the method has a summaty

Return:

boolean

public hasTags(): boolean source

Check if the method has tags

Return:

boolean

public walkParameters(fn: function) source

Walk through all parameters

Params:

NameTypeAttributeDescription
fn function

function to exectute for each parameter element. taking three arguments:

public walkResponses(fn: function) source

Walk through all responses

Params:

NameTypeAttributeDescription
fn function

function to exectute for each response element. taking three arguments: