Create a new GET endpoint, /get-news, in our API, that takes in ticker as a query parameter and returns a list of News.
Example Successful API Response
GET /get-news?ticker="AAPL" HTTP/1.1
Content-Type: application/json;charset=UTF-8
[
{
"date" : "1/09/2021",
"text": "Some news text about the ticker",
"headline": "Send back headline for article",
}
]
Example Failure API Response
GET /get-news HTTP/1.1
Content-Type: application/json;charset=UTF-8
{
"error" : "1/09/2021",
}
Create a new
GET
endpoint,/get-news
, in our API, that takes inticker
as a query parameter and returns a list ofNews
.Example Successful API Response
Example Failure API Response