Publishing your API means documenting your API. Documentation can help others to understand your collection and they will get to know how to use it. Documentation can also act as a readme of your work, giving people an outline about how it does, what it does, and how each component of your collection work.