This is a library for handling paths. Many RESTful APIs contain resources that have variables in their paths (e.g., /things/:thing_id
). This library exposes a way to process such resource paths in a low-effort way.
While this is mostly useful for REST APIs, it could also be used, for example, to process MQTT topics containing wildcards.
There is nothing platform-specific about this library.
Examples are found in the ./examples
directory. This is the easiest way to get started.
Run tests with:
platformio test
Build examples with, for instance:
platformio ci --board=d1_mini --lib=. examples/simple
- Update version in
library.properties
andlibrary.json
. - Create a new tag with the corresponding version and push.