Creating a REST API in Yii 2.0

Hello Everyone,

After spending quite some time being blocked from posting on this forum because apparently my post was spam, I decided it was easier to put the bulk of my post in a text file and attach it to this thread.

I would be very grateful to anyone who would take the time to read the attached text file,

Thanks for your time,

Swarvy

Edit:

In the attached text file, the line of code:

$this->__FormatResponse();

corresponds to this method:




/* Format the response */

	private function __FormatResponse($api_format=\yii\web\Response::FORMAT_JSON, $charset='UTF-8') {

		\Yii::$app->response->format = $api_format;

		\Yii::$app->response->charset = $charset;

	}