endpoints: add endpoint_type parameter

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>