MongoDB does not use a REST interface for communication.
You will need to install a specific driver for you. Same as for MySQL or SQL Server or most other databases.
The following is a list of drivers .
The --rest
option allows you to run some basic queries and control the mongod
process. This is not a complete REST API.
source share