diff --git a/workflow/engine/src/ProcessMaker/Services/Api/ProcessCategory.php b/workflow/engine/src/ProcessMaker/Services/Api/ProcessCategory.php index fe4116731..21a95b880 100644 --- a/workflow/engine/src/ProcessMaker/Services/Api/ProcessCategory.php +++ b/workflow/engine/src/ProcessMaker/Services/Api/ProcessCategory.php @@ -14,7 +14,7 @@ class ProcessCategory extends Api private $formatFieldNameInUppercase = false; /** - * @url GET + * @url GET /categories */ public function doGetCategories($filter = null, $start = null, $limit = null) { @@ -31,7 +31,7 @@ class ProcessCategory extends Api } /** - * @url GET /:cat_uid + * @url GET /category/:cat_uid * * @param string $cat_uid {@min 32}{@max 32} */ @@ -50,7 +50,7 @@ class ProcessCategory extends Api } /** - * @url POST + * @url POST /category * * @param string $cat_name * @@ -68,7 +68,7 @@ class ProcessCategory extends Api } /** - * @url PUT /:cat_uid + * @url PUT /category/:cat_uid * * @param string $cat_uid {@min 32}{@max 32} * @param string $cat_name @@ -87,7 +87,7 @@ class ProcessCategory extends Api } /** - * @url DELETE /:cat_uid + * @url DELETE /category/:cat_uid * * @param string $cat_uid {@min 32}{@max 32} * @@ -102,4 +102,5 @@ class ProcessCategory extends Api throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } } -} \ No newline at end of file +} + diff --git a/workflow/engine/src/ProcessMaker/Services/api.ini b/workflow/engine/src/ProcessMaker/Services/api.ini index 92b162340..240f1dc3b 100644 --- a/workflow/engine/src/ProcessMaker/Services/api.ini +++ b/workflow/engine/src/ProcessMaker/Services/api.ini @@ -35,7 +35,7 @@ debug = 1 report-Table = "ProcessMaker\Services\Api\Project\ReportTable" sub-process= "ProcessMaker\Services\Api\Project\SubProcess" trigger-wizard = "ProcessMaker\Services\Api\Project\TriggerWizard" - ;category = "ProcessMaker\Services\Api\ProcessCategory" + category = "ProcessMaker\Services\Api\ProcessCategory" [alias: projects] project = "ProcessMaker\Services\Api\Project" @@ -70,8 +70,3 @@ debug = 1 input-document = "ProcessMaker\Services\Api\Cases\InputDocument" output-document = "ProcessMaker\Services\Api\Cases\OutputDocument" -[alias: category] - category = "ProcessMaker\Services\Api\ProcessCategory" - -[alias: categories] - category = "ProcessMaker\Services\Api\ProcessCategory" \ No newline at end of file