add endpoint definition