Add code required to subclass Api in the Response Formats example

Maybe it's obvious for some but it can help new users to know they need to do that for the example to work, otherwise it will silently ignore the ```representations``` assignment.