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