API that you can call to create calls and stops them. The main functionality is to record the history of past and current calls.
Create a file called .env in the route of the project and add those variables with your own values.
- APP_DB_USERNAME=postgres
- APP_DB_PASSWORD=password
- APP_DB_NAME=postgres
- HOST_ADDR=127.0.0.1
In the root folder run: docker compose -f docker-compose.yml up -d. After a few seconds the API will be up and running.
Create a file called .env in the route of the project and add those variables with your own values.
- APP_DB_USERNAME=postgres
- APP_DB_PASSWORD=password
- APP_DB_NAME=postgres
- HOST_ADDR=127.0.0.1
- TEST_HOST_ADDR=http://localhost:8010
Run the following command to create a container to host the database: docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
In the command line run go run . and the api will be up and running. You will be able to access the API using thhe following URL: localhost:8010
Create a file called .env in the route of the project and add those variables with your own values.
- APP_DB_USERNAME=postgres
- APP_DB_PASSWORD=password
- APP_DB_NAME=postgres
In the root folder run: docker compose -f docker-compose.tests.yml up -d. After a few seconds the API will be up and running.
-
POST
/call: Call other User -
GET
/call/[id]: cet information of a call by id -
DELETE
/call/[id]: Delete call by id -
GET
/calls: Browse through all the calls -
GET
/stop/[id]: End call with User -
GET
/health: To get server health check
/auth: Authenticate the User