code: def endpoint(url, method="GET", expected_status=200):
      
      def dec(obj):
          obj.ENDPOINT = url
          obj.METHOD = method
          obj.EXPECTED_STATUS = expected_status
          return obj
  
      return dec
docs: endpoint - decorator to manipulate the REST-service endpoint.
  
      The endpoint decorator sets the endpoint and the method for the class
      to access the REST-service.