From: Alexander Smirnov Date: Fri, 21 Feb 2025 14:11:22 +0000 (+0300) Subject: [ERP-325] api2 /marketplace/status X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d65d5839718315227980978bf4625fa978b586a2;p=erp24_rep%2Fyii-erp24%2F.git [ERP-325] api2 /marketplace/status --- diff --git a/erp24/api2/controllers/MarketplaceController.php b/erp24/api2/controllers/MarketplaceController.php new file mode 100644 index 00000000..3436c460 --- /dev/null +++ b/erp24/api2/controllers/MarketplaceController.php @@ -0,0 +1,13 @@ +response->format = \yii\web\Response::FORMAT_JSON; + return ['response' => AmoStatus::find()->asArray()->all()]; + } +} \ No newline at end of file diff --git a/erp24/records/AmoStatus.php b/erp24/records/AmoStatus.php new file mode 100644 index 00000000..37219a75 --- /dev/null +++ b/erp24/records/AmoStatus.php @@ -0,0 +1,46 @@ + 100], + ]; + } + + /** + * {@inheritdoc} + */ + public function attributeLabels() + { + return [ + 'id' => 'ID', + 'alias' => 'Alias', + 'name' => 'Name', + ]; + } +}