0.0.19 • Published 6 months ago
badman-rest-starter v0.0.19
HttpClient MicroSoftware
Demo API:
export default class BadmanRest {
async main(){
let logger:Logger = (await SingletonObjectFactory2.initWithArgs<Logging>(Logging,['log4js_properties.json'])).logger(BadmanRest.name);
let rest:RestTemplate = await SingletonObjectFactory2.initWithArgs<RestTemplate>(RestTemplate,[new AxiosHttpClientRequestFactory()]);
// let response:HttpClientResponse = await rest.post<Object,Object>('http://192.168.1.27:6999/testA',JSON.stringify({ss:'sssss'}));
let response:HttpClientResponse = await rest.get<Object,Object>('http://192.168.1.27:6999/testB',{aaa:'sssss'});
logger.debug(response.body());
}
}
0.0.12
11 months ago
0.0.13
11 months ago
0.0.14
8 months ago
0.0.15
8 months ago
0.0.16
7 months ago
0.0.17
6 months ago
0.0.18
6 months ago
0.0.19
6 months ago
0.0.10
11 months ago
0.0.11
11 months ago
0.0.9
12 months ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago