Swagger upgrade

Upgraded to swagger api 1.2