REST API , get sessions of resource name

how to do this?

http://example.org:9090/plugins/restapi/v1/sessions/resource_name

or

http://example.org:9090/plugins/restapi/v1/sessions?resource=spark

You can do it yet. The only possible way right now is to get all sessions or all sessions from a user (by username).

I would glad to see a Pull Request, if you want extend it.