Implement the getdata getpdf and registerbirth example for rest client.