Skip to content

Releases: costs-to-expect/api

Expanded summary queries updated

14 Nov 23:31
7a60b87
Compare
Choose a tag to compare
  • 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

14 Nov 23:11
0a4c053
Compare
Choose a tag to compare
  • Added an expanded-summary categories route.

Initial PATCH support and private resource types

10 Nov 16:27
366181c
Compare
Choose a tag to compare
  • 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

03 Nov 16:50
61121aa
Compare
Choose a tag to compare
  • 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

02 Nov 16:39
797abe0
Compare
Choose a tag to compare
  • 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

22 Oct 21:59
4b0a388
Compare
Choose a tag to compare
  • 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

14 Oct 22:02
7e0527b
Compare
Choose a tag to compare
  • 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

07 Oct 23:23
f0024b1
Compare
Choose a tag to compare
  • 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

24 Sep 23:08
54c21b1
Compare
Choose a tag to compare
  • 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

23 Sep 20:59
4fcc0f8
Compare
Choose a tag to compare
  • 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.