I want to use REST API to populate a writer document through libreoffice SDK

I have an assignment which requires me to use an API to send data data that will be used to populate a writer template document and save it… Where do I start I already have Libreoffice sdk