WIP records: REST API addition

I can query `Format` by code and then get the `content_type`.
 :+1:  OK i will get rid off the second dictionary.