Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1071

OptaShift: inspect all json outputs and make all Score, LocalDate, OffsetDate, OffsetDateTime, etc pretty and non-verbose

XMLWordPrintable

    • NEW
    • NEW

      Via the swagger UI I called:

      curl -X GET "http://localhost:18080/rest/tenant/1/roster/employeeRosterView/current?p=0&n=2147483647" -H "accept: application/json"
      

      which gives

      "employeeIdToAvailabilityViewListMap": {
          "additionalProp1": [
            {
              "id": 0,
              "tenantId": 0,
              "version": 0,
              "employeeId": 0,
              "date": "string",
              "startTime": {
                "offset": {
                  "totalSeconds": 0,
                  "id": "string",
                  "rules": {
                    "fixedOffset": true,
                    "transitions": [
                      null
                    ],
                    "transitionRules": [
                      null
                    ]
                  }
                },
                "hour": 0,
                "minute": 0,
                "second": 0,
                "nano": 0
              },
              "endTime": {
                "offset": {
                  "totalSeconds": 0,
                  "id": "string",
                  "rules": {
                    "fixedOffset": true,
                    "transitions": [
                      null
                    ],
                    "transitionRules": [
                      null
                    ]
                  }
                },
                "hour": 0,
                "minute": 0,
                "second": 0,
                "nano": 0
              },
              "state": "UNAVAILABLE"
            }
          ],
      

      notice that the dateTime's are extremely verbose, instead of just something like 2017-11-15 12:34:00.

              cchianel Christopher Chianelli (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: