Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
wilberh committed Aug 30, 2023
1 parent 445b702 commit 5d81667
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions core/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,17 @@ class GoogleTrendApiDetail(APIView):
:returns: JSON response based API body/payload request
Example of API body/payload:
{"task": "quote", "ticker": "AAPL"
[OPTIONAL: ,"strt_dt": "2023-06-29", "end_dt": "2023-07-28"]}
{"task": "trend", "company": "Apple", "country": "us"
[OPTIONAL: ,"strt_dt": "2023-06-29", "end_dt": "2023-07-28"]}
- Stock quote:
{ "task": "quote",
"ticker": "AAPL"
[OPTIONAL: ,"strt_dt": "2023-06-29", "end_dt": "2023-07-28"]
}
- Trending News Titles with Sentiment Analysis Score:
{ "task": "trend",
"company": "Apple",
"country": "us"
[OPTIONAL: ,"strt_dt": "2023-06-29", "end_dt": "2023-07-28"]
}
"""
def post(self, request):
data = request.data
Expand Down

0 comments on commit 5d81667

Please sign in to comment.