Generate HTML

Content negotiation is the process of the server responding to a client’s request for a specific type of representation. You need to write a formatter that makes the HTML version of the resource.

The HTMLMediaFormatter takes is configured up to add the scripts. When it is invoked it iterates through the in-memory resource and adds the links to the HTML links on the page.

Note: the injected ApiClientSettings is included below for completeness.

Unlock the next chapter
Can an HTML representation include javascript?
Yes
No
It is mandatory
All of the above