[3.8.6][PHRAS-32] Add extended format option for records API responses

- [x] Add tests