Пример #1
0
 protected function buildResponses()
 {
     parent::buildResponses();
     $this->responses['204'] = ['description' => 'Success'];
 }
Пример #2
0
 protected function buildResponses()
 {
     parent::buildResponses();
     $this->responses['201'] = ['description' => 'Success', 'schema' => ['$ref' => "#/definitions/{$this->model->modelClass}"]];
 }
Пример #3
0
 protected function buildResponses()
 {
     parent::buildResponses();
     $this->responses['200'] = ['description' => 'Success', 'schema' => ['type' => Swagger::DATA_TYPE_ARRAY, 'items' => ['$ref' => "#/definitions/{$this->model->modelClass}"]]];
 }