diff --git a/client/package.json b/client/package.json index 5b02bad8..8fc21755 100644 --- a/client/package.json +++ b/client/package.json @@ -1,13 +1,13 @@ { - "name": "os4-react", - "version": "4.0.0", - "author": "Ivan Diaz ", - "description": "OpenSupports version 4 with reactjs", + "name": "OpenSupports", + "version": "4.1.0", + "author": "Ivan Diaz ", + "description": "Open source ticket system made with PHP and ReactJS", "repository": { "type": "git", - "url": "https://github.com/ivandiazwm/opensupports.git" + "url": "https://github.com/opensupports/opensupports" }, - "private": true, + "private": false, "engines": { "node": "^0.12.x", "npm": "^2.1.x" diff --git a/server/_apidoc.js b/server/_apidoc.js new file mode 100644 index 00000000..15f7c46b --- /dev/null +++ b/server/_apidoc.js @@ -0,0 +1,82 @@ + +/** + * @api {post} /staff/get Get staff + * @apiVersion 4.0.0 + * + * @apiName Get staff + * + * @apiGroup Staff + * + * @apiDescription This path retrieves information about a staff member. + * + * @apiPermission staff1 + * + * @apiParam {Number} staffId The id of the staff member to be searched. + * + * @apiUse NO_PERMISSION + * + * @apiSuccess {Object} data Information about a staff member + * @apiSuccess {String} data.name Staff id + * @apiSuccess {String} data.email Staff id + * @apiSuccess {String} data.profilePic Staff id + * @apiSuccess {Number} data.level Staff id + * @apiSuccess {Boolean} data.staff Staff id + * @apiSuccess {[Department](#api-Data_Structures-ObjectDepartment)[]} data.departments Array of departments that has assigned. + * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data.tickets Array of tickets that has assigned. + * + */ + +/** + * @api {get} /system/download Download file + * @apiVersion 4.0.0 + * + * @apiName Download file + * + * @apiGroup System + * + * @apiDescription This path downloads a file. + * + * @apiPermission any + * + * @apiParam {String} file The filename to be downloaded. + * + * + * @apiSuccess {Object} file File content + * + */ + +/** + * @api {post} /system/init-settings Init settings + * @apiVersion 4.0.0 + * + * @apiName Init settings + * + * @apiGroup System + * + * @apiDescription This path sets the initial settings. It can only be used once during installation. + * + * @apiPermission any + * + * @apiParam {String} language Indicates the default language of the system. + * @apiParam {String} user-system-enabled Indicates if the user system should be enabled. + * @apiParam {String} registration Indicates if the registration should be enabled. + * + * @apiUse INVALID_LANGUAGE + * @apiUse INIT_SETTINGS_DONE + * + * @apiSuccess {Object} data Empty object + * + */ + +/** + * @api {OBJECT} Staff Staff + * @apiVersion 4.0.0 + * @apiGroup Data Structures + * @apiParam {String} name Name of the staff member. + * @apiParam {String} email Email of the staff member. + * @apiParam {String} profilePic profilePic url of the staff member. + * @apiParam {Number} level Level of the staff member. + * @apiParam {Object[]} departments The departments the staff member has assigned. + * @apiParam {[Ticket](#api-Data_Structures-ObjectTicket)[]} tickets The tickets the staff member has assigned. + * @apiParam {Number} lastLogin The last login of the staff member. + */ \ No newline at end of file diff --git a/server/apidoc.json b/server/apidoc.json index 589e0216..3fece29a 100644 --- a/server/apidoc.json +++ b/server/apidoc.json @@ -1,6 +1,6 @@ { "name": "OpenSupports API Documentation", - "version": "4.0.0", + "version": "4.1.0", "title": "OpenSupports API Documentation", "description": "Backend API documentation for developers.", "header": { diff --git a/server/controllers/article/add-topic.php b/server/controllers/article/add-topic.php index 5b30bf77..9cfd29a8 100755 --- a/server/controllers/article/add-topic.php +++ b/server/controllers/article/add-topic.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/add-topic Add topic - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add topic * diff --git a/server/controllers/article/add.php b/server/controllers/article/add.php index 2f1b250a..c37b824f 100755 --- a/server/controllers/article/add.php +++ b/server/controllers/article/add.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/add Add article - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add article * diff --git a/server/controllers/article/delete-topic.php b/server/controllers/article/delete-topic.php index 18bd628d..1296873c 100755 --- a/server/controllers/article/delete-topic.php +++ b/server/controllers/article/delete-topic.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/delete-topic Delete topic - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete topic * diff --git a/server/controllers/article/delete.php b/server/controllers/article/delete.php index 948a37b0..fda5d33d 100755 --- a/server/controllers/article/delete.php +++ b/server/controllers/article/delete.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/delete Delete article - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete article * diff --git a/server/controllers/article/edit-topic.php b/server/controllers/article/edit-topic.php index 88468014..0087e51b 100755 --- a/server/controllers/article/edit-topic.php +++ b/server/controllers/article/edit-topic.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/edit-topic Edit topic - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit topic * diff --git a/server/controllers/article/edit.php b/server/controllers/article/edit.php index d5d76109..e5c1a50e 100755 --- a/server/controllers/article/edit.php +++ b/server/controllers/article/edit.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/edit Edit article - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit a article * diff --git a/server/controllers/article/get-all.php b/server/controllers/article/get-all.php index 59e5fd42..847400b4 100755 --- a/server/controllers/article/get-all.php +++ b/server/controllers/article/get-all.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /article/get-all Get all articles - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get all articles * diff --git a/server/controllers/staff/add.php b/server/controllers/staff/add.php index eed23198..3d06a620 100755 --- a/server/controllers/staff/add.php +++ b/server/controllers/staff/add.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /staff/add Add staff - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add staff * diff --git a/server/controllers/staff/assign-ticket.php b/server/controllers/staff/assign-ticket.php index ffab05c5..a72b6218 100755 --- a/server/controllers/staff/assign-ticket.php +++ b/server/controllers/staff/assign-ticket.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /staff/assign-ticket Assign ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Assign ticket * diff --git a/server/controllers/staff/delete.php b/server/controllers/staff/delete.php index 3fcadee9..6a5c7db2 100755 --- a/server/controllers/staff/delete.php +++ b/server/controllers/staff/delete.php @@ -4,7 +4,7 @@ use RedBeanPHP\Facade as RedBean; /** * @api {post} /staff/delete Delete staff - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete staff * diff --git a/server/controllers/staff/edit.php b/server/controllers/staff/edit.php index ec7a5087..60845eeb 100755 --- a/server/controllers/staff/edit.php +++ b/server/controllers/staff/edit.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/edit Edit staff - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit staff * diff --git a/server/controllers/staff/get-all-tickets.php b/server/controllers/staff/get-all-tickets.php index c4b8f170..abe1ff88 100755 --- a/server/controllers/staff/get-all-tickets.php +++ b/server/controllers/staff/get-all-tickets.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/get-all-tickets Get all tickets - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get all tickets * diff --git a/server/controllers/staff/get-all.php b/server/controllers/staff/get-all.php index f0b021e4..aadc83af 100755 --- a/server/controllers/staff/get-all.php +++ b/server/controllers/staff/get-all.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/get-all Get all staffs - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get all staffs * diff --git a/server/controllers/staff/get-new-tickets.php b/server/controllers/staff/get-new-tickets.php index c469a0ff..b0e2e6e2 100755 --- a/server/controllers/staff/get-new-tickets.php +++ b/server/controllers/staff/get-new-tickets.php @@ -4,7 +4,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/get-new-tickets Get new tickets - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get new tickets * diff --git a/server/controllers/staff/get-tickets.php b/server/controllers/staff/get-tickets.php index fdb2335c..0d69af59 100755 --- a/server/controllers/staff/get-tickets.php +++ b/server/controllers/staff/get-tickets.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/get-tickets Get tickets - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get tickets * diff --git a/server/controllers/staff/get.php b/server/controllers/staff/get.php index ee2363ae..64423de7 100755 --- a/server/controllers/staff/get.php +++ b/server/controllers/staff/get.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /staff/get Get staff - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get staff * @@ -19,13 +19,14 @@ DataValidator::with('CustomValidations', true); * @apiUse NO_PERMISSION * * @apiSuccess {Object} data Information about a staff member - * @apiSuccess {String} data.name Staff id - * @apiSuccess {String} data.email Staff id - * @apiSuccess {String} data.profilePic Staff id - * @apiSuccess {Number} data.level Staff id - * @apiSuccess {Boolean} data.staff Staff id + * @apiSuccess {String} data.name Name of the staff member + * @apiSuccess {String} data.email Elmail of the staff member + * @apiSuccess {String} data.profilePic Profile pic filename of staff member + * @apiSuccess {Number} data.level Level of staff member + * @apiSuccess {Boolean} data.staff Indicates that it is a staff (always true) * @apiSuccess {[Department](#api-Data_Structures-ObjectDepartment)[]} data.departments Array of departments that has assigned. * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data.tickets Array of tickets that has assigned. + * @apiSuccess {Boolean} data.sendEmailOnNewTicket Indicates if this member receives a mail when a ticket is created. * */ diff --git a/server/controllers/staff/last-events.php b/server/controllers/staff/last-events.php index 27bcc172..f13bd1df 100755 --- a/server/controllers/staff/last-events.php +++ b/server/controllers/staff/last-events.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/last-events Get last events - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get last events * diff --git a/server/controllers/staff/search-tickets.php b/server/controllers/staff/search-tickets.php index 7f2f08a9..f90106d9 100755 --- a/server/controllers/staff/search-tickets.php +++ b/server/controllers/staff/search-tickets.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /staff/search-tickets Search tickets - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Search tickets * diff --git a/server/controllers/staff/un-assign-ticket.php b/server/controllers/staff/un-assign-ticket.php index 09cb8112..48fe6dc6 100755 --- a/server/controllers/staff/un-assign-ticket.php +++ b/server/controllers/staff/un-assign-ticket.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /staff/un-assign-ticket Un-assign ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Un-assign ticket * diff --git a/server/controllers/system/add-api-key.php b/server/controllers/system/add-api-key.php index 40bdc307..d86d9e46 100755 --- a/server/controllers/system/add-api-key.php +++ b/server/controllers/system/add-api-key.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/add-api-key Add APIKey - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add APIKey * diff --git a/server/controllers/system/add-department.php b/server/controllers/system/add-department.php index b042d4c5..2307b2fc 100755 --- a/server/controllers/system/add-department.php +++ b/server/controllers/system/add-department.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/add-department Add department - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add department * diff --git a/server/controllers/system/backup-database.php b/server/controllers/system/backup-database.php index 3fe9d2fd..e757b27b 100755 --- a/server/controllers/system/backup-database.php +++ b/server/controllers/system/backup-database.php @@ -3,7 +3,7 @@ use Ifsnop\Mysqldump as IMysqldump; /** * @api {post} /system/backup-database Backup database - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Backup database * diff --git a/server/controllers/system/check-requirements.php b/server/controllers/system/check-requirements.php index c9b9ada1..5eb35cb2 100755 --- a/server/controllers/system/check-requirements.php +++ b/server/controllers/system/check-requirements.php @@ -2,7 +2,7 @@ /** * @api {post} /system/check-requirements Checks requirements - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Check requirements * diff --git a/server/controllers/system/csv-import.php b/server/controllers/system/csv-import.php index 63c205ae..6943f717 100755 --- a/server/controllers/system/csv-import.php +++ b/server/controllers/system/csv-import.php @@ -2,7 +2,7 @@ /** * @api {post} /system/csv-import CSV import - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName CSV import * diff --git a/server/controllers/system/delete-all-users.php b/server/controllers/system/delete-all-users.php index 1f603fc4..4f378a6b 100755 --- a/server/controllers/system/delete-all-users.php +++ b/server/controllers/system/delete-all-users.php @@ -3,7 +3,7 @@ use RedBeanPHP\Facade as RedBean; /** * @api {post} /system/delete-all-users Delete all users - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete all users * diff --git a/server/controllers/system/delete-api-key.php b/server/controllers/system/delete-api-key.php index 382b00c6..c26feec5 100755 --- a/server/controllers/system/delete-api-key.php +++ b/server/controllers/system/delete-api-key.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/delete-api-key Delete APIKey - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete APIKey * diff --git a/server/controllers/system/delete-department.php b/server/controllers/system/delete-department.php index 772fedde..00665746 100755 --- a/server/controllers/system/delete-department.php +++ b/server/controllers/system/delete-department.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /system/delete-department Delete department - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete department * diff --git a/server/controllers/system/disable-registration.php b/server/controllers/system/disable-registration.php index f4c9d459..f6cc45bd 100755 --- a/server/controllers/system/disable-registration.php +++ b/server/controllers/system/disable-registration.php @@ -2,7 +2,7 @@ /** * @api {post} /system/disable-registration Disable registration - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Disable registration * diff --git a/server/controllers/system/disable-user-system.php b/server/controllers/system/disable-user-system.php index 6256a1f8..b1245c94 100755 --- a/server/controllers/system/disable-user-system.php +++ b/server/controllers/system/disable-user-system.php @@ -2,7 +2,7 @@ /** * @api {post} /system/disable-user-system Disable user system - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Disable user system * diff --git a/server/controllers/system/download.php b/server/controllers/system/download.php index 8bcbf4ab..9090f0ce 100755 --- a/server/controllers/system/download.php +++ b/server/controllers/system/download.php @@ -4,7 +4,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {get} /system/download Download file - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Download file * @@ -16,6 +16,7 @@ use Respect\Validation\Validator as DataValidator; * * @apiParam {String} file The filename to be downloaded. * + * @apiError 403 You have no permission to access the file. * * @apiSuccess {Object} file File content * diff --git a/server/controllers/system/edit-department.php b/server/controllers/system/edit-department.php index b6aaa1ef..29534f50 100755 --- a/server/controllers/system/edit-department.php +++ b/server/controllers/system/edit-department.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /system/edit-department Edit department - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit department * diff --git a/server/controllers/system/edit-mail-template.php b/server/controllers/system/edit-mail-template.php index 5fc8d077..80f0140f 100755 --- a/server/controllers/system/edit-mail-template.php +++ b/server/controllers/system/edit-mail-template.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/edit-mail-template Edit mail template - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit mail template * diff --git a/server/controllers/system/edit-settings.php b/server/controllers/system/edit-settings.php index 2593b1da..879a8f12 100755 --- a/server/controllers/system/edit-settings.php +++ b/server/controllers/system/edit-settings.php @@ -2,7 +2,7 @@ /** * @api {post} /system/edit-settings Edit settings - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit settings * diff --git a/server/controllers/system/enable-registration.php b/server/controllers/system/enable-registration.php index ea2b601d..2d6135dd 100755 --- a/server/controllers/system/enable-registration.php +++ b/server/controllers/system/enable-registration.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/enable-registration Enable registration - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Enable registration * diff --git a/server/controllers/system/enable-user-system.php b/server/controllers/system/enable-user-system.php index c431fe39..d1d96c03 100755 --- a/server/controllers/system/enable-user-system.php +++ b/server/controllers/system/enable-user-system.php @@ -2,7 +2,7 @@ /** * @api {post} /system/enable-user-system Enable user system - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Enable user system * diff --git a/server/controllers/system/get-api-keys.php b/server/controllers/system/get-api-keys.php index c61aa516..988e0e81 100755 --- a/server/controllers/system/get-api-keys.php +++ b/server/controllers/system/get-api-keys.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/get-api-keys Get APIKeys - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get APIKeys * diff --git a/server/controllers/system/get-logs.php b/server/controllers/system/get-logs.php index c842003d..7bbb2def 100755 --- a/server/controllers/system/get-logs.php +++ b/server/controllers/system/get-logs.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/get-logs Get logs - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get logs * diff --git a/server/controllers/system/get-mail-templates.php b/server/controllers/system/get-mail-templates.php index e4447319..fd556d68 100755 --- a/server/controllers/system/get-mail-templates.php +++ b/server/controllers/system/get-mail-templates.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/get-mail-templates Get mail templates - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get mail templates * diff --git a/server/controllers/system/get-settings.php b/server/controllers/system/get-settings.php index 9ade4956..947d87a1 100755 --- a/server/controllers/system/get-settings.php +++ b/server/controllers/system/get-settings.php @@ -2,7 +2,7 @@ /** * @api {post} /system/get-settings Get settings - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get settings * diff --git a/server/controllers/system/get-stats.php b/server/controllers/system/get-stats.php index 6bc63d80..3dfb1f2f 100755 --- a/server/controllers/system/get-stats.php +++ b/server/controllers/system/get-stats.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/get-stats Get stats - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get stats * diff --git a/server/controllers/system/init-admin.php b/server/controllers/system/init-admin.php index 1648fa0f..773b7995 100755 --- a/server/controllers/system/init-admin.php +++ b/server/controllers/system/init-admin.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /system/init-admin Init admin - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Init admin * diff --git a/server/controllers/system/init-database.php b/server/controllers/system/init-database.php index 8220ede4..dd21c026 100755 --- a/server/controllers/system/init-database.php +++ b/server/controllers/system/init-database.php @@ -4,7 +4,7 @@ use RedBeanPHP\Facade as RedBean; /** * @api {post} /system/init-database Init database - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Init database * diff --git a/server/controllers/system/init-settings.php b/server/controllers/system/init-settings.php index 7c820d5b..8ec4e583 100755 --- a/server/controllers/system/init-settings.php +++ b/server/controllers/system/init-settings.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /system/init-settings Init settings - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Init settings * @@ -17,6 +17,14 @@ DataValidator::with('CustomValidations', true); * @apiParam {String} language Indicates the default language of the system. * @apiParam {String} user-system-enabled Indicates if the user system should be enabled. * @apiParam {String} registration Indicates if the registration should be enabled. + * @apiParam {String} no-reply-email Email from where automated emails will be sent. + * @apiParam {String} smtp-host SMTP Server address. + * @apiParam {String} smtp-port SMTP Server port. + * @apiParam {String} smtp-user SMTP Authentication User. + * @apiParam {String} smtp-pass SMTP Authentication Password. + * @apiParam {String} allow-attachments Indicates if files can be attached to tickets and comments. + * @apiParam {String} title Title of the support center + * @apiParam {String} url Url of the frontend client. * * @apiUse INVALID_LANGUAGE * @apiUse INIT_SETTINGS_DONE diff --git a/server/controllers/system/installation-done.php b/server/controllers/system/installation-done.php index fd75c22f..74ebaaff 100755 --- a/server/controllers/system/installation-done.php +++ b/server/controllers/system/installation-done.php @@ -3,7 +3,7 @@ use RedBeanPHP\Facade as RedBean; /** * @api {post} /system/installation-done Installation done - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Installation done * diff --git a/server/controllers/system/recover-mail-template.php b/server/controllers/system/recover-mail-template.php index 9912c5d5..399f55f6 100755 --- a/server/controllers/system/recover-mail-template.php +++ b/server/controllers/system/recover-mail-template.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /system/recover-mail-template Recover mail template - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Recover mail template * diff --git a/server/controllers/ticket/add-custom-response.php b/server/controllers/ticket/add-custom-response.php index 919cd104..806798fc 100755 --- a/server/controllers/ticket/add-custom-response.php +++ b/server/controllers/ticket/add-custom-response.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/add-custom-response Add custom responses - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Add a custom response * diff --git a/server/controllers/ticket/change-department.php b/server/controllers/ticket/change-department.php index 89fb1158..22679a0d 100755 --- a/server/controllers/ticket/change-department.php +++ b/server/controllers/ticket/change-department.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/change-department Change department - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Change department * diff --git a/server/controllers/ticket/change-priority.php b/server/controllers/ticket/change-priority.php index 65ed9117..cbd2dbc9 100755 --- a/server/controllers/ticket/change-priority.php +++ b/server/controllers/ticket/change-priority.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /ticket/change-priority Change priority - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Change priority * diff --git a/server/controllers/ticket/check.php b/server/controllers/ticket/check.php index 293ed2a8..853c90ff 100755 --- a/server/controllers/ticket/check.php +++ b/server/controllers/ticket/check.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/check Check ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Check ticket * diff --git a/server/controllers/ticket/close.php b/server/controllers/ticket/close.php index e3b86dc4..840654e1 100755 --- a/server/controllers/ticket/close.php +++ b/server/controllers/ticket/close.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/close Close ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Close * diff --git a/server/controllers/ticket/comment.php b/server/controllers/ticket/comment.php index 3ec983ec..6f26b214 100755 --- a/server/controllers/ticket/comment.php +++ b/server/controllers/ticket/comment.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/comment Comment ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Comment ticket * diff --git a/server/controllers/ticket/create.php b/server/controllers/ticket/create.php index fab7335f..891116a0 100755 --- a/server/controllers/ticket/create.php +++ b/server/controllers/ticket/create.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/create Create ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Create ticket * diff --git a/server/controllers/ticket/delete-custom-response.php b/server/controllers/ticket/delete-custom-response.php index e7de30b0..c816f153 100755 --- a/server/controllers/ticket/delete-custom-response.php +++ b/server/controllers/ticket/delete-custom-response.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/delete-custom-response Delete custom response - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete custom response * diff --git a/server/controllers/ticket/edit-custom-response.php b/server/controllers/ticket/edit-custom-response.php index e242ddad..78750312 100755 --- a/server/controllers/ticket/edit-custom-response.php +++ b/server/controllers/ticket/edit-custom-response.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/edit-custom-response Edit custom response - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit custom response * diff --git a/server/controllers/ticket/get-custom-responses.php b/server/controllers/ticket/get-custom-responses.php index 081866c5..6a5c219e 100755 --- a/server/controllers/ticket/get-custom-responses.php +++ b/server/controllers/ticket/get-custom-responses.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/get-custom-responses Get custom responses - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get custom responses * diff --git a/server/controllers/ticket/get.php b/server/controllers/ticket/get.php index 8b62bad1..c92a141d 100755 --- a/server/controllers/ticket/get.php +++ b/server/controllers/ticket/get.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** * @api {post} /ticket/get Get ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get ticket * diff --git a/server/controllers/ticket/re-open.php b/server/controllers/ticket/re-open.php index 8887c912..47fffa04 100755 --- a/server/controllers/ticket/re-open.php +++ b/server/controllers/ticket/re-open.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /ticket/re-open Reopen ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Reopen ticket * diff --git a/server/controllers/ticket/seen.php b/server/controllers/ticket/seen.php index 48858fa1..c5693141 100755 --- a/server/controllers/ticket/seen.php +++ b/server/controllers/ticket/seen.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /ticket/seen See ticket - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName See ticket * diff --git a/server/controllers/user/ban.php b/server/controllers/user/ban.php index 45bb0980..b80ff0d6 100755 --- a/server/controllers/user/ban.php +++ b/server/controllers/user/ban.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /user/ban Ban email - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Ban email * diff --git a/server/controllers/user/check-session.php b/server/controllers/user/check-session.php index ba2b92be..fd119da2 100755 --- a/server/controllers/user/check-session.php +++ b/server/controllers/user/check-session.php @@ -2,7 +2,7 @@ /** * @api {post} /user/check-session Check session - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Check session * diff --git a/server/controllers/user/delete.php b/server/controllers/user/delete.php index 91fc85da..8787d1bb 100755 --- a/server/controllers/user/delete.php +++ b/server/controllers/user/delete.php @@ -4,7 +4,7 @@ use RedBeanPHP\Facade as RedBean; /** * @api {post} /user/delete Delete user - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Delete user * diff --git a/server/controllers/user/edit-email.php b/server/controllers/user/edit-email.php index da0c4cfc..3aba96a7 100755 --- a/server/controllers/user/edit-email.php +++ b/server/controllers/user/edit-email.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /user/edit-email Edit email - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit email * diff --git a/server/controllers/user/edit-password.php b/server/controllers/user/edit-password.php index 99f3013e..3a173d00 100755 --- a/server/controllers/user/edit-password.php +++ b/server/controllers/user/edit-password.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /user/edit-password Edit password - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Edit password * diff --git a/server/controllers/user/get-user.php b/server/controllers/user/get-user.php index 98b20565..101be6c0 100755 --- a/server/controllers/user/get-user.php +++ b/server/controllers/user/get-user.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /user/get-user Get user information - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get user information * diff --git a/server/controllers/user/get-users.php b/server/controllers/user/get-users.php index 080b39a1..cafaca92 100755 --- a/server/controllers/user/get-users.php +++ b/server/controllers/user/get-users.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /user/get-users Get users list - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get users list * diff --git a/server/controllers/user/get.php b/server/controllers/user/get.php index c313a0c0..a36dfeb1 100755 --- a/server/controllers/user/get.php +++ b/server/controllers/user/get.php @@ -4,7 +4,7 @@ DataValidator::with('CustomValidations', true); /** * @api {post} /user/get Get my information - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get my Information * diff --git a/server/controllers/user/list-ban.php b/server/controllers/user/list-ban.php index be1b6dd5..97799b27 100755 --- a/server/controllers/user/list-ban.php +++ b/server/controllers/user/list-ban.php @@ -3,7 +3,7 @@ use Respect\Validation\Validator as DataValidator; /** * @api {post} /user/list-ban Get ban list - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Get ban list * diff --git a/server/controllers/user/login.php b/server/controllers/user/login.php index 180259d9..899cb5fd 100755 --- a/server/controllers/user/login.php +++ b/server/controllers/user/login.php @@ -2,7 +2,7 @@ /** * @api {post} /user/login Login - * @apiVersion 4.0.0 + * @apiVersion 4.1.0 * * @apiName Login * diff --git a/server/controllers/user/logout.php b/server/controllers/user/logout.php index a13f1817..d02f448d 100755 --- a/server/controllers/user/logout.php +++ b/server/controllers/user/logout.php @@ -1,7 +1,7 @@