Releases: costs-to-expect/api
Releases · costs-to-expect/api
Hotfix: Hasher not found
- Subcategory hasher not found when item subcategory assigned.
Publish at date and search
Added
publish_after
field added to item, POST and PATCH updated.- Tests for POSTMAN, now up to 280 tests.
- /resource-types/[resource-type]/resources/[resource]/items collection updated to not include unpublished items.
- /resource-types/[resource-type]/items collection updated to not include unpublished items.
- /summary/resource-types/[resource-type]/resources/[resource]/items updated to not include unpublished items.
- /summary/resource-types/[resource-type]/items updated to not include unpublished items.
- search support added to /summary/resource-types/[resource-type]/resources/[resource]/items
Changed
description
added to /summary/resource-types/[resource-type]/resources/[resource]/items?categories=true summarydescription
added to /summary/resource-types/[resource-type]/items?categories=true summarydescription
added to /summary/resource-types/[resource-type]/resources/[resource]/items?category=[category]&subcategories=truedescription
added to /summary/resource-types/[resource-type]/items?category=[category]&subcategories=true- Category, ItemCategorySummary and ItemSubCategorySummary transformers updated to new setup.
- Up the throttle limit.
- Don't format numbers in output, leave that to the apps.
- Moved fields validators.
- Moved route validators.
- Moved the class used to fetch GET parameters.
- Refactored the sort parameters code, added validation and the code now resides in its own class, now reusable.
- General refactoring, never happy with the design.
Fixed
- Collection parameters not being passed through to the category transformer.
- Header indents incorrect for the v1.14.3 changelog entry.
- Description missing from /categories collection.
- Pagination helper not hashing subcategory value before adding to URI.
- Sort and search conditions added to pagination URIs.
- Section value cleared in changelog parser when new release found.
- Override defaults in number_format.
Capture `source` for requests
[v1.14.2] - 2019-05-31
Added
- Offset and Limit X headers added to collections.
- If X-Source exists in request header it is saved with the request so we can start tracking sources.
- Capture the id of the user that created an item.
source
filter added to /request/access-log.source
filter added to /summary/request/access-log/monthly.
Changed
- Upgraded
RequestLog
Transformer, switching to a new system.
Hotfix
Fixed
- Item subcategory collection and single item returning incorrect results.
Sorting and new summary routes
Added
- New route /summary/resource-types.
- New route /summary/resource-types/[resource-type]/resources
- Sorting options added to /resource-types/[resource-type]/resources/[resource]/items collection.
Changed
- Content updates to the README, CHANGELOG and the landing page.
- GET parameter changed to include-resources for the resource-types route.
- GET parameter changed to include-subcategories for the categories routes.
Fixed
- Item category and Item subcategory collections were not returning a collection.
Resource type summary route and new landing page
Added
- New route /resource-types/[resource-type]/items.
- Added
include-categories
andinclude-subcategories
parameters to /resource-types/[resource-type]/items route. - Added
year
,month
,category
andsubcategory
parameters to /resource-types/[resource-type]/items route. - New route /summary/resource-types/[resource-type]/items.
- Added
resources
,years
,year
,months
,month
,categories
,category
,subcategories
andsubcategory
parameters to /summary/resource-types/[resource-type]/items route. - Added favicons for landing page.
Changed
- Updated the API landing page to point to the new website.
- Updated the README to include the new website URL.
New summary routes
Changed
- Renamed the route files, filenames relate to access, not the middleware that runs.
- Added flag to allow turning pagination on and off for collection OPTIONS requests.
- /request/log route now /request/access-log.
- /request/log/monthly-requests route now summary/request/access-log/monthly.
- /resource_types/[resource-type]/resources/[resource]/summary/tco now /summary/resource_types/[resource-type]/resources/[resource]/items.
- /resource_types/[resource-type]/resources/[resource]/summary/categories now /summary/resource_types/[resource-type]/resources/[resource]/items?category=all.
- /resource_types/[resource-type]/resources/[resource]/summary/categories/[category] now /summary/resource_types/[resource-type]/resources/[resource]/items?category=[category].
- /resource_types/[resource-type]/resources/[resource]/summary/categories/[category]/sub_categories now /summary/resource_types/[resource-type]/resources/[resource]/items?category=[category]&subcategory=all.
- /resource_types/[resource-type]/resources/[resource]/summary/categories/[category]/sub_categories/[sub-category] now /summary/resource_types/[resource-type]/resources/items?category=[category]&subcategory=[subcategory].
- /resource_types/[resource_type]/resources/[resource]/items/[item]/category/[item-category]/sub_category now /resource_types/[resource-type]/resources/[resource]/items/[item]/category/[item-category]/subcategory.
- /resource_types/[resource_type]/resources/[resource]/items/[item]/category/[item-category]/sub_category/[sub-category] now /resource_types/[resource-type]/resources/[resource]/items/[item]/category/[item-category]/sub_category/[subcategory].
- /categories/[category]/sub_categories now /categories/[category]/subcategories.
- /categories/[category]/sub_categories/[subcategory] now /categories/[category]/subcategories/[subcategory].
- resource_type switched to resource-types in all URIs
Fixed
- OPTIONS request failure when collections do not support POST.
- OPTIONS request showing DELETE when not always valid.
- OPTIONS request methods now all use the same helper methods.
- Validation incorrect for categories, wrong rule being used.
- Unique index incorrect in category table.
Removed
- Removed /request/log, see changed.
- Removed /request/log/monthly-requests, see changed.
- Removed /resource_types/[resource-type]/resources/[resource]/summary/categories, see changed.
- Removed /resource_types/[resource-type]/resources/[resource]/summary/categories/[category], see changed.
- Removed /resource_types/[resource-type]/resources/[resource]/summary/categories/[category]/sub_categories, see changed.
- Removed /resource_types/[resource_type]/resources/[resource]/items/[item]/category/[item-category]/sub_category/[subcategory], see changed
- Removed /categories/[category]/sub_categories now /categories/[category]/subcategories, see changed.
- Removed /categories/[category]/sub_categories, see changed.
- Removed /categories/[category]/sub_categories/[subcategory], see changed.
- Removed /resource_types/[resource-type]/resources/[resource]/summary/tco, see changed.
- Removed /resource_types/[resource-type]/resources/{[resource]/expanded_summary/categories.
Hide `private` categories, refactoring
- Categories linked to private resource types don't display if not authenticated.
- Updated copyright, now 2018-2019.
- Added declare(strict_types=1) to non-framework files.
- Added missing return types and method param hints.
- Moved some configuration values into
.env
, no need for them to exist in the config directly. - Removed some rogue use statements.
- Reviewed PATCH support for items, made a few minor changes to catch more errors.
- Moved helper redirects from the base controller to the utility class.
- Moved transformer classes, now sit below the models.
Tidy up show OPTIONS requests
- Updated how OPTIONS are generated for show requests, easier to define all route options.
- Updated README, setup and planned development.
Hotfix, query incorrect
- Correction to query, not using the params passed into the method.