Skip to content

v1.0.0 Beta 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@jasonlewis jasonlewis released this 26 Aug 03:39
· 528 commits to master since this release

This is the second public beta for v1.0.0.

Noteworthy Changes

  • The vendor tree has been overhauled and will need updating in configuration files and/or .env files. The main change here is that the default standards tree used is now the unregistered tree (x).
  • A new configuration key standardsTree (or API_STANDARDS_TREE) now exists which lets you change between x, prs, and vnd trees depending on your requirements.
  • The vendor configuration key is now called subtype and API_SUBTYPE for .env files.
  • The Accept header you use will now vary depending on the standards tree you're using, e.g., Accept: application/x.yourapp.v1+json or Accept: application/prs.yourapp.v1+json.
  • Configuration keys no longer accept closures. Basic auth has since been removed as a default and will need to be configured in a service provider or bootstrap file.

Upgrading

  • If you update and receive configuration errors, make sure you grab the latest changes to the config/api.php file.
  • Make sure you update your .env file to reference the new variable names, API_STANDARDS_TREE and API_SUBTYPE.
  • Update any references to your Accept header as necessary.