SHARE
TWEET

Untitled

a guest Sep 12th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1) New Fee for a month
  2.   localhost:3000/api/fees/new
  3.  
  4.   Body:-
  5.   {
  6.     "parent_group": "jxdmgt5i",
  7.     "date": "01-2015"
  8. }
  9.  
  10.  
  11. Resp:-
  12. {
  13.     "fee_collected_status": [
  14.         {
  15.             "_id": "5d6b795e3d37ef3aeaaa8486",
  16.             "student_id": "5d13c24108383c00171e25ac",
  17.             "submitted": false,
  18.             "meta_data": "",
  19.             "plan": "",
  20.             "amount": ""
  21.         },
  22.         {
  23.             "_id": "5d6b795e3d37ef3aeaaa8485",
  24.             "student_id": "5d148988330c7a0017cb17ff",
  25.             "submitted": false,
  26.             "meta_data": "",
  27.             "plan": "",
  28.             "amount": ""
  29.         }
  30.     ],
  31.     "_id": "5d6b795e3d37ef3aeaaa8484",
  32.     "parent_group": "jxdmgt5i",
  33.     "date": "01-2015",
  34.     "__v": 0
  35. }
  36.  
  37.  
  38.  
  39. 2) Fees Status
  40.  
  41. localhost:3000/api/fees/status
  42.  
  43. Body:-
  44. {
  45.     "parent_group": "jxdmgt5i",
  46.     "date": "01-2015"
  47. }
  48.  
  49.  
  50. If exists?
  51.  
  52. Response code 200
  53. {
  54.     "fee_collected_status": [
  55.         {
  56.             "_id": "5d6b795e3d37ef3aeaaa8486",
  57.             "student_id": "5d13c24108383c00171e25ac",
  58.             "submitted": false,
  59.             "meta_data": "",
  60.             "plan": "",
  61.             "amount": ""
  62.         },
  63.         {
  64.             "_id": "5d6b795e3d37ef3aeaaa8485",
  65.             "student_id": "5d148988330c7a0017cb17ff",
  66.             "submitted": false,
  67.             "meta_data": "",
  68.             "plan": "",
  69.             "amount": ""
  70.         }
  71.     ],
  72.     "_id": "5d6b795e3d37ef3aeaaa8484",
  73.     "parent_group": "jxdmgt5i",
  74.     "date": "01-2015",
  75.     "__v": 0,
  76.     "status_code": 200
  77. }
  78.  
  79. If that record doesnt exist
  80. Response Code 404
  81.  
  82. {
  83.     "_id": "random_123",
  84.     "parent_group": "jxdmgt5i",
  85.     "date": "01-2045",
  86.     "fee_collected_status": [],
  87.     "status_code": 404
  88. }
  89.  
  90.  
  91.  
  92. 3) Pay fees
  93. Body:-
  94. {
  95.     "parent_group": "jxdmgt5i",
  96.     "date": "01-2015",
  97.     "student_id": "5d13c24108383c00171e25ac",
  98.     "amount": "1212" .  HARCODE AMUNT AS OF NOW
  99. }
  100.  
  101. Resp:-
  102. {
  103.     "fee_collected_status": [
  104.         {
  105.             "_id": "5d6b795e3d37ef3aeaaa8486",
  106.             "student_id": "5d13c24108383c00171e25ac",
  107.             "submitted": true,
  108.             "meta_data": "",
  109.             "plan": "monthly",
  110.             "amount": "1212"
  111.         },
  112.         {
  113.             "_id": "5d6b795e3d37ef3aeaaa8485",
  114.             "student_id": "5d148988330c7a0017cb17ff",
  115.             "submitted": false,
  116.             "meta_data": "",
  117.             "plan": "",
  118.             "amount": ""
  119.         }
  120.     ],
  121.     "_id": "5d6b795e3d37ef3aeaaa8484",
  122.     "parent_group": "jxdmgt5i",
  123.     "date": "01-2015",
  124.     "__v": 0
  125. }
  126.  
  127. 4) Custom Pay
  128. API:- localhost:3000/api/fees/custom-pay
  129.  
  130. Body
  131. {
  132.     "parent_group": "jxdmgt5i",
  133.     "date1": "01-2015",   //Starting Date
  134.     "date2": "08-2015",   //Ending Date
  135.     "student_id": "5d13c24108383c00171e25ac",
  136.     "date" : "01-2015",  //Jis Window se custom pay kr rha
  137.     "amount": "12212" //Rupees in string, Dont allow to press . (Paise me entry na ho)
  138. }
  139.  
  140.  
  141. Response:-
  142. This is the fee sheet of the month he is currently is
  143. {
  144.     "fee_collected_status": [
  145.         {
  146.             "_id": "5d6b795e3d37ef3aeaaa8486",
  147.             "student_id": "5d13c24108383c00171e25ac",
  148.             "submitted": true,
  149.             "meta_data": "From 01-2015 to 08-2015",
  150.             "plan": "custom",
  151.             "amount": "12212"
  152.         },
  153.         {
  154.             "_id": "5d6b795e3d37ef3aeaaa8485",
  155.             "student_id": "5d148988330c7a0017cb17ff",
  156.             "submitted": false,
  157.             "meta_data": "",
  158.             "plan": "",
  159.             "amount": ""
  160.         }
  161.     ],
  162.     "_id": "5d6b795e3d37ef3aeaaa8484",
  163.     "parent_group": "jxdmgt5i",
  164.     "date": "01-2015",
  165.     "__v": 0
  166. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top