artmapper
Version:
Spring Boot clone for Node.js with TypeScript/JavaScript - JPA-like ORM, Lombok decorators, dependency injection, and MySQL support
53 lines • 2.2 kB
TypeScript
import 'reflect-metadata';
export declare const GET_METADATA_KEY: unique symbol;
export declare const POST_METADATA_KEY: unique symbol;
export declare const PUT_METADATA_KEY: unique symbol;
export declare const DELETE_METADATA_KEY: unique symbol;
export declare const PATCH_METADATA_KEY: unique symbol;
export declare const REQUEST_BODY_METADATA_KEY: unique symbol;
export declare const REQUEST_PARAM_METADATA_KEY: unique symbol;
export declare const PATH_VARIABLE_METADATA_KEY: unique symbol;
export declare const REQUEST_HEADER_METADATA_KEY: unique symbol;
export interface RouteMetadata {
path: string;
method: string;
handler: string;
middleware?: Function[];
}
/**
* Spring @GetMapping equivalent
*/
export declare function GetMapping(path: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Spring @PostMapping equivalent
*/
export declare function PostMapping(path: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Spring @PutMapping equivalent
*/
export declare function PutMapping(path: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Spring @DeleteMapping equivalent
*/
export declare function DeleteMapping(path: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Spring @PatchMapping equivalent
*/
export declare function PatchMapping(path: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Spring @RequestBody equivalent
*/
export declare function RequestBody(): (target: any, propertyKey: string, parameterIndex: number) => void;
/**
* Spring @RequestParam equivalent
*/
export declare function RequestParam(name?: string): (target: any, propertyKey: string, parameterIndex: number) => void;
/**
* Spring @PathVariable equivalent
*/
export declare function PathVariable(name?: string): (target: any, propertyKey: string, parameterIndex: number) => void;
/**
* Spring @RequestHeader equivalent
*/
export declare function RequestHeader(name: string): (target: any, propertyKey: string, parameterIndex: number) => void;
//# sourceMappingURL=web.d.ts.map