How to get text style properties with restful API or plugin API?

REST API:

Plugin API:
Get a list of local styles, find the desired style in the array and check its properties.

Or: