Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return [
- 'desc' => 'Это описание класса',
- 'version' => 'v1',
- 'resource' => [
- '/books' => [
- 'GET' => [
- 'type'=>'collect',
- 'input' => [],
- 'output' => [
- 'id' => ['int'],
- 'name' => ['string']
- ],
- 'errors' => [
- '400' => '16054', // статус сервера - код ошибки
- '403' => '1'
- ]
- ],
- 'POST' => [
- 'type'=>'collect',
- 'input' => [
- 'location_id' => ['int']
- ],
- 'output' => [
- 'id' => ['int'],
- 'books_name' => ['string']
- ],
- 'errors' => [
- '400' => '16054', // статус сервера - код ошибки
- '403' => '1'
- ]
- ],
- '/{id}' => [
- 'type'=>'one',
- '{id}' => 'int',
- 'POST' => [
- 'input' => [],
- 'output' => [
- 'id' => ['int'],
- 'name' => ['string']
- ],
- 'errors' => [
- '400' => '16054', // статус сервера - код ошибки
- '403' => '1'
- ]
- ]
- ]
- ]
- ]
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement