brommycanary Posted September 11, 2020 Share Posted September 11, 2020 Hi,I'm trying to add a new MongoDB Datasource via REST v2 Webservers. I have successfully added a MySQL source, but cannot find any documentation or guidance on how to add a MongoDB source. I'm assuming it is similar but I am unsure as to the 'driverClass' to provide?Can anyone provide any help or guidance on where in the documentation to look?Thanks,Chris Link to comment Share on other sites More sharing options...
A3an Posted September 16, 2020 Share Posted September 16, 2020 Hey brommycanary,Take a look at https://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/3.12.7/ Link to comment Share on other sites More sharing options...
Solution brommycanary Posted September 17, 2020 Author Solution Share Posted September 17, 2020 I managed to work it out in the end. You provide the following:'dataSourceName' as 'MongoDbDataSource''connectionType' as 'application/repository.customDataSource+json''properties' array containing a KVP of 'mongoURI' as the connection URL for the Mongo DBAnd the content-Type in the header as 'application/repository.customDataSource+json'.That then all worked! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now