implement configuration for diffrenet api endpoints