diff --git a/server/controllers/ticket/add-custom-response.php b/server/controllers/ticket/add-custom-response.php index ac05d2d6..b51142bc 100644 --- a/server/controllers/ticket/add-custom-response.php +++ b/server/controllers/ticket/add-custom-response.php @@ -2,6 +2,29 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); +/** + * @api {post} /ticket/add-custom-response Add new responses. + * + * @apiName Add custom response + * + * @apiGroup Ticket + * + * @apiDescription This path allows create new responses to tickets. + * + * @apiPermission Staff Level 2 + * + * @apiParam {String} name Name of the response. + * + * @apiParam {String} content Content of the response. + * + * @apiParam {String} language Language of the response. + * + * @apiError {String} message + * + * @apiSuccess {Object} data + * + */ + class AddCustomResponseController extends Controller { const PATH = '/add-custom-response'; const METHOD = 'POST'; diff --git a/server/controllers/ticket/change-department.php b/server/controllers/ticket/change-department.php index 61e99a4b..e7a1aa3f 100644 --- a/server/controllers/ticket/change-department.php +++ b/server/controllers/ticket/change-department.php @@ -2,6 +2,27 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); +/** + * @api {post} /ticket/change-department Change the department of a ticket. + * + * @apiName Change department + * + * @apiGroup Ticket + * + * @apiDescription This path change the department of a ticket. + * + * @apiPermission Staff Level 1 + * + * @apiParam {number} ticketNumber The number of a ticket. + * + * @apiParam {number} departmentId The id of the new department of the ticket. + * + * @apiError {String} message + * + * @apiSuccess {Object} data + * + */ + class ChangeDepartmentController extends Controller { const PATH = '/change-department'; const METHOD = 'POST'; diff --git a/server/controllers/ticket/change-priority.php b/server/controllers/ticket/change-priority.php index 18f5be15..b3c3de98 100644 --- a/server/controllers/ticket/change-priority.php +++ b/server/controllers/ticket/change-priority.php @@ -1,6 +1,27 @@