luxin88 / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

New Feature Request for improved linkifying to suit Django + TastyPie #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to use chrome-rest-client to test an API built using Django + TastyPie.

It provides links to related resources like this:

resource_uri: "/api/v1/datasource/1/"

or:

- dataseries: [3]
0:  "/api/v1/dataseries/3/"
1:  "/api/v1/dataseries/2/"
2:  "/api/v1/dataseries/1/"

It would be really helpful if chrome-rest-client recognized that the beginning 
of the path was the same as the root path for the last request (i.e. /api/v1/) 
and therefore render those nodes as links that trigger a new request inside the 
chrome-rest-client

Thanks

Original issue reported on code.google.com by roger.hu...@gmail.com on 30 Apr 2013 at 5:50

GoogleCodeExporter commented 9 years ago
The full JSON returned for a request, 
http://server.example.com/api/v1/datasource/ is:

{
page: "1"
records: "2"
rows: [2]
0:  {
_pk: 1
created: "2013-04-27T00:52:25.276443"
dataseries: [3]
0:  "/api/v1/dataseries/3/"
1:  "/api/v1/dataseries/2/"
2:  "/api/v1/dataseries/1/"
-
description: ""
id: 1
modified: "2013-04-27T00:52:25.294112"
name: "Monthly Spreadsheet"
resource_uri: "/api/v1/datasource/1/"
source_type: "E"
}-
1:  {
_pk: 2
created: "2013-04-27T00:52:42.100609"
dataseries: [0]
description: ""
id: 2
modified: "2013-04-27T00:52:42.119760"
name: "Manual Survey"
resource_uri: "/api/v1/datasource/2/"
source_type: "M"
}-
-
total: "1"
}

Original comment by roger.hu...@gmail.com on 30 Apr 2013 at 5:53

GoogleCodeExporter commented 9 years ago
Hi,
Thank you for your issue report. 
It will be possible with next update. Values that starts with relative URL 
value "/" as a best guess for an URL will be treated as regular link. Based on 
current value in URL field it will construct a proper URL value.

Original comment by jarro...@gmail.com on 3 May 2013 at 4:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r203.

Original comment by jarro...@gmail.com on 3 May 2013 at 4:14

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r204.

Original comment by jarro...@gmail.com on 4 May 2013 at 7:31