Currently, it is not possible to request the rendering of a page from a rest endpoint. This can be useful for frontends lazily rendering pages (see CRISTALINT-21).
Forum discussion: https://forum.xwiki.org/t/include-optional-html-rendering-in-pages-rest-endpoint/18096