-
-
Notifications
You must be signed in to change notification settings - Fork 863
/
resources.yaml
37 lines (34 loc) · 1.43 KB
/
resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
properties:
ApiPlatform\Tests\Fixtures\TestBundle\Entity\FileConfigDummy:
foo:
description: The dummy foo
resources:
ApiPlatform\Tests\Fixtures\TestBundle\Entity\Program:
- ~
- uriTemplate: /users/{author}/programs
uriVariables:
author:
fromClass: ApiPlatform\Tests\Fixtures\TestBundle\Entity\User
toProperty: author
types: [someirischema]
description: User programs
operations:
ApiPlatform\Metadata\GetCollection: ~
ApiPlatform\Metadata\Get:
uriTemplate: /users/{userId}/programs/{id}
types: [anotheririschema]
uriVariables:
userId:
fromClass: ApiPlatform\Tests\Fixtures\TestBundle\Entity\User
toProperty: author
id: [ApiPlatform\Tests\Fixtures\TestBundle\Entity\Program, id]
ApiPlatform\Tests\Fixtures\TestBundle\Entity\SingleFileConfigDummy:
shortName: single_file_config
description: File configured resource
ApiPlatform\Tests\Fixtures\TestBundle\Entity\FileConfigDummy:
shortName: fileconfigdummy
description: Dummy resource
itemOperations:
custom_operation:
method: GET
controller: app.config_dummy_resource.action