added a swagger-generator deriving coupontype automatically implemented cors for swagger to work fixed product model