| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php declare(strict_types=1);
- namespace OpenApiFixtures;
- /**
- * @OA\Info(title="Using a parameter definition", version="unittest")
- */
- class UsingRefs
- {
- /**
- * @OA\Get(
- * path="/pi/{item_name}",
- * summary="Get protected item",
- * @OA\Parameter(ref="#/components/parameters/ItemName"),
- * @OA\Response(
- * response="default",
- * ref="#/components/responses/Item"
- * )
- * )
- */
- public function getProtectedItem()
- {
- }
- }
- /**
- * @OA\Parameter(
- * name="ItemName",
- * in="path",
- * required=true,
- * description="protected item name",
- * )
- */
- /**
- * @OA\Response (
- * response="Item",
- * description="A protected item"
- * )
- */
|