fermin-silva / mockserver

The hassle-free way of mocking a backend server API
http://ferminsilva.com/mockserver/
0 stars 0 forks source link

ADD different content backends #13

Open fermin-silva opened 5 years ago

fermin-silva commented 5 years ago

httphandler calls resolveFile given a url path, but it could have different backends like S3, database, etc.

Maybe it should use these backends exclusively, or maybe in combination with a file. For example, for each endpoint there could be a file with the SQL query to execute against the database backend, instead of dynamically writing it or having a huge config file with queries.