Adding a basic search API endpoint.