blocknetdx / exrproxy-env

erp-ethserver
7 stars 10 forks source link

Add "extend_project" method for existing project #178

Closed ConanMishler closed 1 year ago

ConanMishler commented 2 years ago

curl http:///xrs/projects/ \ -X POST \ -H "Content-Type: application/json" \ -H "Api-Key: " -d '{"id": 1, "method": "extend_project", "params": []}'

When this extend_project method is called, it returns all the same price quotes and payment address info that request_project returns, but instead of generating a new project_id and api_key, it returns the same ones that were passed to it. We'll have to take care to have it handle both possible states the project might be in at the time it's called: active or inactive. (It should return an error if it's called for a project in the pending state.)