<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def endpoint(url, method="GET", expected_status=200):
 """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. """

    def dec(obj):
        obj.ENDPOINT = url
        obj.METHOD = method
        obj.EXPECTED_STATUS = expected_status
        return obj

    return dec