Whichever option we choose, we will have to explicitly prioritize the API if we want it to happen soon… I’d say it’s several months to over a year before that rewrite is complete
Agreed. Rebuilding the whole admin area in React will take a long time, and will mostly focus on the endpoints we already have. Even if we go with React, I think it would make sense to prioritise work that improves the API for external clients being done way before the “React rebuild” is likely to be finished.
Kirsten’s example of the Enterprise endpoint is an interesting one. I had another look, and I think for the that case we’d want to use the
Api::ShopsController (which already exists) and the
Api::EnterpriseShopfrontSerializer (which already exists and has specs) and just add an index action, which would be 5 or 6 lines of code, so I’d downgrade my previous 1-2 hour estimate there to around 30 minutes (specs included).
With cases like a potential Odoo integration it might be that the requirements look different to the requirements of our app, in which case we might need some separate endpoints that we ultimately would not be consuming ourselves. And we’d still need to prioritise the work separately. We’d need to see the details of the use-case first though.