Task: Create a REST API Using PHP with Model-Controller Architecture
Task: Create a REST API Using PHP with Model-Controller Architecture: a task in Terminal-Lego-15k (Harbor dataset). Create a simple but properly structured REST API in PHP that accepts two numbers via POST request and returns their sum in JSON format. The API should follow the Model-Controller…
The task
Create a simple but properly structured REST API in PHP that accepts two numbers via POST request and returns their sum in JSON format. The API should follow the Model-Controller pattern (not plain PHP) and demonstrate REST API best practices.
Part of PrimeIntellect/Terminal-Lego-15k.