snipe-it/app/Http/Transformers
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
..
AccessoriesTransformer.php Added additional permissions for checkin/checkout buttons 2017-03-11 12:14:10 -08:00
AssetModelsTransformer.php Added Gate integration into API transformers 2017-02-08 18:24:55 -08:00
AssetsTransformer.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
CategoriesTransformer.php Fixed API gate names in tranformers for new, more granular admin stuff 2017-03-03 17:56:05 -08:00
ComponentsAssetsTransformer.php Added additional permissions for checkin/checkout buttons 2017-03-11 12:14:10 -08:00
ComponentsTransformer.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
ConsumablesTransformer.php Added additional permissions for checkin/checkout buttons 2017-03-11 12:14:10 -08:00
DatatablesTransformer.php Additional API routes and controllers for models, suppliers, users, locations and status labels 2017-01-13 04:50:20 -08:00
DepreciationsTransformer.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
GroupsTransformer.php More custom date display via API 2017-03-03 17:53:42 -08:00
ImportsTransformer.php Vue importer (#3235) 2017-01-25 21:29:23 -08:00
LicensesTransformer.php Foxed license name in licenses API 2017-03-11 02:52:50 -08:00
LocationsTransformer.php Added updated/created to locations API 2017-03-10 22:09:21 -08:00
ManufacturersTransformer.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
StatuslabelsTransformer.php Fixed API gate names in tranformers for new, more granular admin stuff 2017-03-03 17:56:05 -08:00
UsersTransformer.php Added last login to user menu 2017-03-03 18:28:13 -08:00