From 5d816672d87f029de1122d115fd9260ac1f5a857 Mon Sep 17 00:00:00 2001 From: wilberh Date: Wed, 30 Aug 2023 10:55:13 -0400 Subject: [PATCH] update docstring --- core/api/views.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/core/api/views.py b/core/api/views.py index 6acf8b0..42d88a3 100644 --- a/core/api/views.py +++ b/core/api/views.py @@ -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