Skip to content

Commit 84d5760

Browse files
committed
Add tags
1 parent aa46f36 commit 84d5760

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,6 +3374,7 @@ private function setPath(String $prefix, String $tableName) /*: void*/
33743374
}
33753375
$path = sprintf('/records/%s/{%s}', $tableName, $pkName);
33763376
}
3377+
$this->openapi->set("$prefix|$path|$method|tags|0", "$tableName");
33773378
$this->openapi->set("$prefix|$path|$method|description", "$operation $tableName");
33783379
$this->openapi->set("$prefix|$path|$method|responses|200|description", "$operation $tableName succeeded");
33793380
}

src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ private function setPath(String $prefix, String $tableName) /*: void*/
6363
}
6464
$path = sprintf('/records/%s/{%s}', $tableName, $pkName);
6565
}
66+
$this->openapi->set("$prefix|$path|$method|tags|0", "$tableName");
6667
$this->openapi->set("$prefix|$path|$method|description", "$operation $tableName");
6768
$this->openapi->set("$prefix|$path|$method|responses|200|description", "$operation $tableName succeeded");
6869
}

0 commit comments

Comments
 (0)