Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.94 KB | None | 0 0
  1.  return [
  2.             'desc' => 'Это описание класса',
  3.             'version' => 'v1',
  4.             'resource' => [
  5.                 '/books' => [
  6.                     'GET' => [
  7.                         'type'=>'collect',
  8.                         'input' => [],
  9.                         'output' => [
  10.                             'id' => ['int'],
  11.                             'name' => ['string']
  12.                         ],
  13.                         'errors' => [
  14.                             '400' => '16054', // статус сервера - код ошибки
  15.                             '403' => '1'
  16.                         ]
  17.                     ],
  18.                     'POST' => [
  19.                         'type'=>'collect',
  20.                         'input' => [
  21.                             'location_id' => ['int']
  22.                         ],
  23.                         'output' => [
  24.                             'id' => ['int'],
  25.                             'books_name' => ['string']
  26.                         ],
  27.                         'errors' => [
  28.                             '400' => '16054', // статус сервера - код ошибки
  29.                             '403' => '1'
  30.                         ]
  31.                     ],
  32.                    
  33.                     '/{id}' => [
  34.                         'type'=>'one',
  35.                         '{id}' => 'int',
  36.                         'POST' => [
  37.                             'input' => [],
  38.                             'output' => [
  39.                                 'id' => ['int'],
  40.                                 'name' => ['string']
  41.                             ],
  42.                             'errors' => [
  43.                                 '400' => '16054', // статус сервера - код ошибки
  44.                                 '403' => '1'
  45.                             ]
  46.                         ]
  47.                     ]
  48.                 ]
  49.             ]
  50.         ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement