Skip to content

Commit 4335dc7

Browse files
Anton ShevchukAnton Shevchuk
authored andcommitted
Updated API doc
1 parent 0e02237 commit 4335dc7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

application/modules/test/api.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@
2121
* @SWG\Response(response=206, description="Collection present")
2222
* )
2323
*
24-
*
2524
* @SWG\Put(
2625
* path="/test/rest/",
2726
* tags={"test"},
2827
* operationId="updateTestCollection",
2928
* 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")
3130
* )
3231
*
3332
* @SWG\Delete(
3433
* path="/test/rest/",
3534
* tags={"test"},
3635
* operationId="deleteTestCollection",
3736
* 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")
3938
* )
4039
*/
4140

@@ -52,8 +51,8 @@
5251
* required=true,
5352
* type="integer"
5453
* ),
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")
5756
* )
5857
*
5958
* @SWG\Post(
@@ -91,7 +90,7 @@
9190
* required=true,
9291
* type="integer"
9392
* ),
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")
9594
* )
9695
*
9796
* @SWG\Put(
@@ -120,7 +119,7 @@
120119
* required=false,
121120
* type="string",
122121
* ),
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")
124123
* )
125124
*
126125
* @SWG\Delete(

0 commit comments

Comments
 (0)