The response for /form/form-data rest api does not include variable name associated with the form data. This puts a serious constraint on the custom client development. Following simple changes will take care of this.
FormProperty to have getVariableName method
FormPropertyImpl to have attribute variable name
RestFormProperty to have attribute variable name and getter/setter
RestResponseFactory.createFormDataResponse to have restFormProp.setVariableName(formProp.getVariableName())
Files attached with required code.