Releases: costs-to-expect/api
Releases · costs-to-expect/api
Expanded summary queries updated
- Altered the query for the expanded summary, now begins at subcategories and shows categories without items.
- OPTIONS request not showing PATCH options.
Additional summary route
- Added an expanded-summary categories route.
Initial PATCH support and private resource types
- Initial support for PATCHing, to start /resource_types/{resource_type_id}/resources/{resource_id}/items/{item_id}.
- Added initial support for private resource types, if a valid bearer exists private resource types are shown.
- Updates to README around expected responses.
- Renamed route validation helper methods, now clearer when shown in context.
Minor tweaks
- Route corrections, some routes using unnecessary middleware.
- Total count missing from HEAD for changelog.
- Validation errors nesting fields property twice.
- Allowed values methods renamed without updating calls in create methods, throwing an error.
- Category name needs to be unique for a resource type.
- New route, request/log/monthly-requests number of logged requests per month.
Categories not global and refactoring
- Validator base class not set correctly.
Release notes for v1.07.0
- Added resource_type GET parameter to /categories route to filter results.
- Two options for changelog, markdown on github and via API.
- Added Google Analytics to landing page.
- Corrected CHANGELOG dates, I'm not from the future.
- POST to categories was not setting the selected resource type, using default value.
- Split routes up based on the middleware they require.
- Reworked how OPTIONS are generated, can now set authenticated, new method is more expandable as new verbs are supported.
- Moved request validators classes, no sit alongside route validators.
Release notes for v1.06.0
- Updated database, a category is now a child of a resource type, not global.
- Updated categories collection and category, shows the resource type that category is assigned to.
- POST/resource_types/.../item/[item_id]/category updated to look at resource type.
- POST/categories requires the resource_type_id to be set.
- Request log and Request error log now show created times.
- Minor updates to models.
Request routes
- Added the ability to POST a request error to the API.
- Added request/error-log route.
- Added request/log route.
- Reworked pagination utility class.
- Modified HEADER links for pagination.
- Removed all code referencing PATCH and update, not ready to implement yet and may modify design.
- Minor refactoring, order of method params etc.
Minor fixes
- Catch routing error, incorrectly return a 200.
- Corrected link to API from landing page.
- Added link to CHANGELOG on the landing page.
- Added latest release and version number to the landing page.
- Minor change to README.
Upgraded handling of GET/route parameters
- Corrected routes displayed in root of API.
- Split Hashids middleware, now ConvertGetParameters and ConvertRouteParameters.
- Added App\Http\Parameters\Get class to validate GET parameters, moved code from base controller.
- Added App\Http\Parameters\Route\Validate and child classes to validator route parameters.
- Updated controllers to use new App\Http\Parameters* classes.
- Minor bug fix, booleans not being checked correctly.
Sub category filtering, items route
- GET parameters are now validated, invalid values are silently removed.
- Added sub category parameter to /resource_types/{resource_type_id}/resources/{resource_id}/items.
- Minor refactoring.
Refactoring for pending features
- Added helper method to base controller to easily set usable GET parameters for collections.
- Updated the methods/logic for setting allowed values for GET parameters, it is capable of setting more than just the allowed values so all references have been updated to reflect intended usage.
- Updated the methods/logic for setting allowed values for POST parameters, it is capable of setting more than just the allowed values so all references have been updated to reflect intended usage.