Currently, when querying an API endpoint, URIS contained in the response are missing protocol and domain:
15:48 $ curl https://archive.softwareheritage.org/api/1/revision/aafb16d69fd30ff58afdd69036a26047f3aebdc6/ | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1040 100 1040 0 0 16000 0 --:--:-- --:--:-- --:--:-- 16250 { "id": "aafb16d69fd30ff58afdd69036a26047f3aebdc6", "author": { "fullname": "Nicolas Dandrimont <nicolas.dandrimont@crans.org>", "name": "Nicolas Dandrimont", "email": "nicolas.dandrimont@crans.org" }, "date": "2014-08-18T18:18:25+02:00", "committer": { "fullname": "Nicolas Dandrimont <nicolas.dandrimont@crans.org>", "name": "Nicolas Dandrimont", "email": "nicolas.dandrimont@crans.org" }, "committer_date": "2014-08-18T18:18:25+02:00", "type": "git", "directory": "9f2e5898e00a66e6ac11033959d7e05b1593353b", "message": "Merge branch 'master' into pr/584\n", "metadata": {}, "synthetic": false, "parents": [ { "id": "26307d261279861c2d9c9eca3bb38519f951bea4", "url": "/api/1/revision/26307d261279861c2d9c9eca3bb38519f951bea4/" }, { "id": "37fc9e08d0c4b71807a4f1ecb06112e78d91c283", "url": "/api/1/revision/37fc9e08d0c4b71807a4f1ecb06112e78d91c283/" } ], "merge": true, "url": "/api/1/revision/aafb16d69fd30ff58afdd69036a26047f3aebdc6/", "history_url": "/api/1/revision/aafb16d69fd30ff58afdd69036a26047f3aebdc6/log/", "directory_url": "/api/1/directory/9f2e5898e00a66e6ac11033959d7e05b1593353b/" }
Similar to T2147, full URIS should be returned instead.