williamkapke / mongo-mock

Let's pretend we have a real MongoDB
MIT License
240 stars 75 forks source link

Data API mock receptor #156

Open apitodigital opened 1 year ago

apitodigital commented 1 year ago

Anyone know an Atlas Data API Mock? I had hard time finding one, we can create an adapter using this library as a base?

In my knowledge looks very easy to do that, just create a HTTP interceptor to run the operations using this package (mongo-mock), the responses are very similar... there is something that i'm forgetting about?

Example of Atlas DATA API Mock Request

  await client.post('/action/find', {
    "collection": "collection",
    "database": "database",
    "dataSource": "project",
    "projection": {}
  })