View-counter API. Use GET/POST /api/views.