Closed spencerlocks closed 1 year ago
v16.13.2
Ubuntu 20.04 LTS
v1.63.0 82cb9eb
[{ "userId": "clixqhacq00009guf9tlofdaj", "name": "Test 3", "surname": "Lockhart", "dateOfBirth": "1991-05-24", "gender": "clijqawor05ni9g7c3lvngzr1", "ethnicity": "clijqaqou05na9g7cg601fprd", "hairColor": "Black", "eyeColor": "Green", "postal": "564", "address": "Whispymound Drive", "weight": "120", "height": "5'6\"", "driversLicenseId": "clijqb61p05nq9g7ca9l99g8d", "occupation": "Testing 123" }]
The above json when posted to the import/citizens address creates a citizen correctly, but occupation is still null.
I thought that all the fields that are provided when GET a civilian would be able to be specified when importing one using POST.
I used Postman to generate POST requests to my /v1/admin/import/citizens with the json you can see in the "Describe the Bug" field.
Supported now!
Can confirm this worked :)
What version of Node.js are you using?
v16.13.2
What operating system are you using?
Ubuntu 20.04 LTS
What version of SnailyCAD are you currently using?
v1.63.0 82cb9eb
Describe the Bug
[{ "userId": "clixqhacq00009guf9tlofdaj", "name": "Test 3", "surname": "Lockhart", "dateOfBirth": "1991-05-24", "gender": "clijqawor05ni9g7c3lvngzr1", "ethnicity": "clijqaqou05na9g7cg601fprd", "hairColor": "Black", "eyeColor": "Green", "postal": "564", "address": "Whispymound Drive", "weight": "120", "height": "5'6\"", "driversLicenseId": "clijqb61p05nq9g7ca9l99g8d", "occupation": "Testing 123" }]
The above json when posted to the import/citizens address creates a citizen correctly, but occupation is still null.
Expected Behavior
I thought that all the fields that are provided when GET a civilian would be able to be specified when importing one using POST.
To Reproduce
I used Postman to generate POST requests to my /v1/admin/import/citizens with the json you can see in the "Describe the Bug" field.