This is really confusing me:

1. The summary of this method says that it adds an api method to a swagger spec
2. It takes in a swagger spec, but not an API method, what API method is it adding to the spec?
3. Within the method it never actually adds anything to the spec, it looks like it calls `_appendToApi`, which says it adds a spec to an API, which is the opposite of what this function is saying it will do