@@ -196,25 +196,25 @@ |
||
| 196 | 196 | */ |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @api {delete} /role/:id Удаление роли |
|
| 200 | - * @apiName DeleteRole |
|
| 201 | - * @apiGroup Role |
|
| 202 | - * |
|
| 203 | - * @apiDescription Метод для удаления роли. |
|
| 204 | - * |
|
| 205 | - * @apiPermission admin |
|
| 206 | - * |
|
| 207 | - * @apiParam {Number} id Id роли |
|
| 208 | - * |
|
| 209 | - * @apiHeader {String} Authorization Токен. |
|
| 210 | - * |
|
| 211 | - * @apiSuccessExample {json} Успешно (204) |
|
| 212 | - * HTTP/1.1 204 OK |
|
| 213 | - * |
|
| 214 | - * @apiUse UnauthorizedError |
|
| 215 | - * @apiUse StandardErrors |
|
| 216 | - * @apiUse NotFoundError |
|
| 217 | - */ |
|
| 199 | + * @api {delete} /role/:id Удаление роли |
|
| 200 | + * @apiName DeleteRole |
|
| 201 | + * @apiGroup Role |
|
| 202 | + * |
|
| 203 | + * @apiDescription Метод для удаления роли. |
|
| 204 | + * |
|
| 205 | + * @apiPermission admin |
|
| 206 | + * |
|
| 207 | + * @apiParam {Number} id Id роли |
|
| 208 | + * |
|
| 209 | + * @apiHeader {String} Authorization Токен. |
|
| 210 | + * |
|
| 211 | + * @apiSuccessExample {json} Успешно (204) |
|
| 212 | + * HTTP/1.1 204 OK |
|
| 213 | + * |
|
| 214 | + * @apiUse UnauthorizedError |
|
| 215 | + * @apiUse StandardErrors |
|
| 216 | + * @apiUse NotFoundError |
|
| 217 | + */ |
|
| 218 | 218 | final class RoleSchema extends BaseSchema |
| 219 | 219 | { |
| 220 | 220 | protected $resourceType = 'role'; |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateUsersTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('users', function($table) |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Undo the migration |
|
| 30 | - */ |
|
| 29 | + * Undo the migration |
|
| 30 | + */ |
|
| 31 | 31 | public function down() |
| 32 | 32 | { |
| 33 | 33 | Capsule::schema()->drop('users'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateLogsTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('logs', function($table) |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Undo the migration |
|
| 25 | - */ |
|
| 24 | + * Undo the migration |
|
| 25 | + */ |
|
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | 28 | Capsule::schema()->drop('logs'); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateAccessTokensTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('access_tokens', function($table) |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Undo the migration |
|
| 22 | - */ |
|
| 21 | + * Undo the migration |
|
| 22 | + */ |
|
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | 25 | Capsule::schema()->drop('access_tokens'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateRolesToRightTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('roles_to_rights', function($table) |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Undo the migration |
|
| 22 | - */ |
|
| 21 | + * Undo the migration |
|
| 22 | + */ |
|
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | 25 | Capsule::schema()->drop('roles_to_rights'); |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | class CreateRightsTable |
| 5 | 5 | { |
| 6 | 6 | /** |
| 7 | - * Do the migration |
|
| 8 | - */ |
|
| 7 | + * Do the migration |
|
| 8 | + */ |
|
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | 11 | Capsule::schema()->create('rights', function($table) |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * Undo the migration |
|
| 26 | - */ |
|
| 25 | + * Undo the migration |
|
| 26 | + */ |
|
| 27 | 27 | public function down() |
| 28 | 28 | { |
| 29 | 29 | Capsule::schema()->drop('rights'); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class CreateRefreshTokensTable{ |
| 5 | 5 | /** |
| 6 | - * Do the migration |
|
| 7 | - */ |
|
| 6 | + * Do the migration |
|
| 7 | + */ |
|
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | 10 | Capsule::schema()->create('refresh_tokens', function($table) |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Undo the migration |
|
| 22 | - */ |
|
| 21 | + * Undo the migration |
|
| 22 | + */ |
|
| 23 | 23 | public function down() |
| 24 | 24 | { |
| 25 | 25 | Capsule::schema()->drop('refresh_tokens'); |