Ask HN: How would you implement a test-mode for an API?
Looking to implement something similar to what Stripe has for their API (live&#x2F;test API keys), but haven&#x27;t decided on a solid direction to take yet. Curious as to how others would approach this type of feature.<p><pre><code>  * Would you use a scope via an attribute on the model?
  * Would you use a separate Postgres schema for test-mode requests?
  * Maybe even a separate database?</code></pre>