UNPKG

1.57 kBTypeScriptView Raw
1/**
2 * @license
3 * MOST Web Framework 2.0 Codename Blueshift
4 * Copyright (c) 2017, THEMOST LP All rights reserved
5 *
6 * Use of this source code is governed by an BSD-3-Clause license that can be
7 * found in the LICENSE file at https://themost.io/license
8 */
9import HttpBaseController from "./base";
10import {HttpJsonResult} from "../mvc";
11import {HttpApplication} from "../app";
12
13declare class HttpServiceController extends HttpBaseController {
14 static configure(app: HttpApplication): void;
15 getMetadata():Promise<string>;
16 getIndex():Promise<any>;
17 getItems(entitySet: string): Promise<any>;
18 postItems(entitySet: string): Promise<any>;
19 deleteItems(entitySet: string): Promise<any>;
20 getItem(entitySet: string, id: any): Promise<any>;
21 patchItem(entitySet: string, id: any): Promise<any>;
22 deleteItem(entitySet: string, id: any): Promise<any>;
23 postItem(entitySet: string, id: any): Promise<any>;
24 getNavigationProperty(entitySet: string, navigationProperty: string, id: any): Promise<any>;
25 getEntityFunction(entitySet: string, entityFunction: string, id: any): Promise<any>;
26 getEntitySetFunction(entitySet: string, entityFunction: string, navigationProperty?: string): Promise<any>;
27 postEntityAction(entitySet: string, entityAction: string, id: any): Promise<any>;
28 postEntitySetAction(entitySet: string, entityAction: string): Promise<any>;
29 postEntitySetFunction(eentitySet: string, entitySetFunction: string, entityAction: string): Promise<any>;
30 getBuilder():any;
31
32}
33
34export default HttpServiceController;