ProcessMaker-BE "Category Fixes"

- Se ha descomentado de la seccion "project" la linea "category"
- Se ha eliminado las secciones "category" y "categories" en el archivo "api.ini"
- Se ha modificado las URLs en el archivo ".../Services/Api/ProcessCategory.php" para que trabajen de manera normal
This commit is contained in:
Victor Saisa Lopez
2014-04-11 12:04:59 -04:00
parent b69c75403e
commit c094b15cf6
2 changed files with 8 additions and 12 deletions

View File

@@ -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()));
}
}
}
}

View File

@@ -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"