Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-287

null values returned in GET request

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
    • Complexity:
      Medium

      Description

      GET requests should not return null values, but it was observed in person and address resources that null values are being returned.

      E.g person name resource:

      {
        "uuid": "4aa97864-18ba-4fc5-967b-436363be9dca",
        "display": "Annie Mark",
        "gender": "F",
        "age": 18,
        "birthdate": "1994-08-04T00:00:00.000+0530",
        "birthdateEstimated": false,
        "dead": false,
        "deathDate": null,
        "causeOfDeath": null,
        "preferredName": {
          "display": "Annie Mark",
          "uuid": "f1d54845-f1be-41eb-865e-6e96200af55a",
          "givenName": "Annie",
          "middleName": null,
          "familyName": "Mark",
          "familyName2": null,
          "voided": false,
          "links": [
            {
              "uri": "mh/ws/rest/v1/person/4aa97864-18ba-4fc5-967b-436363be9dca/name/f1d54845-f1be-41eb-865e-6e96200af55a",
              "rel": "self"
            },
            {
              "uri": "mh/ws/rest/v1/person/4aa97864-18ba-4fc5-967b-436363be9dca/name/f1d54845-f1be-41eb-865e-6e96200af55a?v=full",
              "rel": "full"
            }
          ],
          "resourceVersion": "1.8"
        }
      }
      

      E.g: Person address resource

      {
        "preferredAddress": {
          "display": "Marathalli",
          "uuid": "bdcfea0c-6dbd-43a5-96b8-28b44e0799bd",
          "preferred": true,
          "address1": "Marathalli",
          "address2": null,
          "cityVillage": null,
          "stateProvince": null,
          "country": null,
          "postalCode": null,
          "countyDistrict": null,
          "address3": null,
          "address4": null,
          "address5": null,
          "address6": "abc,def",
          "startDate": null,
          "endDate": null,
          "latitude": null,
          "longitude": null,
          "voided": false,
          "links": [
            {
              "uri": "mh/ws/rest/v1/person/4aa97864-18ba-4fc5-967b-436363be9dca/address/bdcfea0c-6dbd-43a5-96b8-28b44e0799bd",
              "rel": "self"
            }
          ]
        }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harsha89 Harsha Kumara
              Reporter:
              kavuri Sateesh Kavuri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: