Replace XhrMethods.php by RestAPI
Description
The XhrMethods.php seems to be a very old code base part. It contains code which belongs to Gateways, Transactions and the HTTP status codes. In the newer areas of the codebase are RestAPI used to manipulate data in the foddsharing backend.
Goal
Replace all functions inside of XhrMethods by a RestAPI, so that the old code can be removed.
Evidence
The XHrMethods contains different aspects and is sometimes combind with Javascript frontend code. Is may make trouble to remove this files.
Solution
- Implement/extend RestAPI with functions to provide a simular possibility.
Links / references
Edited by Alex