swimlane/node-microservice-demo

View on GitHub
petstore/src/services/PetSwagger.ts

Summary

Maintainability
A
0 mins
Test Coverage
import * as Swagger from 'swagger-client';
import { Service } from 'typedi';
import * as config from 'config';

@Service()
export class PetSwagger {

  client: any;

  constructor() {
     // TODO: Can't get this to extend correctly
    this.client = new Swagger({
      url: config.get('spec.petstore'),
      usePromise: true
    });
  }

}