basic swagger driven API with compile method