point.http 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. #
  2. # Copyright 2016-present the original author or authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. ### --------------------- Point ---------------------
  17. ### 新增 Point
  18. POST http://{{dc3-manager}}/manager/point/add
  19. Accept: */*
  20. Content-Type: application/json
  21. Cache-Control: no-cache
  22. {
  23. "name": "测试位号",
  24. "type": "string",
  25. "rw": 0,
  26. "base": 0,
  27. "minimum": -999999,
  28. "maximum": 999999,
  29. "multiple": 1,
  30. "format": "%.3f",
  31. "unit": "mm",
  32. "profileId": -1,
  33. "description": "测试位号"
  34. }
  35. ### 修改 Point
  36. POST http://{{dc3-manager}}/manager/point/update
  37. Accept: */*
  38. Content-Type: application/json
  39. Cache-Control: no-cache
  40. {
  41. "id": 1,
  42. "name": "测试位号",
  43. "type": "string",
  44. "rw": 0,
  45. "base": 0,
  46. "minimum": -999999,
  47. "maximum": 999999,
  48. "multiple": 1,
  49. "format": "%.3f",
  50. "unit": "mm",
  51. "profileId": -1,
  52. "description": "测试位号"
  53. }
  54. ### 根据 ID 查询 Point
  55. GET http://{{dc3-manager}}/manager/point/id/1
  56. Accept: */*
  57. Cache-Control: no-cache
  58. ### 分页查询 Point
  59. POST http://{{dc3-manager}}/manager/point/list
  60. Accept: */*
  61. Content-Type: application/json
  62. Cache-Control: no-cache
  63. {
  64. "name": "",
  65. "page": {
  66. "current": 1,
  67. "orders": [
  68. {
  69. "column": "id",
  70. "asc": false
  71. }
  72. ]
  73. }
  74. }
  75. ### 根据 ID 删除 Point
  76. POST http://{{dc3-manager}}/manager/point/delete/1
  77. Accept: */*
  78. Content-Type: application/json
  79. Cache-Control: no-cache
  80. ### --------------------- Point Attribute ---------------------
  81. ### 新增 PointAttribute
  82. POST http://{{dc3-manager}}/manager/point_attribute/add
  83. Accept: */*
  84. Content-Type: application/json
  85. Cache-Control: no-cache
  86. {
  87. "displayName": "测试IP",
  88. "name": "ip",
  89. "type": "string",
  90. "value": "localhost",
  91. "driverId": -1,
  92. "description": "测试位号属性"
  93. }
  94. ### 修改 PointAttribute
  95. POST http://{{dc3-manager}}/manager/point_attribute/update
  96. Accept: */*
  97. Content-Type: application/json
  98. Cache-Control: no-cache
  99. {
  100. "id": 1,
  101. "displayName": "测试IP",
  102. "name": "ip",
  103. "type": "string",
  104. "value": "localhost",
  105. "driverId": -1,
  106. "description": "测试位号属性"
  107. }
  108. ### 根据 ID 查询 PointAttribute
  109. GET http://{{dc3-manager}}/manager/point_attribute/id/1
  110. Accept: */*
  111. Cache-Control: no-cache
  112. ### 分页查询 PointAttribute
  113. POST http://{{dc3-manager}}/manager/point_attribute/list
  114. Accept: */*
  115. Content-Type: application/json
  116. Cache-Control: no-cache
  117. {
  118. "displayName": "",
  119. "page": {
  120. "current": 1,
  121. "orders": [
  122. {
  123. "column": "id",
  124. "asc": false
  125. }
  126. ]
  127. }
  128. }
  129. ### 根据 ID 删除 PointAttribute
  130. POST http://{{dc3-manager}}/manager/point_attribute/delete/1
  131. Accept: */*
  132. Content-Type: application/json
  133. Cache-Control: no-cache
  134. ### --------------------- Point Attribute Config ---------------------
  135. ### 新增 PointInfo
  136. POST http://{{dc3-manager}}/manager/point_attribute_config/add
  137. Accept: */*
  138. Content-Type: application/json
  139. Cache-Control: no-cache
  140. {
  141. "pointAttributeId": 1,
  142. "value": "localhost",
  143. "deviceId": -1,
  144. "pointId": -1,
  145. "description": "测试位号配置"
  146. }
  147. ### 修改 PointInfo
  148. POST http://{{dc3-manager}}/manager/point_attribute_config/update
  149. Accept: */*
  150. Content-Type: application/json
  151. Cache-Control: no-cache
  152. {
  153. "id": 1,
  154. "pointAttributeId": 1,
  155. "value": "localhost",
  156. "deviceId": -1,
  157. "pointId": -1,
  158. "description": "测试位号配置"
  159. }
  160. ### 根据 ID 查询 PointInfo
  161. GET http://{{dc3-manager}}/manager/point_attribute_config/id/1
  162. Accept: */*
  163. Cache-Control: no-cache
  164. ### 分页查询 PointInfo
  165. POST http://{{dc3-manager}}/manager/point_attribute_config/list
  166. Accept: */*
  167. Content-Type: application/json
  168. Cache-Control: no-cache
  169. {
  170. "page": {
  171. "current": 1,
  172. "orders": [
  173. {
  174. "column": "id",
  175. "asc": false
  176. }
  177. ]
  178. }
  179. }
  180. ### 根据 ID 删除 PointInfo
  181. POST http://{{dc3-manager}}/manager/point_attribute_config/delete/1
  182. Accept: */*
  183. Content-Type: application/json
  184. Cache-Control: no-cache