/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
api/controllers/RequestController.php
42 строки
1 KB
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php namespace api\controllers; use api\controllers\base\BaseController; use Yii; /** * Работа с моделью SubjectArea * * @author Dmitry E. Semenov <sde.tomsk@gmail.com> * @copyright Self (c) 2024 */ class RequestController extends BaseController { /** * {@inheritdoc} */ public $modelClass = 'common\forms\api\TaskForm'; /** * @SWG\Post(path="/request", * tags = {"user"}, * summary = "Create request to ai-hub", * produces = {"application/json", "application/xml"}, * @SWG\Parameter(in = "header", name = "hub-key", required = true, type = "string", description = "User Hub ID"), * @SWG\Parameter( * name = "body", * in = "body", * required = true, * type = "string", * @SWG\Schema(ref="#/definitions/RequestBody") * ), * @SWG\Response(response = 200, description = "OK"), * @SWG\Response(response = 422, description = "Unprocessable entity"), * @SWG\Response(response = 500, description = "Internal Server Error") * ) */ public function actionCreate() { } }