UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 4.81 kB
{"openapi":"3.0.0","info":{"contact":{"x-twitter":"CarbonDoomsday"},"description":"A real-time RESTish web API for worldwide carbon dioxide levels.","title":"CarbonDoomsDay","version":"v1","x-apisguru-categories":["open_data"],"x-logo":{"url":"https://twitter.com/CarbonDoomsday/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"https://api.carbondoomsday.com/?format=openapi","version":"2.0"}],"x-providerName":"carbondoomsday.com"},"security":[{"basic":[]}],"paths":{"/co2/":{"get":{"description":"CO2 measurements from the Mauna Loa observatory.\n\nThis data is made available through the good work of the people at the\nMauna Loa observatory. Their release notes say:\n\n These data are made freely available to the public and the scientific\n community in the belief that their wide dissemination will lead to greater\n understanding and new scientific insights.\n\nWe currently scrape the following sources:\n\n * [co2_mlo_weekly.csv]\n * [co2_mlo_surface-insitu_1_ccgg_DailyData.txt]\n * [weekly_mlo.csv]\n\nWe have daily CO2 measurements as far back as 1958.\n\nLearn about using pagination via [the 3rd party documentation].\n\n[co2_mlo_weekly.csv]: https://www.esrl.noaa.gov/gmd/webdata/ccgg/trends/co2_mlo_weekly.csv\n[co2_mlo_surface-insitu_1_ccgg_DailyData.txt]: ftp://aftp.cmdl.noaa.gov/data/trace_gases/co2/in-situ/surface/mlo/co2_mlo_surface-insitu_1_ccgg_DailyData.txt\n[weekly_mlo.csv]: http://scrippsco2.ucsd.edu/sites/default/files/data/in_situ_co2/weekly_mlo.csv\n[the 3rd party documentation]: http://www.django-rest-framework.org/api-guide/pagination/#pagenumberpagination","operationId":"co2_list","parameters":[{"description":"","in":"query","name":"ppm","required":false,"schema":{"type":"number"}},{"description":"","in":"query","name":"date","required":false,"schema":{"type":"string"}},{"description":"Multiple values may be separated by commas.","in":"query","name":"date__range","required":false,"schema":{"type":"string"}},{"description":"Which field to use when ordering the results.","in":"query","name":"ordering","required":false,"schema":{"type":"string"}},{"description":"A page number within the paginated result set.","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Number of results to return per page.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"count":{"type":"integer"},"next":{"format":"uri","type":"string"},"previous":{"format":"uri","type":"string"},"results":{"items":{"$ref":"#/components/schemas/CO2"},"type":"array"}},"required":["count","results"],"type":"object"}},"text/csv":{"schema":{"properties":{"count":{"type":"integer"},"next":{"format":"uri","type":"string"},"previous":{"format":"uri","type":"string"},"results":{"items":{"$ref":"#/components/schemas/CO2"},"type":"array"}},"required":["count","results"],"type":"object"}}}}},"tags":["co2"]},"parameters":[]},"/co2/{date}/":{"get":{"description":"CO2 measurements from the Mauna Loa observatory.\n\nThis data is made available through the good work of the people at the\nMauna Loa observatory. Their release notes say:\n\n These data are made freely available to the public and the scientific\n community in the belief that their wide dissemination will lead to greater\n understanding and new scientific insights.\n\nWe currently scrape the following sources:\n\n * [co2_mlo_weekly.csv]\n * [co2_mlo_surface-insitu_1_ccgg_DailyData.txt]\n * [weekly_mlo.csv]\n\nWe have daily CO2 measurements as far back as 1958.\n\nLearn about using pagination via [the 3rd party documentation].\n\n[co2_mlo_weekly.csv]: https://www.esrl.noaa.gov/gmd/webdata/ccgg/trends/co2_mlo_weekly.csv\n[co2_mlo_surface-insitu_1_ccgg_DailyData.txt]: ftp://aftp.cmdl.noaa.gov/data/trace_gases/co2/in-situ/surface/mlo/co2_mlo_surface-insitu_1_ccgg_DailyData.txt\n[weekly_mlo.csv]: http://scrippsco2.ucsd.edu/sites/default/files/data/in_situ_co2/weekly_mlo.csv\n[the 3rd party documentation]: http://www.django-rest-framework.org/api-guide/pagination/#pagenumberpagination","operationId":"co2_read","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CO2"}},"text/csv":{"schema":{"$ref":"#/components/schemas/CO2"}}}}},"tags":["co2"]},"parameters":[{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"}}]}},"servers":[{"url":"https://api.carbondoomsday.com/api"}],"components":{"securitySchemes":{"basic":{"type":"http","scheme":"basic"}},"schemas":{"CO2":{"properties":{"date":{"format":"date","title":"Date","type":"string"},"ppm":{"format":"decimal","title":"Ppm","type":"string"}},"required":["ppm","date"],"type":"object"}}}}