Add REST API for toilet codes.

Maybe make this more clear by saying `code for ratio, code in results`?