Mock API server. See /api/*.