import requests

class ApiClient:
    def __init__(self, host, username, password):
        self.uri = host + '/nexus/service/local/'
        self.username = username
        self.password = password

    def get_all_repositories(self):
        r = requests.get(self.uri + 'all_repositories', headers={'Accept': 'application/json'})

        return r

    def get_status(self):
        r = requests.get(self.uri + 'status', headers={'Accept': 'application/json'})
        
        return r

import requests

class ApiClient:
    def __init__(self, host, username, password):
        self.host = host
        self.username = username
        self.password = password

    def get_all_repositories(self):
        r = requests.get(self.host+'/nexus/service/local/repositories', headers={'Accept': 'application/json'})

        return r

    def get_status(self):
        r = requests.get(self.host+'/nexus/service/local/status', headers={'Accept': 'application/json'})
        
        return r

--- 
+++ 
@@ -2,16 +2,16 @@
 
 class ApiClient:
     def __init__(self, host, username, password):
-        self.host = host
+        self.uri = host + '/nexus/service/local/'
         self.username = username
         self.password = password
 
     def get_all_repositories(self):
-        r = requests.get(self.host+'/nexus/service/local/repositories', headers={'Accept': 'application/json'})
+        r = requests.get(self.uri + 'all_repositories', headers={'Accept': 'application/json'})
 
         return r
 
     def get_status(self):
-        r = requests.get(self.host+'/nexus/service/local/status', headers={'Accept': 'application/json'})
+        r = requests.get(self.uri + 'status', headers={'Accept': 'application/json'})
         
         return r
Refactor url attribute to uri

It's better to construct the uri in the class constructor, instead
of constructing it in every single REST method
