def create_endpoint(data)
      headers = @client.make_request(:post, @client.concat_user_path("#{DOMAIN_PATH}/#{id}/endpoints"), data)[1]
      id = Client.get_id_from_location_header(headers[:location])
      get_endpoint(id)
    end
def create_endpoint(data)
      headers = @client.make_request(:post, @client.concat_user_path("#{DOMAIN_PATH}/#{id}/endpoints"), data)[1]
      id = Client.get_id_from_location_header(headers[:location])
      get_endpoint(id)
    end
Add a endpoint to a domain.
 @param data [Hash] data to add endpoint to a domain
 @return [EndPoint] created endpoint
 @example
   endpoint = domain.create_endpoint(:name=>"name", :application_id => "id")