Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Br3nda/81a70f27592d6b86fb05a7b04f509cc2 to your computer and use it in GitHub Desktop.
Save Br3nda/81a70f27592d6b86fb05a7b04f509cc2 to your computer and use it in GitHub Desktop.

Example request body

{
  "persons": {
    "Tahi": {
      "social_security__eligible_for_accommodation_supplement": {
        "2018-08": null
      },
      "age": { "2018-08": 30},
      "normally_lives_in_nz": { "2018-08": true },
      "is_resident": { "2018-08":  true },
      "has_accomodation_costs": { "2018-08":  true },
      "eligible_for_social_housing": { "2018-08": false},
      "income_below_threshold_for_accommodation_supplement": { "2018-08":  true},
      "cash_below_threshold_for_accommodation_supplement": { "2018-08": true}
    }
  },
  "families": {
  	"first": {
  		"principal_caregiver": ["Tahi"]
  	}
  },
  "titled_properties": {
    "property_1": {
      "owners": [
        "Tahi"
      ]
    }
  }
}

Example response

{
    "families": {
        "first": {
            "principal_caregiver": [
                "Tahi"
            ]
        }
    },
    "persons": {
        "Tahi": {
            "age": {
                "2018-08": 30
            },
            "cash_below_threshold_for_accommodation_supplement": {
                "2018-08": true
            },
            "eligible_for_social_housing": {
                "2018-08": false
            },
            "has_accomodation_costs": {
                "2018-08": true
            },
            "income_below_threshold_for_accommodation_supplement": {
                "2018-08": true
            },
            "is_resident": {
                "2018-08": true
            },
            "normally_lives_in_nz": {
                "2018-08": true
            },
            "social_security__eligible_for_accommodation_supplement": {
                "2018-08": true
            }
        }
    },
    "titled_properties": {
        "property_1": {
            "owners": [
                "Tahi"
            ]
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment