Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "serviceId": "urbidata",
- "endPoint": {
- "baseUrl": "https://urbi-mechelen-ego4-acc.tbnlabs.be/api/v1/",
- "host": "https://urbi-mechelen-ego4-acc.tbnlabs.be/",
- "headers": {
- "accept": "application/json",
- "content-Type": "application/json"
- }
- },
- "resources": [
- {
- "resourceId": "categories",
- "path": "resource/report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
- },
- {
- "resourceId": "contacts",
- "path": "resource/user?search=1&size=1000&source={\"query\":{\"query_string\":{\"query\":\"roles.site_id:18 AND roles.name=Stadswacht\"}}}"
- },
- {
- "resourceId": "neighbourhoods",
- "path": "resource/report_neighbourhood?size=1000"
- },
- {
- "resourceId": "reports",
- "path": "resource/report?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"query_string\":{\"query\":\"category:*\"}},{\"range\":{\"lastUpdate\":{\"gt\":\"<lastUpdate>\"}}}]}}}"
- },
- {
- "resourceId": "reportPost",
- "path": "resource/report"
- },
- {
- "resourceId": "reportAttachments",
- "path": "resource/reportAttachment"
- },
- {
- "resourceId": "assignments",
- "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}}]}}]}}}"
- },
- {
- "resourceId": "assignmentReportAttachments",
- "path": "resource/taskDateAttachment"
- },
- {
- "resourceId": "assignmentReport",
- "path": "resource/task_date"
- },
- {
- "resourceId": "assignmentCategories",
- "path": "resource/task_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
- },
- {
- "resourceId": "gasReport",
- "path": "resource/gas_report"
- },
- {
- "resourceId": "gasReportForms",
- "path": "resource/gas_report_form?size=1000&q=ego_id:<egoFormId>"
- },
- {
- "resourceId": "gasReportCategories",
- "path": "resource/gas_report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
- },
- {
- "resourceId": "gasReportSubCategories",
- "path": "resource/gas_report_category?size=1000&source={\"query\":{\"bool\":{\"must\":[{\"term\":{\"siteId\":18}},{\"term\":{\"parent_id\":\"<parentId>\"}},{\"exists\":{\"field\":\"publishState\"}}]}}}"
- },
- {
- "resourceId": "gasReportTickets",
- "path": "resource/gas_report_ticket?size=1000"
- },
- {
- "resourceId": "gasReportAttachments",
- "path": "resource/gasReportAttachment"
- }
- ]
- },
- {
- "serviceId": "urbilog",
- "endPoint": {
- "baseUrl": "https://urbi-dwe-mob-api.azurewebsites.net/api",
- "headers": {
- "accept": "application/json",
- "content-Type": "application/json"
- }
- },
- "resources": [
- {
- "resourceId": "logentries",
- "path": "logentries"
- }
- ]
- },
- {
- "serviceId": "urbiheatmap",
- "endPoint": {
- "baseUrl": "https://urbi-mechelen-ego4-acc.tbnlabs.be/api/v1/",
- "headers": {
- "accept": "application/json",
- "content-Type": "application/json"
- }
- },
- "resources": [
- {
- "resourceId": "heatmaplocation",
- "path": "resource/heatmaplocation"
- }
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement