Releases: bellycard/PopTop
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
Changes:
- Allow
:id
to be used in place of actual URL IDs like so:- "/path/to/123/example" -> "/path/to/:id/example"
Summary:
If a resource should handle all requests to a URL despite the ID then replace it with :id
.
/**
https://api.example.com/path/to/123/example
https://api.example.com/path/to/456/example
https://api.example.com/path/to/789/example
**/
// All requests above would flow into this resource
HandleResource(resourceIdentifier: "/path/to/:id/example")
0.0.5
Changes:
- Remove PopTop's internal caching.
- Utilizing protocols over class inheritance.
- Refactor Image and JSON convenience types.
Summary:
PopTop's internal caching proved to not be very useful for APIs that do not follow REST very strictly. Removing this feature allows types that inherit the ResourceProtocol to manage their own state and return relevant data as they see fit.
Also changed is how Resources are registered with PopTop. Now relying on a method instead of direct access to its internal store of Resource types.
0.0.4
The Manager has been refactored to more intelligently handle GET requests for individual resources as well as collections of resources.
Also introduced is the concept of isREST
on the Resource class. If set to false
the Manager will skip caching the resource and just return its #data()
representation.