PathsBuilder

class PathsBuilder(context: OpenApiDslContext) : PathsDsl, Builder<Paths> , Buildable<Paths>

Builder for PathsDsl.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun build(): Paths

Build the object.

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

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

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

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

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

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

Link copied to clipboard
open operator override 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
open infix override fun String.options(path: OperationDsl.() -> Unit)

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

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

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

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

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

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

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