- Open project directory and run following command:
docker compose up --build
- Open postman and import collection located in the project directory
testing.postman_collection.json
- Use the saved endpoints to test functionality
When docker is initiated the Users table is seeded with 4 users.
Creating more than 4 tickets using Create new Ticket endpoint without resolving any of them, all new tickets will be unassigned.
Assigning tickets using Asssign Ticket endpoint will fetch the list of available agents and depending on the number of available agents it will fetch the list of unresolved tickets. Then it will loop through the list of agents, update their availability and assign them a ticket.
Resolving ticket using Resolve Ticket endpoint will automatically assign unassigned and unresolved ticket to the agent that was assigned the ticket that's being resolved. If there are no unresolved tickets, the agent will be marked as available, else, he will be assigned with a new ticket.