Skip to content

Releases: bellycard/PopTop

0.0.12

24 Jul 17:27
Compare
Choose a tag to compare

XCode 8 support

0.0.11

08 Feb 16:01
Compare
Choose a tag to compare
  • Reindent to 2 spaces
  • Add support for POST HTTP Body parsing

0.0.10

29 Jan 16:28
Compare
Choose a tag to compare

Changes:

  • Update JSONFromFile to lazy load the JSON file
  • Add in typealias types for a more consistent API
  • Remove a single resource from the manager
  • Provide a dictionary of query string parameters to the data(_:resourceArtifacts:) call

0.0.9

11 Jan 17:41
Compare
Choose a tag to compare
  • Updated Github token

0.0.8

06 Jan 20:17
Compare
Choose a tag to compare

Changes:

  • Provide name and IDs tuple to ResourceProtocol data method

0.0.7

05 Jan 19:52
Compare
Choose a tag to compare

Changes:

  • Return multiple IDs from a URL

0.0.6

12 Nov 22:05
Compare
Choose a tag to compare

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

12 Nov 17:05
Compare
Choose a tag to compare

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

10 Nov 22:06
Compare
Choose a tag to compare

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.

0.0.3

04 Nov 16:40
Compare
Choose a tag to compare
  • Better GET Support