#this equals that api
These are all suggestions - I'm not an API designer - I've just consumed good and bad API's in my time.
Things I consider a good API - USGS - http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson
A bad api example - flickr - they have numbers as strings and a stupid "root" object.
/equals?param=one¶m=two
e.g. /equals?type=LED&amount=100&watts=6&duration=60000
where duration is seconds (or milli seconds)
Would be ok with different endpoints for the different top level nodes e.g. LED / CFL Light Bulb / etc but one might be easier?
We like JSON format :D
e.g.
{
"coal" : 1 , // in m3 - could be in kgs?
"co2" : 2, // in m3?
"money" : 3 // in pennies?
}