Check .env file for Host IP and Port Number
run below command to setup diesel
diesel setup
This API is used to fetch agent name by registered agent id
curl --location --request GET 'localhost:8080/fetch-agent-by-id?agent-id=1'
This API is used to fetch call details by registered call id
curl --location --request GET 'localhost:8080/fetch-call-by-id?call-id=34648'
This API is used to fetch calls by agent having skip and limit
curl --location --request POST 'localhost:8080/fetch-calls-by-agent' \
--header 'Content-Type: application/json' \
--data-raw '{
"agent-id": 1,
"skip": 2,
"limit": 30
}'
This API is used to fetch calls by agent having skip and limit
curl --location --request POST 'localhost:8080/fetch-calls-by-agent' \
--header 'Content-Type: application/json' \
--data-raw '{
"agent-id": 1,
"skip": 2,
"limit": 30
}'
This API is used to fetch call volume of agent between two dates
curl --location --request POST 'localhost:8080/daily-call-volume' \
--header 'Content-Type: application/json' \
--data-raw '{
"start-date": 990101,
"end-date": 990103,
"agent-id": 1
}'
This run.sh script contains the host_url and connection string of Postgres Database
./run.sh