SHARE
TWEET

Untitled

a guest Jan 21st, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REST resources of restful-endpoint:
  2. 1.0-SNAPSHOT
  3.  
  4. POST api/dtupay/customers:
  5.  Request:
  6.   Content-Type: application/json
  7.   Request Body: com.dtupay.monolith.Models.DTUPayUserDTO
  8. {
  9.     "accountID": "string",
  10.     "cprNumber": "string",
  11.     "firstName": "string",
  12.     "lastName": "string"
  13. }
  14.  
  15.  Response:
  16.   Content-Type: application/json
  17.   Status Codes: 200
  18.    Response Body: com.dtupay.monolith.Models.CustomerIDDTO
  19. {
  20.     "customerAccountID": "string",
  21.     "customerID": {
  22.     }
  23. }
  24.  
  25.  
  26. GET api/dtupay/customers/report:
  27.  Request:
  28.   No body
  29.   Query Param: endDate, java.lang.String
  30.   Query Param: id, java.lang.String
  31.   Query Param: startDate, java.lang.String
  32.  
  33.  Response:
  34.   Content-Type: application/json
  35.   Status Codes: 200
  36.    Response Body: java.lang.String
  37.  
  38.  
  39. GET api/dtupay/customers/{id}:
  40.  Request:
  41.   No body
  42.   Path Param: id, java.lang.String
  43.  
  44.  Response:
  45.   Content-Type: application/json
  46.   Status Codes: 200
  47.    Response Body: com.dtupay.monolith.Models.DTUPayUserDTO
  48. {
  49.     "accountID": "string",
  50.     "cprNumber": "string",
  51.     "firstName": "string",
  52.     "lastName": "string"
  53. }
  54.  
  55.  
  56. POST api/dtupay/customers/{id}/tokens:
  57.  Request:
  58.   Content-Type: application/json
  59.   Request Body: com.dtupay.monolith.Models.RequestTokenDTO
  60. {
  61.     "customerID": "string",
  62.     "numberOfTokens": 0
  63. }
  64.   Path Param: id, java.lang.String
  65.  
  66.  Response:
  67.   Content-Type: application/json
  68.   Status Codes: 200
  69.    Response Body: com.dtupay.monolith.Models.TokenListDTO
  70. {
  71.     "tokens": [
  72.         {
  73.             "customerID": {
  74.             },
  75.             "status": "ACCEPTED|REJECTED|UNUSED",
  76.             "tokenID": "string"
  77.         }
  78.     ]
  79. }
  80.  
  81.  
  82. POST api/dtupay/merchants:
  83.  Request:
  84.   Content-Type: application/json
  85.   Request Body: com.dtupay.monolith.Models.DTUPayUserDTO
  86. {
  87.     "accountID": "string",
  88.     "cprNumber": "string",
  89.     "firstName": "string",
  90.     "lastName": "string"
  91. }
  92.  
  93.  Response:
  94.   Content-Type: application/json
  95.   Status Codes: 200
  96.    Response Body: com.dtupay.monolith.Models.MerchantIDDTO
  97. {
  98.     "merchantAccountID": "string",
  99.     "merchantID": {
  100.     }
  101. }
  102.  
  103.  
  104. GET api/dtupay/merchants/report:
  105.  Request:
  106.   No body
  107.   Query Param: endDate, java.lang.String
  108.   Query Param: id, java.lang.String
  109.   Query Param: startDate, java.lang.String
  110.  
  111.  Response:
  112.   Content-Type: application/json
  113.   Status Codes: 200
  114.    Response Body: java.lang.String
  115.  
  116.  
  117. POST api/dtupay/merchants/transfer:
  118.  Request:
  119.   Content-Type: application/json
  120.   Request Body: dtupay.core.models.DTOs.PaymentDTO
  121. {
  122.     "amount": 0.0,
  123.     "description": "string",
  124.     "merchanID": {
  125.     },
  126.     "tokenID": "string"
  127. }
  128.  
  129.  Response:
  130.   Content-Type: */*
  131.   Status Codes: 200
  132.  
  133.  
  134. GET api/dtupay/merchants/{id}:
  135.  Request:
  136.   No body
  137.   Path Param: id, java.lang.String
  138.  
  139.  Response:
  140.   Content-Type: application/json
  141.   Status Codes: 200
  142.    Response Body: com.dtupay.monolith.Models.DTUPayUserDTO
  143. {
  144.     "accountID": "string",
  145.     "cprNumber": "string",
  146.     "firstName": "string",
  147.     "lastName": "string"
  148. }
  149.  
  150.  
  151. PUT api/dtupay/merchants/{id}:
  152.  Request:
  153.   Content-Type: application/json
  154.   Request Body: com.dtupay.monolith.Models.DTUPayUserDTO
  155. {
  156.     "accountID": "string",
  157.     "cprNumber": "string",
  158.     "firstName": "string",
  159.     "lastName": "string"
  160. }
  161.   Path Param: id, java.lang.String
  162.  
  163.  Response:
  164.   Content-Type: application/json
  165.   Status Codes: 200
  166.    Response Body: java.lang.String
  167.  
  168.  
  169. DELETE api/dtupay/merchants/{id}:
  170.  Request:
  171.   No body
  172.   Path Param: id, java.lang.String
  173.  
  174.  Response:
  175.   Content-Type: application/json
  176.   Status Codes: 204
  177.  
  178.  
  179. POST api/dtupay/testCustomer:
  180.  Request:
  181.   Content-Type: application/json
  182.   Request Body: com.dtupay.monolith.Models.CustomerIDDTO
  183. {
  184.     "customerAccountID": "string",
  185.     "customerID": {
  186.     }
  187. }
  188.  
  189.  Response:
  190.   Content-Type: */*
  191.   Status Codes: 204
  192.  
  193.  
  194. POST api/dtupay/testMerchant:
  195.  Request:
  196.   Content-Type: application/json
  197.   Request Body: com.dtupay.monolith.Models.MerchantIDDTO
  198. {
  199.     "merchantAccountID": "string",
  200.     "merchantID": {
  201.     }
  202. }
  203.  
  204.  Response:
  205.   Content-Type: */*
  206.   Status Codes: 204
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
Top