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.
 
 
 

264 rivejä
6.0 KiB

  1. {
  2. "meta": {
  3. "$_GET": [
  4. {
  5. "type": "text",
  6. "name": "description"
  7. },
  8. {
  9. "type": "text",
  10. "name": "comments"
  11. },
  12. {
  13. "type": "text",
  14. "name": "partcodeid"
  15. },
  16. {
  17. "type": "text",
  18. "name": "parttypeid"
  19. },
  20. {
  21. "type": "number",
  22. "name": "createuserid"
  23. }
  24. ]
  25. },
  26. "exec": {
  27. "steps": [
  28. {
  29. "name": "api",
  30. "module": "api",
  31. "action": "send",
  32. "options": {
  33. "url": "{{$_ENV.API_BASEURL+'pns/max'}}",
  34. "schema": [
  35. {
  36. "type": "object",
  37. "name": "data",
  38. "sub": [
  39. {
  40. "type": "text",
  41. "name": "id"
  42. },
  43. {
  44. "type": "number",
  45. "name": "number"
  46. }
  47. ]
  48. },
  49. {
  50. "type": "object",
  51. "name": "headers",
  52. "sub": [
  53. {
  54. "type": "text",
  55. "name": "connection"
  56. },
  57. {
  58. "type": "text",
  59. "name": "content-length"
  60. },
  61. {
  62. "type": "text",
  63. "name": "content-type"
  64. },
  65. {
  66. "type": "text",
  67. "name": "date"
  68. }
  69. ]
  70. }
  71. ]
  72. },
  73. "output": true,
  74. "meta": [
  75. {
  76. "type": "object",
  77. "name": "data",
  78. "sub": [
  79. {
  80. "type": "text",
  81. "name": "id"
  82. },
  83. {
  84. "type": "number",
  85. "name": "number"
  86. }
  87. ]
  88. },
  89. {
  90. "type": "object",
  91. "name": "headers",
  92. "sub": [
  93. {
  94. "type": "text",
  95. "name": "connection"
  96. },
  97. {
  98. "type": "text",
  99. "name": "content-length"
  100. },
  101. {
  102. "type": "text",
  103. "name": "content-type"
  104. },
  105. {
  106. "type": "text",
  107. "name": "date"
  108. }
  109. ]
  110. }
  111. ],
  112. "outputType": "object",
  113. "metaData": {
  114. "apiUrl": {
  115. "name": "API_BASEURL",
  116. "type": "text"
  117. }
  118. }
  119. },
  120. {
  121. "name": "partnumber",
  122. "module": "core",
  123. "action": "setvalue",
  124. "options": {
  125. "key": "g_partnumber",
  126. "value": "{{$_GET.parttypeid+'-'+$_GET.partcodeid+'-'+api.data.number}}"
  127. },
  128. "meta": [],
  129. "outputType": "text",
  130. "metaData": {}
  131. },
  132. {
  133. "name": "insertpn",
  134. "module": "api",
  135. "action": "send",
  136. "options": {
  137. "url": "{{$_ENV.API_BASEURL+'pns'}}",
  138. "method": "POST",
  139. "schema": [
  140. {
  141. "type": "object",
  142. "name": "data",
  143. "sub": [
  144. {
  145. "type": "number",
  146. "name": "id"
  147. },
  148. {
  149. "type": "number",
  150. "name": "number"
  151. }
  152. ]
  153. }
  154. ],
  155. "dataType": "json",
  156. "data": {
  157. "id": null,
  158. "number": "{{api.data.number}}"
  159. }
  160. },
  161. "output": true,
  162. "meta": [
  163. {
  164. "type": "object",
  165. "name": "data",
  166. "sub": [
  167. {
  168. "type": "number",
  169. "name": "id"
  170. },
  171. {
  172. "type": "number",
  173. "name": "number"
  174. }
  175. ]
  176. }
  177. ],
  178. "outputType": "object",
  179. "metaData": {
  180. "apiUrl": {
  181. "name": "API_BASEURL",
  182. "type": "text"
  183. }
  184. }
  185. },
  186. {
  187. "name": "insertpart",
  188. "module": "api",
  189. "action": "send",
  190. "options": {
  191. "url": "{{$_ENV.API_BASEURL+'partnumbers/alt'}}",
  192. "method": "POST",
  193. "dataType": "json",
  194. "data": {
  195. "id": null,
  196. "number": "{{partnumber}}",
  197. "description": "{{$_GET.description}}",
  198. "comments": "{{$_GET.comments}}",
  199. "statusid": 4,
  200. "parttypeid": "{{$_GET.parttypeid}}",
  201. "partcodeid": "{{$_GET.partcodeid}}",
  202. "createuserid": "{{$_GET.createuserid}}"
  203. },
  204. "schema": [
  205. {
  206. "type": "object",
  207. "name": "data",
  208. "sub": [
  209. {
  210. "type": "number",
  211. "name": "id"
  212. },
  213. {
  214. "type": "text",
  215. "name": "number"
  216. },
  217. {
  218. "type": "text",
  219. "name": "description"
  220. },
  221. {
  222. "type": "text",
  223. "name": "comments"
  224. }
  225. ]
  226. }
  227. ]
  228. },
  229. "output": true,
  230. "meta": [
  231. {
  232. "type": "object",
  233. "name": "data",
  234. "sub": [
  235. {
  236. "type": "number",
  237. "name": "id"
  238. },
  239. {
  240. "type": "text",
  241. "name": "number"
  242. },
  243. {
  244. "type": "text",
  245. "name": "description"
  246. },
  247. {
  248. "type": "text",
  249. "name": "comments"
  250. }
  251. ]
  252. }
  253. ],
  254. "outputType": "object",
  255. "metaData": {
  256. "apiUrl": {
  257. "name": "API_BASEURL",
  258. "type": "text"
  259. }
  260. }
  261. }
  262. ]
  263. }
  264. }