This fixes #17

Create endPoint to produce the CGD document