Overtorment / Cashier-BTC

💰 Self-hosted Bitcoin payment gateway (฿)
286 stars 101 forks source link

Creating a POST version of the current API endpoints #20

Open MicxSamonte opened 6 years ago

MicxSamonte commented 6 years ago

I am working on creating a POST version of the current GET api endpoints. And organizing the routes to a routers folder, converting the current controller scripts to modules. It will also leave the GET endpoints still usable as is.

This way we can introduce optional parameters, e.g. message or custom fees etc.

Thoughts on this?

Overtorment commented 6 years ago

Go for it. Please mind that new routes should be covered with acceptance tests (the way they are covered now). Also, if those changes arent backward compatible - increase the major version number (ver 3+)