Get mapping in "flat" format

Is there a possibility to get the leaf field names in the mappings from an ES index in a flat format?
E.g.:

"message.author.firstname" : { properties... }

instead of {"message": { "author" : { "firstname" (very simplified)

Essentially, I want to build a view similar to that in Kibana Settings that gives an overview of the fields and their properties in an index:

name                                         type          format ....
message.author.firstname    string
message.author.lastname     string
......

No it's not. You;'d have to do it yourself.

That's a bit of the pity - I have also had a closer look at the official Elasticsearch-PHP client that I work with, but there is currently no such method. Maybe I'll add it myself.

PRs welcome!