Ideal API client workflow
Step 1: Send markup
Section titled “Step 1: Send markup”The first request should send page markup. The Quant service will respond with detected assets (e.g images, stylesheets, etc) and include existing MD5 values if the files already exist in Quant.
An example content payload:
{ "url" : "/", "content" : "<html><head><script src='/path/to/script.js'></script><link rel='stylesheet' href='/path/to/styles.css'></head><body><h1>Welcome!</h1><img src='/path/to/image.jpeg?itok=aB33k'><form action='/contact-us'></form></body></html>", "published" : true,}