routes/pull_requests: implementing JSON API