There are multiple ways depending on what you need. Typically you can use perl or python (or any other scripting to programming language) to write scripts to perform the REST operations and process the data for you.
For on-demand usage, you might want to use a REST plugin for a browser (like Postman):
Postman Rest API demo - YouTube
This shows postman itself. What you will need to do is supply your spectrum username and password which will be used to authenticate the REST requests. You then need to put in the URL which is typically "http://<ONECLICK IP>:<PORTNO>/spectrum/restful/models"
and then the type would be 'POST' and then past the stuff I posted as the 'body' (the XML code).
You then submit it and it returns XML. You would need to extract the XML into something useful.
I'm not a guru with Postman and don't use it extensively but some tools might even process the output into a more-friendly output.