|
21 | 21 | * @SWG\Response(response=206, description="Collection present") |
22 | 22 | * ) |
23 | 23 | * |
24 | | - * |
25 | 24 | * @SWG\Put( |
26 | 25 | * path="/test/rest/", |
27 | 26 | * tags={"test"}, |
28 | 27 | * operationId="updateTestCollection", |
29 | 28 | * summary="Try to update Collection", |
30 | | - * @SWG\Response(response=501, description="Not Implemented", @SWG\Schema(ref="#/definitions/errorModel")) |
| 29 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/error"), response=501, description="Not Implemented") |
31 | 30 | * ) |
32 | 31 | * |
33 | 32 | * @SWG\Delete( |
34 | 33 | * path="/test/rest/", |
35 | 34 | * tags={"test"}, |
36 | 35 | * operationId="deleteTestCollection", |
37 | 36 | * summary="Try to delete Collection", |
38 | | - * @SWG\Response(response=400, description="Not Found", @SWG\Schema(ref="#/definitions/errorModel")) |
| 37 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/error"), response=400, description="Not Found") |
39 | 38 | * ) |
40 | 39 | */ |
41 | 40 |
|
|
52 | 51 | * required=true, |
53 | 52 | * type="integer" |
54 | 53 | * ), |
55 | | - * @SWG\Response(response=200, description="Given item found", @SWG\Schema(ref="#/definitions/test")), |
56 | | - * @SWG\Response(response=404, description="Item not found", @SWG\Schema(ref="#/definitions/errorModel")) |
| 54 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/test"), response=200, description="Given item found"), |
| 55 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/error"), response=404, description="Item not found") |
57 | 56 | * ) |
58 | 57 | * |
59 | 58 | * @SWG\Post( |
|
91 | 90 | * required=true, |
92 | 91 | * type="integer" |
93 | 92 | * ), |
94 | | - * @SWG\Response(response=501, description="Not Implemented", @SWG\Schema(ref="#/definitions/errorModel")) |
| 93 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/error"), response=501, description="Not Implemented") |
95 | 94 | * ) |
96 | 95 | * |
97 | 96 | * @SWG\Put( |
|
120 | 119 | * required=false, |
121 | 120 | * type="string", |
122 | 121 | * ), |
123 | | - * @SWG\Response(response=404, description="Item not found", @SWG\Schema(ref="#/definitions/errorModel")) |
| 122 | + * @SWG\Response(@SWG\Schema(ref="#/definitions/error"), response=404, description="Item not found") |
124 | 123 | * ) |
125 | 124 | * |
126 | 125 | * @SWG\Delete( |
|
0 commit comments