Can I print all fields in one index?

Can I print all fields in one index in 7.12?

I want to know all the name of fields.

Thanks

You can get that via the _mapping endpoint on the index.