Releases: platosha/rest-api
v2.0.0 — Polymer v1.0 + v2.0 support (Hybrid)
New Features
- Supports both Polymer v1.0 and v2.0
Other Changes
- Removed API stubs for
offsetParamName
andlimitParamName
. They didn’t do anything useful since long ago, so not a breaking change. - Some cleanup in the demos.
v2.0.0-pre.1 — Hybrid P1 + P2 element support
2.0.0-pre.1
v0.1.0 — Transports and `fetchSingle`
New Features
Support for Custom Transport Elements
You can now supply custom request middleware in a custom transport element implementing <iron-ajax>
-similar API. This is useful for implementing complex authentication workflows, fallback behaviour and such.
Custom transports are supported both at the global <rest-api>
level and scoped inside nested <rest-api-resource>
elements.
Support for Specifying Request Headers
The headers: Object
property is now supported for specifying request headers, both for <rest-api>
and <rest-api-resource>
elements. The headers from parent elements are used to request the nested resources as well.
selectedItemId
Property and fetchSingle
Mode
You can now easily select an item by id using the selectedItemId
property.
When fetchSingle
flag is set, changing selectedItemId
will fetch the selected item directly (i. e., request /posts/1
specifically) instead of fetching the entire collection (/posts
request).
Raw Changelog
4509007 v0.1.0
0899fd5 Add support for custom transport elements
785c6fb Use parent API and resource headers in nested resources
47247bf Improve docs, add tests and demo for fetchSingle feature
c2d431f Improve demo: hide images during loading
d5d4fd0 Small bugfix so we fetch next another item if our collection has only one item.
b7266c7 Enable fetching single item from selectedItemId.
0d203a2 Added headers passthru on rest-api-resource.
d0e4a54 Added headers passthru on rest-api-resource.
dc0f4b8 Support change notifications on the selectedItem
d3bcec8 Changed variable name to selected item id.
93f39e6 Added function to set selected id to select an item.
65027d6 Rewrite to DRY in allowNonGetParams tests
867d000 Add demo for and declarative resource params
f99658c Added testcases for params and allowNonGetParams
f3cb32d Update property naming and add inheritance.
447aa81 Added flag to disable parameters on updates.
886950f Added parsing of JSON strings to enable params in tag.
128c29f Enable params subproperty changes to trigger auto-fetch
9a237b2 Add auto-fetch collection on resource params change
2a6ec50 Fix Travis by downgrading Firefox version
13c6a1d Update README.md
967c149 Added more comments to document the rest api resource tag.
69ff3be Added link to API documentation.
3cfbfa6 Add tests for nested resources auto-fetch
20bb2fe Add tests for inherited properties in the resources
e091764 Demo cleanup
d665dda Add Albums Demo link to the README
f4c413d Add Albums Demo link to the README
bfd6b83 Bower distribution: add demos
c861fac Add JSON Placeholder Albums Demo
v.0.0.1 — First Public Release
Features
- Backend request urls after REST conventions
- CRUD requests for the bound resources
- Support for automatic fetch for the root-level collections
- Automatic fetch of the 1-level nested collection on selecting an item of the root-level collection
- Ajax events with optional bubbling