New set of fast and modern APIs for application to application integrations based on oAuth 2.0 authentication and permissions. This API completely replaces API v1 which will be extracted from Spree core in 5.0. Platform API is built on the same foundations and technology as Storefront API that means JSON API format, Swagger (Open API) documentation and oAuth 2.0 authentication.
Platform API is the biggest and most robust API for Spree with the biggest number of API endpoints to cover all features available in Admin Panel plus more. All API v1 usage in Admin Panel was also replaced with Platform API.
Please review each of the noteworthy changes to ensure your customizations or extensions are not affected. If you are affected by a change and have any suggestions, please submit a PR to help the next person!
- Upgraded Sprockets to v4 and added support for ES6, Source Maps and Manifest.js Spark Solutions
Added caching to API v2 serialized increasing API responsivenes 3-5 times Spark Solutions
This also includes new confirmation option
Spree::Api::Config[:api_v2_cache_ttl]for the cache expiration period. Defualt value is
3600(1 hour). Cache auto-expires when record is updated, more on this topic: https://github.com/jsonapi-serializer/jsonapi-serializer#caching
You can view the full changes using Github Compare.