3636 /account/{id}/ :
3737 get :
3838 operationId : retrieveUser
39- description : ' '
39+ description : ' Retrieves user information based on the id given. '
4040 parameters :
4141 - name : id
4242 in : path
5656 /charity/ :
5757 get :
5858 operationId : listCharities
59- description : ' '
59+ description : ' Returns a list of all registered charities and their details. '
6060 parameters :
6161 - name : is_approved
6262 required : false
7777 - charity
7878 post :
7979 operationId : createCharity
80- description : ' '
80+ description : ' Registration endpoint for new charities. '
8181 parameters : []
8282 requestBody :
8383 content :
@@ -102,11 +102,7 @@ paths:
102102 /charity/all-donations/ :
103103 get :
104104 operationId : getCharityDonationsCharity
105- description : ' This method returns the amount earned by each approved charity
106- till date
107-
108-
109- Example call: http://127.0.0.1:8000/charity/all-donations/'
105+ description : ' This method returns the amount earned by each approved charity till date'
110106 parameters : []
111107 responses :
112108 ' 200 ' :
@@ -120,11 +116,7 @@ paths:
120116 /charity/total-donations/ :
121117 get :
122118 operationId : getTotalDonationsCharity
123- description : ' This method returns the total amount earned by all approved charities
124- till date
125-
126-
127- Example call: http://127.0.0.1:8000/charity/total-donations/'
119+ description : ' This method returns the total amount earned by all approved charities till date'
128120 parameters : []
129121 responses :
130122 ' 200 ' :
@@ -138,7 +130,7 @@ paths:
138130 /charity/{id}/ :
139131 get :
140132 operationId : retrieveCharity
141- description : ' '
133+ description : ' Gets a specific charity\ ' s information by id '
142134 parameters :
143135 - name : id
144136 in : path
@@ -163,7 +155,7 @@ paths:
163155 - charity
164156 put :
165157 operationId : updateCharity
166- description : ' '
158+ description : ' Endpoint to modify charity information. Must be a staff to use. '
167159 parameters :
168160 - name : id
169161 in : path
@@ -199,7 +191,7 @@ paths:
199191 - charity
200192 patch :
201193 operationId : partialUpdateCharity
202- description : ' '
194+ description : ' Endpoint to modify charity information. Must be a staff to use. '
203195 parameters :
204196 - name : id
205197 in : path
@@ -235,7 +227,7 @@ paths:
235227 - charity
236228 delete :
237229 operationId : destroyCharity
238- description : ' '
230+ description : ' Endpoint to remove a charity. Must be a staff to use. '
239231 parameters :
240232 - name : id
241233 in : path
@@ -271,7 +263,7 @@ paths:
271263 /order/ :
272264 get :
273265 operationId : listDonationOrders
274- description : ' '
266+ description : ' Endpoint to get the list of all orders matching the filter. '
275267 parameters :
276268 - name : date__gte
277269 required : false
@@ -322,7 +314,7 @@ paths:
322314 - order
323315 post :
324316 operationId : createDonationOrder
325- description : ' '
317+ description : ' Creates a new order '
326318 parameters : []
327319 requestBody :
328320 content :
@@ -347,10 +339,7 @@ paths:
347339 /order/total/ :
348340 get :
349341 operationId : getTotalDonationsDonationOrder
350- description : ' This method will return the total value of all donations
351-
352-
353- Example call: http://127.0.0.1:8000/order/total-donations/'
342+ description : ' This method will return the total value of all donations'
354343 parameters : []
355344 responses :
356345 ' 200 ' :
@@ -364,7 +353,7 @@ paths:
364353 /order/{id}/ :
365354 get :
366355 operationId : retrieveDonationOrder
367- description : ' '
356+ description : ' Gets information about a specific order id '
368357 parameters :
369358 - name : id
370359 in : path
@@ -419,7 +408,7 @@ paths:
419408 - order
420409 put :
421410 operationId : updateDonationOrder
422- description : ' '
411+ description : ' Updates an order\ ' s information by id. '
423412 parameters :
424413 - name : id
425414 in : path
@@ -485,7 +474,7 @@ paths:
485474 - order
486475 patch :
487476 operationId : partialUpdateDonationOrder
488- description : ' '
477+ description : ' Updates an order\ ' s information by id. '
489478 parameters :
490479 - name : id
491480 in : path
@@ -551,7 +540,7 @@ paths:
551540 - order
552541 delete :
553542 operationId : destroyDonationOrder
554- description : ' '
543+ description : ' Removes an order by id. '
555544 parameters :
556545 - name : id
557546 in : path
@@ -603,10 +592,7 @@ paths:
603592 /total-donations/ :
604593 get :
605594 operationId : getTotalDonationsDonationOrder
606- description : ' This method will return the total value of all donations
607-
608-
609- Example call: http://127.0.0.1:8000/order/total-donations/'
595+ description : ' This method will return the total value of all donations'
610596 parameters : []
611597 responses :
612598 ' 200 ' :
@@ -620,10 +606,7 @@ paths:
620606 /monthly-donations/ :
621607 get :
622608 operationId : getDonationsByMonthDonationOrder
623- description : ' This method will return a list of donations per month
624-
625-
626- Example call: http://127.0.0.1:8000/monthly-donations/'
609+ description : ' This method will return a list of donations per month'
627610 parameters : []
628611 responses :
629612 ' 200 ' :
@@ -653,7 +636,7 @@ paths:
653636 /api/stock/{id}/ :
654637 get :
655638 operationId : retrieveStock
656- description : ' '
639+ description : ' Gets a specific stock\ ' s information based on id '
657640 parameters :
658641 - name : id
659642 in : path
@@ -715,7 +698,7 @@ paths:
715698 - dividend
716699 post :
717700 operationId : createDividendReceived
718- description : ' '
701+ description : ' Create an entry for when dividend for a stock is added. '
719702 parameters : []
720703 requestBody :
721704 content :
@@ -748,10 +731,7 @@ paths:
748731
749732 If no start_date is specified, it will be set to the oldest date in the database.
750733
751- If no end_date is specified, it will be set to the current date.
752-
753-
754- Example call: http://127.0.0.1:8000/dividend/get_total_dividends_in_timeframe/?start_date=2025-01-02&end_date=2025-02-18'
734+ If no end_date is specified, it will be set to the current date.'
755735 parameters : []
756736 responses :
757737 ' 200 ' :
@@ -765,7 +745,7 @@ paths:
765745 /dividend/{id}/ :
766746 get :
767747 operationId : retrieveDividendReceived
768- description : ' '
748+ description : ' Returns details about a specific dividend payment by id '
769749 parameters :
770750 - name : id
771751 in : path
@@ -796,7 +776,7 @@ paths:
796776 - dividend
797777 put :
798778 operationId : updateDividendReceived
799- description : ' '
779+ description : ' Updates the dividend payment information by id. '
800780 parameters :
801781 - name : id
802782 in : path
@@ -838,7 +818,7 @@ paths:
838818 - dividend
839819 patch :
840820 operationId : partialUpdateDividendReceived
841- description : ' '
821+ description : ' Updates the dividend payment information by id. '
842822 parameters :
843823 - name : id
844824 in : path
@@ -880,7 +860,7 @@ paths:
880860 - dividend
881861 delete :
882862 operationId : destroyDividendReceived
883- description : ' '
863+ description : ' Removes a dividend payment information by id. '
884864 parameters :
885865 - name : id
886866 in : path
@@ -953,7 +933,7 @@ paths:
953933 /api/donation :
954934 post :
955935 operationId : createdonation_handler
956- description : ' '
936+ description : ' Endpoint to create a stripe session for donations. '
957937 parameters : []
958938 requestBody :
959939 content :
@@ -1115,13 +1095,7 @@ paths:
11151095 /increase-dividends/{id} :
11161096 patch :
11171097 operationId : increaseDividendsTotalUser
1118- description : ' This method increases dividends_total by the given amount
1119-
1120-
1121- Example cURL:
1122-
1123- curl -X PATCH http://127.0.0.1:8000/accounts/1/increase-dividends/ -H "Content-Type:
1124- application/json" -d "{"dividend": 100}"'
1098+ description : ' This method increases dividends_total by the given amount'
11251099 parameters :
11261100 - name : id
11271101 in : path
@@ -1152,11 +1126,7 @@ paths:
11521126 /charity/{id}/increase-donated/ :
11531127 patch :
11541128 operationId : increaseDonationsReceivedCharity
1155- description : ' This method increases donations_received by the given amount
1156-
1157-
1158- Example call: http://127.0.0.1:8000/charity/1/increase-donated/ -d "{"donation":
1159- 100}"'
1129+ description : ' This method increases donations_received by the given amount'
11601130 parameters :
11611131 - name : id
11621132 in : path
0 commit comments