Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
278 lines (246 loc) · 10.5 KB

File metadata and controls

278 lines (246 loc) · 10.5 KB

Get News for Site given id

GET news/{site}/{id}.{format}

Description

This method returns a specific news item's information given a site's slug and id

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1709 Enabled Yes
Service Name news Service ID 307
Information Steward Each individual site's data steward Data Type Database
Update Frequency Realtime Cache Time 0 seconds

Notes

  • This is a 'realtime' feed. An item will be available on the api the second its up using Webhooks
  • Any value can be null

Sources

Parameters

GET news/{site}/{id}.{format}
Parameter Type Required Description
key filter yes Valid API key
site input yes Valid site slug from /resources/sites
id input yes Valid news id
callback filter no JSONP callback format

Output Formats

  • json
  • xml

Examples

GET news/{site}/{id}.{format}

Response

Field Name Type Value Description
id integer Unique news id
title string News title
description string News body
description_raw string Raw news body (includes HTML markup)
audience list Audience targeted by news item
image object Image representing the news item
id integer Unique id of image
file string Relative link to image file path in filename.{format}
alt string Image alternate text
mime string Image MIME type in "string/{format}"
size integer Image file size in bytes
width integer Image width in pixels
height integer Image height in pixels
url string Full link to image resource
site_id string Site slug as from https://api.uwaterloo.ca/v2/resources/sites.{format}
site_name string Full site name as from https://api.uwaterloo.ca/v2/resources/sites.{format}
revision_id integer Unique id of revision of news item
published date ISO 8601 formatted published date
updated date ISO 8601 formatted updated date
link string URL of news link

Any value can be null

Output

JSON

{
  "meta":{
    "requests":489,
    "timestamp":1399701947,
    "status":200,
    "message":"Request successful",
    "method_id":1709,
    "method":{
      
    }
  },
  "data":{
    "id":881,
    "title":"Do you see what I see? The new frontier of astronomy",
    "description":"Traditionally, astronomy was limited to studying objects we could see, such as the stars and planets. But a new submillimeter telescope the largest, highest and most precise of its kind will soon change that.Many of the most interesting objects in the Universe emit light in the far-infrared and submillimeter range, which is invisible to the naked eye, said astronomer Michel Fich from the University of Waterloo.The Cerro Chajnantor Atacama Telescope (CCAT) will be the largest and most powerful submillimeter telescope in the world.Michel Fich, a professor in the Department of Physics and Astronomy in the Faculty of Science, is leading a group of eight Canadian universities in an international effort to build CCAT a $150-million state-of-the-art submillimeter telescope that ll give astronomers a peek at the Universe as it was 10 to 12 billion years ago.While optical telescopes are great for observing light-emitting objects such as stars, submillimeter telescopes are perfect for probing dark, cold interstellar material in the Universe, such as black holes and primordial radiation emitted after the Big Bang.We're trying to understand our history and the origins of the universe,\" said Fich. \"We live in this galaxy and we really don't know a lot about it.\"The CCAT will help astronomers answer questions about how galaxies collide, merge, interact and evolved. It ll also help scientists learn more about the formation of planets, stars and solar systems.With a dish 25-meters in diameter CCAT is designed to capture a very wide view of space. Although it s not the first submillimeter telescope it will be substantially larger and 100 times more sensitive than its predecessor. Outfitted with a state-of-the-art camera, CCAT is expected to map the sky 1,000 times faster, and with better resolution, than the best detector in the world.The CCAT will be built 5,600 metres above sea level near the summit of Cerro Chajnantor in the Chilean Atacama desert. Submillimeter telescopes are effective only at elevations above 4000 metres as the Earth s atmosphere blocks much of this important wavelength range.In addition to gathering research data this international facility will also serve as a world-class training facility for students from more than 14 universities.CCAT is scheduled to be operational by 2020.",
    "description_raw":"<p><img alt=\"Artist rendition of the Cerro Chajnantor Atacama Telescope.\" class=\"image-sidebar-220px-wide image-right\" height=\"147\" src=\"\/science\/sites\/ca.science\/files\/styles\/sidebar-220px-wide\/public\/uploads\/images\/ccat_rendering.jpg_1.jpeg?itok=mKBlgOI1\" width=\"220\" \/>Traditionally, astronomy was limited to studying objects we could see, such as the stars and planets. But a new submillimeter telescope \u2013 the largest, highest and most precise of its kind \u2013 will soon change that.<\/p>\n<blockquote>\n\t<p>Many of the most interesting objects in the Universe emit light in the far-infrared and submillimeter range, which is invisible to the naked eye,\u201d said astronomer Michel Fich from the University of Waterloo.<\/p>\n<\/blockquote>\n<p>The Cerro Chajnantor Atacama Telescope (CCAT) will be the largest and most powerful submillimeter telescope in the world.<\/p>\n<p><a href=\"https:\/\/uwaterloo.ca\/physics-astronomy\/people-profiles\/michel-fich\">Michel Fich<\/a>, a professor in the <a href=\"https:\/\/uwaterloo.ca\/physics-astronomy\/\">Department of Physics and Astronomy<\/a> in the Faculty of Science, is leading a group of eight Canadian universities in an international effort to build CCAT \u2013 a $150-million state-of-the-art submillimeter telescope that\u2019ll give astronomers a peek at the Universe as it was 10 to 12 billion years ago.<\/p>\n<p>While optical telescopes are great for observing light-emitting objects such as stars, submillimeter telescopes are perfect for probing dark, cold interstellar material in the Universe, such as black holes and primordial radiation emitted after the Big Bang.<\/p>\n<blockquote>\n\t<p>We're trying to understand our history and the origins of the universe,\" said Fich. \"We live in this galaxy and we really don't know a lot about it.\"<\/p>\n<\/blockquote>\n<p>The CCAT will help astronomers answer questions about how galaxies collide, merge, interact and evolved. It\u2019ll also help scientists learn more about the formation of planets, stars and solar systems.<\/p>\n<p>With a dish 25-meters in diameter CCAT is designed to capture a very wide view of space. Although it\u2019s not the first submillimeter telescope it will be substantially larger and 100 times more sensitive than its predecessor. Outfitted with a state-of-the-art camera, CCAT is expected to map the sky 1,000 times faster, and with better resolution, than the best detector in the world.<\/p>\n<p>The CCAT will be built 5,600 metres above sea level near the summit of Cerro Chajnantor in the Chilean Atacama desert. Submillimeter telescopes are effective only at elevations above 4000 metres as the Earth\u2019s atmosphere blocks much of this important wavelength range.<\/p>\n<p>In addition to gathering research data this international facility will also serve as a world-class training facility for students from more than 14 universities.<\/p>\n<p>CCAT is scheduled to be operational by 2020.<\/p>",
    "audience":[
      
    ],
    "image":{
      "id":981,
      "file":"ccat_rendering.jpg_1.jpeg",
      "alt":"Artist rendition of the Cerro Chajnantor Atacama Telescope.",
      "mime":"image\/jpeg",
      "size":2403204,
      "width":2304,
      "height":1536,
      "url":"https:\/\/uwaterloo.ca\/science\/sites\/ca.science\/files\/uploads\/images\/ccat_rendering.jpg_1.jpeg"
    },
    "site_id":"science",
    "site_name":"Science",
    "revision_id":6543,
    "published":"2014-05-09T00:00:00-04:00",
    "updated":"2014-05-09T13:51:36-04:00",
    "link":"https:\/\/uwaterloo.ca\/science\/news\/do-you-see-what-i-see-new-frontier-astronomy"
  }
}