Skip to content

OpenSpecPath

@tsed/openspec

Usage ​

typescript
import { OpenSpecPath } from "@tsed/openspec";

See /packages/specs/openspec/src/common/OpenSpecPath.ts.

Overview ​

ts
interface OpenSpecPath<Operation> {
    $ref?: string;
    get?: Operation;
    put?: Operation;
    post?: Operation;
    delete?: Operation;
    options?: Operation;
    head?: Operation;
    patch?: Operation;
}

$ref ​

ts
$ref?: string;

get ​

ts
get?: Operation;

put ​

ts
put?: Operation;

post ​

ts
post?: Operation;

delete ​

ts
delete?: Operation;

options ​

ts
options?: Operation;
ts
head?: Operation;

patch ​

ts
patch?: Operation;

Released under the MIT License.