Fix parsing with directory_v1 pubsub v1beta1 urls
Add initial JSDoc3 documentation to endpoints