Title –
Looking to read tags via API, I’m glad to roll my own if I need to but I figured i’d check if there was a standardized library/resource people would point to.
Title –
Looking to read tags via API, I’m glad to roll my own if I need to but I figured i’d check if there was a standardized library/resource people would point to.
I haven't seen one I like. Key things I'd include but haven't seen anyone do:
Accept a list of tag paths in a POST, not just a single tagpath in the query params of a GET.
Enforce tag access restrictions
Include a method to also query history and deliver efficiently (column-wise, not row-wise).
Why post for list instead of url encoded get?
It’s a synchronous read, that seems like it should be a GET by rest rules?
GET responses are cacheable by default, which immediate disqualifies it as a sane HTTP verb to use for reading a tag.
Using a query parameter might be okay if your API accepts a read for a single tag path, but it's no good if you want to accept multiple.