Connect swagger with the api