Project

Profile

Help

Story #2824

Updated by daviddavis almost 7 years ago

This is what gets returned if I do a get on /api/v3/repositories or /api/v3/repositories/blah/: repos: 

 <pre> 
 { 
             "_href": "http://127.0.0.1:1234/api/v3/repositories/blah/", 
             "content": "http://127.0.0.1:1234/api/v3/repositories/blah/content/", 
             "description": "123456", 
             "importers": [], 
             "last_content_added": null, 
             "last_content_removed": null, 
             "notes": {}, 
             "publishers": [], 
             "scratchpad": { 
                 "test": "asgfdds" 
             } 
         } 
 </pre> 

 I can tell that the name of the repo is blah from the _href field. But suppose I name my repo something that needs to be escaped: 

 <pre> 
 { 
             "_href": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/", 
             "content": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/content/", 
             "description": "123456", 
             "importers": [], 
             "last_content_added": null, 
             "last_content_removed": null, 
             "notes": {}, 
             "publishers": [], 
             "scratchpad": { 
                 "test": "asgfdds" 
             } 
         } 
 </pre> 

 Can you tell the name of the repo here?

Back