API v2 parsing and serialization routes

 * Adds a bunch of tests documenting the expected API.

Bug: T75955
Change-Id: I53ec985e94418304885e3fcbead7d6456118a89b
Merge "API v2 parsing and serialization routes"