-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.ts
26 lines (22 loc) · 919 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export * from './src/ngx-http-rest.module';
import { Response } from '@angular/http';
import { HttpRestUtils, path, body, query, headers, produces, observe } from "ngx-http-rest/src/ngx-http-rest.utils";
export let Path = path;
export let PathParam = path;
export let Body = body(null);
export let Query = query(null);
export let QueryParam = query;
export let QueryParams = query(null);
export let Observe = observe;
// Headers
export let Headers = headers;
// Produces
export let Produces = produces;
// Request methods
export const GET = HttpRestUtils.requestMethod('Get')
export let POST = HttpRestUtils.requestMethod('Post');
export let PUT = HttpRestUtils.requestMethod('Put');
export let DELETE = HttpRestUtils.requestMethod('Delete');
export let OPTIONS = HttpRestUtils.requestMethod('Options');
export let HEAD = HttpRestUtils.requestMethod('Head');
export let PATCH = HttpRestUtils.requestMethod('Patch');