UNPKG

@anglr/rest

Version:

Angular module representing rest services

27 lines 1.29 kB
import { RestParameters } from '../interfaces'; import type { RESTClientBase } from '../misc/classes/restClientBase'; /** * Path variable of a method's url, type: string * @param key - path key to bind value */ export declare const Path: (key: string) => (target: RESTClientBase & RestParameters, propertyKey: string, parameterIndex: number) => void; /** * Query value of a method's url, type: string * @param key - query key to bind value */ export declare const Query: (key: string) => (target: RESTClientBase & RestParameters, propertyKey: string, parameterIndex: number) => void; /** * Query object serialized with dot notation separating hierarchies */ export declare const QueryObject: (target: RESTClientBase & RestParameters, propertyKey: string, parameterIndex: number) => void; /** * Body of a REST method, json stringify applied * Only one body per method! */ export declare const Body: (target: RESTClientBase & RestParameters, propertyKey: string, parameterIndex: number) => void; /** * Custom header of a REST method, type: string * @param key - header key to bind value */ export declare const Header: (key: string) => (target: RESTClientBase & RestParameters, propertyKey: string, parameterIndex: number) => void; //# sourceMappingURL=parameters.decorator.d.ts.map