PathsDsl

interface PathsDsl

DSL for the paths object.

Functions

Link copied to clipboard
abstract infix fun String.delete(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "DELETE" operation on it.

Link copied to clipboard
abstract infix fun String.get(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "GET" operation on it.

Link copied to clipboard
abstract infix fun String.head(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "HEAD" operation on it.

Link copied to clipboard
abstract operator fun String.invoke(path: PathDsl.() -> Unit)

Adds a path with the given string and registers any operations defined in the block.

Link copied to clipboard
abstract infix fun String.options(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "OPTIONS" operation on it.

Link copied to clipboard
abstract infix fun String.patch(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "PATCH" operation on it.

Link copied to clipboard
abstract infix fun String.post(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "POST" operation on it.

Link copied to clipboard
abstract infix fun String.put(path: OperationDsl.() -> Unit)

Adds a path with the given string and creates a "PUT" operation on it.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard