Swagger API updated for version 1.2 of spec