Getting a REST Descriptor from a service - rsd:rsd2RESTDescriptor


I was wondering if anyone can assist me here…

I would like to be able to get a REST descriptor content from a service

I see we have in the ROOT package: wm.server.rsd:rsd2RESTDescriptor. I am wondering what are the inputs like to this service.

I understand it may not be safe to call services in the root folder but this is just for our DEV box to automate certain staff