Skip to content

0.0.6

Compare
Choose a tag to compare
@ajself ajself released this 12 Nov 22:05
· 44 commits to master since this release

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")