Actually reading https://github.com/inertiajs/server/blob/master/src/index.ts
it seems that it expects a form-encoded version of Page from
import { Page} from "@inertiajs/core"
I have something back. Still not sure what to do with it but I guess I am making progress :)
{
"head": [
"<meta name=\"description\" content=\"Your page description\" inertia>",
"<title inertia>The Home fage from Head</title>"
],
"body": "<div id=\"app\" data-page=\"{"component":"TheHomePage","props":{},"url":""}\"> ........."
}
What I have sent :
@baseUrl = http://localhost:13714
###
# @name=preview
POST {{baseUrl}}/render HTTP/1.1
Content-Type: x-www-form-urlencoded
{
"component": "TheHomePage",
"props": {},
"url": ""
}
# component: string;
# props: PageProps & SharedProps & {
# errors: Errors & ErrorBag;
# };
# url: string;
# version: string | null;
# scrollRegions: Array<{
# top: number;
# left: number;
# }>;
###
I guess It will me a bit of time to figure out what to send exactly.