You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

103 lines
2.0 KiB

  1. [
  2. {
  3. "name": "api",
  4. "module": "api",
  5. "action": "send",
  6. "options": {
  7. "url": "{{$_ENV.API_BASEURL+'pns/max'}}",
  8. "schema": [
  9. {
  10. "type": "object",
  11. "name": "data",
  12. "sub": [
  13. {
  14. "type": "number",
  15. "name": "id"
  16. },
  17. {
  18. "type": "number",
  19. "name": "number"
  20. }
  21. ]
  22. },
  23. {
  24. "type": "object",
  25. "name": "headers",
  26. "sub": [
  27. {
  28. "type": "text",
  29. "name": "connection"
  30. },
  31. {
  32. "type": "text",
  33. "name": "content-length"
  34. },
  35. {
  36. "type": "text",
  37. "name": "content-type"
  38. },
  39. {
  40. "type": "text",
  41. "name": "date"
  42. }
  43. ]
  44. }
  45. ]
  46. },
  47. "output": true,
  48. "meta": [
  49. {
  50. "type": "object",
  51. "name": "data",
  52. "sub": [
  53. {
  54. "type": "number",
  55. "name": "id"
  56. },
  57. {
  58. "type": "number",
  59. "name": "number"
  60. }
  61. ]
  62. },
  63. {
  64. "type": "object",
  65. "name": "headers",
  66. "sub": [
  67. {
  68. "type": "text",
  69. "name": "connection"
  70. },
  71. {
  72. "type": "text",
  73. "name": "content-length"
  74. },
  75. {
  76. "type": "text",
  77. "name": "content-type"
  78. },
  79. {
  80. "type": "text",
  81. "name": "date"
  82. }
  83. ]
  84. }
  85. ],
  86. "outputType": "object"
  87. },
  88. {
  89. "name": "api1",
  90. "module": "api",
  91. "action": "send",
  92. "options": {
  93. "method": "POST",
  94. "url": "{{$_ENV.API_BASEURL+'pns/'}}",
  95. "dataType": "json",
  96. "data": {
  97. "id": null,
  98. "number": "{{api.data.number + 1}}"
  99. }
  100. },
  101. "output": true
  102. }
  103. ]