Adds godoc to api package

cc @zankich