Easily accessible thing you can do is to write a plugin that takes data from database or databases and combine them with the second plugin that gets data from your rest api
You can also look how implemented are default plugins, especially flat file one, it's pretty easy
https://github.com/Puchaczov/Musoq/tree/master/Musoq.Schema....