Made get mapping rest response consistent.
Closes #3172