Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. [
  2. {
  3. "serviceId": "urbidata",
  4. "endPoint": {
  5. "baseUrl": "https://urbi-mechelen-ego4-acc.tbnlabs.be/api/v1/",
  6. "host": "https://urbi-mechelen-ego4-acc.tbnlabs.be/",
  7. "headers": {
  8. "accept": "application/json",
  9. "content-Type": "application/json"
  10. }
  11. },
  12. "resources": [
  13. {
  14. "resourceId": "categories",
  15. "path": "resource/report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
  16. },
  17. {
  18. "resourceId": "contacts",
  19. "path": "resource/user?search=1&size=1000&source={\"query\":{\"query_string\":{\"query\":\"roles.site_id:18 AND roles.name=Stadswacht\"}}}"
  20. },
  21. {
  22. "resourceId": "neighbourhoods",
  23. "path": "resource/report_neighbourhood?size=1000"
  24. },
  25. {
  26. "resourceId": "reports",
  27. "path": "resource/report?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"query_string\":{\"query\":\"category:*\"}},{\"range\":{\"lastUpdate\":{\"gt\":\"<lastUpdate>\"}}}]}}}"
  28. },
  29. {
  30. "resourceId": "reportPost",
  31. "path": "resource/report"
  32. },
  33. {
  34. "resourceId": "reportAttachments",
  35. "path": "resource/reportAttachment"
  36. },
  37. {
  38. "resourceId": "assignments",
  39. "path": "resource/task_date?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"bool\":{\"must\":[{\"range\":{\"lastUpdate\":{\"gt\":\"<lastUpdate>\"}}},{\"range\":{\"from\":{\"gte\":\"<from>\"}}},{\"range\":{\"till\":{\"lt\":\"<till>\"}}}]}},{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"bool\":{\"must_not\":{\"exists\":{\"field\":\"ticketId\"}}}},{\"bool\":{\"must\":[{\"term\":{\"allowMultipleTickets\":false}}]}}]}},{\"term\":{\"allowMultipleTickets\":true}}]}}]}}}"
  40. },
  41. {
  42. "resourceId": "assignmentReportAttachments",
  43. "path": "resource/taskDateAttachment"
  44. },
  45. {
  46. "resourceId": "assignmentReport",
  47. "path": "resource/task_date"
  48. },
  49. {
  50. "resourceId": "assignmentCategories",
  51. "path": "resource/task_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
  52. },
  53. {
  54. "resourceId": "gasReport",
  55. "path": "resource/gas_report"
  56. },
  57. {
  58. "resourceId": "gasReportForms",
  59. "path": "resource/gas_report_form?size=1000&q=ego_id:<egoFormId>"
  60. },
  61. {
  62. "resourceId": "gasReportCategories",
  63. "path": "resource/gas_report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
  64. },
  65. {
  66. "resourceId": "gasReportSubCategories",
  67. "path": "resource/gas_report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"term\":{\"parent_id\":\"<parentId>\"}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
  68. },
  69. {
  70. "resourceId": "gasReportTickets",
  71. "path": "resource/gas_report_ticket?size=1000"
  72. },
  73. {
  74. "resourceId": "gasReportAttachments",
  75. "path": "resource/gasReportAttachment"
  76. }
  77. ]
  78. },
  79. {
  80. "serviceId": "urbilog",
  81. "endPoint": {
  82. "baseUrl": "https://urbi-dwe-mob-api.azurewebsites.net/api",
  83. "headers": {
  84. "accept": "application/json",
  85. "content-Type": "application/json"
  86. }
  87. },
  88. "resources": [
  89. {
  90. "resourceId": "logentries",
  91. "path": "logentries"
  92. }
  93. ]
  94. },
  95. {
  96. "serviceId": "urbiheatmap",
  97. "endPoint": {
  98. "baseUrl": "https://urbi-mechelen-ego4-acc.tbnlabs.be/api/v1/",
  99. "headers": {
  100. "accept": "application/json",
  101. "content-Type": "application/json"
  102. }
  103. },
  104. "resources": [
  105. {
  106. "resourceId": "heatmaplocation",
  107. "path": "resource/heatmaplocation"
  108. }
  109. ]
  110. }
  111. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement