MongoDB HttpInterface

Hello,

If I use MongoDB Atlas it is possible to create a REST Service with Java Spring. You can to REST Request with Mongo 6.x.

But if I install Mongo 6.x on Ubuntu 20.04LTS und try to do REST requests all I get is: “It looks like you are trying to access MongoDB over HTTP on the native driver port.”
The HTTPInterace is enabled and its depracted since Mongo 3.2 or something. Is it still possible to to REST requests via Mongo 6.x. And if so, how to do it? Because enabling the httpinterface isn’t possible anymore. So it seems that it’s not possible to programm a REST API with MongoDB.