The REST API has endpoints for dependencies (e.g. to see what an issue is blocked by) so that should be easy to integrate.
As to retrieving a parent's issue, at first glance there might be an API limitation making that difficult as the GET issue endpoint isn't returning information about the issue's parent in the response - this might need a closer look.