Project

Profile

Help

Story #3987

Updated by dkliban@redhat.com over 5 years ago

DRF browsable API relies on a Django filter[0,1] filter to find links that start with http and https and put them inside an anchor tag.  

 A new django filter needs to be created, registered, and used with the template[2] template[0] that is used for the browsable API.  

 The filter needs to look for relative href that start with '/pulp/api/v3' and wrap them in an anchor tag.  



  


 [0] https://github.com/django/django/blob/master/django/template/defaultfilters.py#L326 
 [1] https://github.com/django/django/blob/master/django/utils/html.py#L238 
 [2] https://github.com/pulp/pulp/blob/master/pulpcore/pulpcore/app/templates/rest_framework/api.html

Back