kohandani/ticketing

 Api-based ticketing support system

dev-master 2021-03-12 14:33 UTC

This package is not auto-updated.

Last update: 2024-04-21 04:44:15 UTC


README

How the ticketing module works is described below: 1- Guest users can send a support ticket, receive a tracking code and register.

http://test.com/api/v1/tickets

method => POST

Parameters Descriptions
email email type
type enum('immediate', 'normal', 'nonsignificant')
title title ticket
description description ticket

2- Users can log in and track their tickets.

http://test.com/api/v1/tickets

method => GET

3- Guest users can see the status of their ticket by sending a ref_number.

http://test.com/api/v1/tickets/{ref_number}

method => GET

4- Login and receive jwt token

http://test.com/api/v1/auth/login

method => POST

Parameters Descriptions
email user email
password user password

5- Admins who are permission to give ticket answers:

method => Put

Parameters Descriptions
ref_number ticket ref_number
type enum('immediate', 'normal', 'nonsignificant')
Parameters Descriptions
title reply title
description description
  • In addition, a notification email will be sent to these admins when they submit a new ticket

6- Admins permissioned to close tickets:

Parameter Description
status ticket status

Features

  • Artisan command to create the desired number of dummy tickets and message for tickets with random and different statuses for the software demo
php artisan ticket:create {numberOfTickets} {numberOfMessages}
  • Artisan command for unanswered tickets from the user for one day.
php artisan ticket:finish
  • Automatic closing of tickets left unanswered by the user. (Daily)
php artisan schedule:work