Create rapidly fully type-safe services that consume REST APIs through a Swagger/OpenAPI 2.0 file.
mr exec module -m typescript-rest-services -r create-services
const services = buildServices(new AxiosHttpProvider("https://petstore.swagger.io/v2/"));
services.pet.getPetById({ params: { petId: 1 } }).then(result => console.log(result.data));
const services = buildServices(new FetchHttpProvider("https://petstore.swagger.io/v2/"));
services.pet.getPetById({ params: { petId: 1 } }).then(result => console.log(result.data));