Initial spray layer that uses swagger

Currently using swagger-spray which uses annotations to generate swagger doc. Any code generator will need to create these annotated classes like AppMasterService based on an input grammar (which could be swagger like). This class is a simple example of beginning to retrieve AppMaster information from the Master actor. 
What is the difference between these two cases?