tiefpunkt / thingstore

MIT License
6 stars 3 forks source link

Metric Data JSON API and Metric Model function #11

Closed ptu closed 10 years ago

tiefpunkt commented 10 years ago

Can we use the name of the metric, instead of its id, in the URL?

ptu commented 10 years ago

i wanted to avoid things like special characters and whitespaces and think IDs are more suitable for such api calls, but it implementation should be simple i guess.

tiefpunkt commented 10 years ago

I'd rather impose limits on the metric name (and maybe add another field to the metric for a "pretty" name), and use that in the in the api, instead of IDs, because we don't use them anywhere else. Seems more intuitive to me...