We now call addEndpoint so we can create the endpoint object and add the operations to it.