Open API Schema interface, usable when composing the request/response
schema for a REST endpoint (declared when using the
decorators such as Get, Post, etc.)
Examples
Example 1
import { Get } from"@dklab/oak-routing-ctrl"constGetItemsSchema: OakOpenApiSpec= {
responses: {
"200": { "description": "OK" }
}
}
// later inside the Controller ClassclassExampleClass {
;@Get("/", GetItemsSchema)
asyncgetSomething() {
//
}
}