Should be started after creation of interfaces and API definition model. i.e. to #3 and #4 You need to implement next logic: 1. Check that the file is swagger YAML file (maybe check version or some simple check) 2. Parse content into API Definition. I looks to me that method should have signature like this: parse(content []byte) (*model.ApiSpecDoc, error)