External module "services/http/RestService"
Type aliases
RestAttr
RestAttr: function
Type declaration
-
- (target: BaseService, propertyKey: string | symbol, parameterIndex: number): void
-
Parameters
-
-
propertyKey: string | symbol
-
parameterIndex: number
Returns void
RestMethodAttr
RestMethodAttr: function
Type declaration
-
-
Parameters
Returns function
-
- (target: BaseService, propertyKey: string | symbol, descriptor: any): void
-
Parameters
-
-
propertyKey: string | symbol
-
descriptor: any
Returns void
RestParamAttr
RestParamAttr: function
Type declaration
-
- (key: string, defaultValue?: any): RestAttr
-
Parameters
-
key: string
-
Optional defaultValue: any
Variables
Const Body
Body
: RestAttr = parameterBuilder("Body")("")
Const BodyFormModel
Body
FormModel: RestAttr = parameterBuilder("BodyFormModel")("")
Const Queries
Queries
: RestAttr = parameterBuilder("Queries")("")
Const RawBody
Raw
Body: RestAttr = parameterBuilder("RawBody")("")
Const XmlBody
Xml
Body: RestAttr = parameterBuilder("XmlBody")("")
Functions
BaseUrl
- BaseUrl(baseUrl: string): function
-
Parameters
Returns function
Cancel
- Cancel(target: BaseService, propertyKey: string | symbol, parameterIndex: number): void
-
Parameters
-
-
propertyKey: string | symbol
-
parameterIndex: number
Returns void
This will register data fragment on ajax.
@Post("/api/products") async getProducts( @Query("id") id: number, @Body product: Product ): Promise<Product[]> { }
Body