Site icon Hip-Hop Website Design and Development

REST API connection on another site with post information and permalink

I wanted to expand my knowledge of WP and the rest-API interested me. I have my main site (site 1) with a custom rest API endpoint and another site (site 2) which will get the data from site 1 (both running WordPress).

How would I bring over the same slug structure and create a post template for posts from site one eg: https://site1.com/posts/example to https://site2.com/posts/example getting the data from site1 and showing it on a single post template on site2.

Is it also possible to also bring the taxonomies over through the rest API endpoint from site1 over to site2?