snipe-it/app/Http/Controllers/Api
Andrea Bergamasco e03ebc3fd0 AssetTransformer refactoring, restored tests (#3407)
* Refactored AssetsTransformer

Casted all ids to int, escaped all text values,

* Added warranty_expires attribute to Asset model

$asset->warranty_expires contains a Carbon object with the warranty
expiration date. Returns null when either purchase_date or
warranty_months are not set.

* Ignoring php-cs cache files

* Restored asset tests expectations

Work in progress - tests still fail

* API controller refactoring, fixed HTTP status codes in responses

* Restored $request->get - debugging

* Added further checks in ApiAssetsCest::updateAssetWithPatch
2017-03-14 08:37:39 -07:00
..
AccessoriesController.php API improvements 2017-03-11 10:05:50 -08:00
AssetModelsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
AssetsController.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
CategoriesController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
CompaniesController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
ComponentsController.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
ConsumablesController.php Narrowed down the accessories, consumables, etc APIs for manufacturer filtering 2017-03-11 02:49:24 -08:00
CustomFieldsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
DepreciationsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
GroupsController.php Groups API starter 2017-02-01 18:50:28 -08:00
ImportController.php Assorted fixed (#3332) 2017-02-22 22:49:06 -08:00
LicensesController.php Addtional search filters for licenses API 2017-03-11 02:57:19 -08:00
LocationsController.php Added updated/created to locations API 2017-03-10 22:09:21 -08:00
ManufacturersController.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
SettingsController.php Starter API controllers 2017-01-12 19:40:20 -08:00
StatuslabelsController.php Depreciations API 2017-02-01 17:59:03 -08:00
SuppliersController.php Added searching, sorting, etc to locations API 2017-01-13 07:40:08 -08:00
UsersController.php Added last login to user menu 2017-03-03 18:28:13 -08:00