Does anyone know if it is possible with the rest api, to copy a document library from a site into another site, or import a template?
I need to recreate sites from an empty site with 3 document libraries and 2 lists.

Does anyone know if it is possible with the rest api, to copy a document library from a site into another site, or import a template?
I need to recreate sites from an empty site with 3 document libraries and 2 lists.