projects/wvr-elements/src/lib/core/manifest/manifest-entry.ts
Properties |
| description |
description:
|
Type : string
|
| Optional |
| error |
error:
|
Type : any
|
| Optional |
| map |
map:
|
Type : map
|
| Optional |
| methods |
methods:
|
Type : Array<RequestMethod>
|
| name |
name:
|
Type : string
|
| options |
options:
|
Type : RequestOptions
|
| Optional |
| path |
path:
|
Type : string
|
| request |
request:
|
Type : any
|
| Optional |
| response |
response:
|
Type : any
|
| Optional |
import { RequestMethod } from '../rest/request-method';
import { RequestOptions } from '../rest/request-options';
export type map = (response) => any;
export interface ManifestEntry {
name: string; // unique
description?: string;
path: string;
// allowed methods for entry
methods: Array<RequestMethod>;
// options defined by manifest to be merged with request
options?: RequestOptions;
// last request submitted
request?: any;
// response from last successful request
response?: any;
// error from last failed request
error?: any;
map?: map;
}