Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

RAMLVersion

  • RAMLVersion(): string

annotations

body

  • Some method verbs expect the resource to be sent as a request body. For example, to create a resource, the request must include the details of the resource to create. Resources CAN have alternate representations. For example, an API might support both JSON and XML representations. A method's body is defined in the body property as a hashmap, in which the key MUST be a valid media type.

    Returns TypeDeclaration[]

definition

description

displayName

  • displayName(): string
  • The displayName attribute specifies the trait display name. It is a friendly name used only for display or documentation purposes. If displayName is not specified, it defaults to the element's key (the name of the property itself).

    Returns string

errors

headers

is

kind

  • kind(): string

meta

name

  • name(): string

optional

  • optional(): boolean

optionalProperties

  • optionalProperties(): string[]

parametrizedProperties

parent

protocols

  • protocols(): string[]

queryParameters

  • An APIs resources MAY be filtered (to return a subset of results) or altered (such as transforming a response body from JSON to XML format) by the use of query strings. If the resource or its method supports a query string, the query string MUST be defined by the queryParameters property

    Returns TypeDeclaration[]

queryString

responses

runtimeDefinition

scalarsAnnotations

securedBy

  • securityScheme may also be applied to a resource by using the securedBy key, which is equivalent to applying the securityScheme to all methods that may be declared, explicitly or implicitly, by defining the resourceTypes or traits property for that resource. To indicate that the method may be called without applying any securityScheme, the method may be annotated with the null securityScheme.

    Returns SecuritySchemeRef[]

toJSON

usage

  • usage(): string

Generated using TypeDoc