Skip to content

Commit

Permalink
#174. Add paths required params to create/update/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Jun 17, 2019
1 parent fb92273 commit ce57a4e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/Documentation/RelationsDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ private function setCreateRelation(): void
$this->setStarredComment('tags={"' . $this->generator->objectName . DefaultInterface::CONTROLLER_POSTFIX
. '"},', 1, 1);

$this->setParameter([
'in' => '"path"',
'name' => '"id"',
'required' => 'true',
]);

$this->setParameter([
'in' => '"path"',
'name' => '"relations"',
'required' => 'true',
]);

$this->setResponse([
'response' => '200',
'description' => '""',
Expand Down Expand Up @@ -145,6 +157,18 @@ private function setUpdateRelation(): void
$this->setStarredComment('tags={"' . $this->generator->objectName . DefaultInterface::CONTROLLER_POSTFIX
. '"},', 1, 1);

$this->setParameter([
'in' => '"path"',
'name' => '"id"',
'required' => 'true',
]);

$this->setParameter([
'in' => '"path"',
'name' => '"relations"',
'required' => 'true',
]);

$this->setResponse([
'response' => '200',
'description' => '""',
Expand Down Expand Up @@ -173,6 +197,18 @@ private function setDeleteRelation(): void
$this->setStarredComment('tags={"' . $this->generator->objectName . DefaultInterface::CONTROLLER_POSTFIX
. '"},', 1, 1);

$this->setParameter([
'in' => '"path"',
'name' => '"id"',
'required' => 'true',
]);

$this->setParameter([
'in' => '"path"',
'name' => '"relations"',
'required' => 'true',
]);

$this->setResponse([
'response' => '200',
'description' => '""',
Expand Down

0 comments on commit ce57a4e

Please sign in to comment.