|
| 1 | +<?xml version="1.0"?> |
| 2 | +<resources xmlns="https://api-platform.com/schema/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://api-platform.com/schema/metadata https://api-platform.com/schema/metadata/metadata-2.0.xsd"> |
| 3 | + <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://api-platform.com/schema/metadata https://api-platform.com/schema/metadata/metadata-2.0.xsd" class="App\Entity\Book"> |
| 4 | + <attribute> |
| 5 | + <attribute name="normalization_context"> |
| 6 | + <attribute name="groups"> |
| 7 | + <attribute>read</attribute> |
| 8 | + </attribute> |
| 9 | + </attribute> |
| 10 | + <attribute name="denormalization_context"> |
| 11 | + <attribute name="groups"> |
| 12 | + <attribute>write</attribute> |
| 13 | + </attribute> |
| 14 | + </attribute> |
| 15 | + <attribute name="Create a Book instead"/> |
| 16 | + </attribute> |
| 17 | + <graphql> |
| 18 | + <operation name="query"> |
| 19 | + <attribute name="normalization_context"> |
| 20 | + <attribute name="groups"> |
| 21 | + <attribute>query</attribute> |
| 22 | + </attribute> |
| 23 | + </attribute> |
| 24 | + </operation> |
| 25 | + <operation name="create"> |
| 26 | + <attribute name="normalization_context"> |
| 27 | + <attribute name="groups"> |
| 28 | + <attribute>query</attribute> |
| 29 | + </attribute> |
| 30 | + </attribute> |
| 31 | + <attribute name="denormalization_context"> |
| 32 | + <attribute name="groups"> |
| 33 | + <attribute>mutation</attribute> |
| 34 | + </attribute> |
| 35 | + </attribute> |
| 36 | + </operation> |
| 37 | + <operation name="delete"/> |
| 38 | + </graphql> |
| 39 | + <itemOperations> |
| 40 | + <itemOperation name="get"> |
| 41 | + <attribute name="method">GET</attribute> |
| 42 | + <attribute name="path">/grimoire/{id}</attribute> |
| 43 | + <attribute name="requirements"> |
| 44 | + <attribute name="id">\d+</attribute> |
| 45 | + </attribute> |
| 46 | + <attribute name="defaults"> |
| 47 | + <attribute name="color">brown</attribute> |
| 48 | + </attribute> |
| 49 | + <attribute name="options"> |
| 50 | + <attribute name="my_option">my_option_value</attribute> |
| 51 | + </attribute> |
| 52 | + <attribute name="schemes"> |
| 53 | + <attribute>https</attribute> |
| 54 | + </attribute> |
| 55 | + <attribute name="host">{subdomain}.api-platform.com</attribute> |
| 56 | + </itemOperation> |
| 57 | + <itemOperation name="put"> |
| 58 | + <attribute name="method">PUT</attribute> |
| 59 | + <attribute name="path">/grimoire/{id}/update</attribute> |
| 60 | + <attribute name="hydra_context"> |
| 61 | + <attribute name="foo">bar</attribute> |
| 62 | + </attribute> |
| 63 | + </itemOperation> |
| 64 | + <itemOperation name="post_publication"> |
| 65 | + <attribute name="route_name">book_post_publication</attribute> |
| 66 | + <attribute name="deprecation_reason">Retrieve a Book instead</attribute> |
| 67 | + <attribute name="sunset">01/01/2020</attribute> |
| 68 | + </itemOperation> |
| 69 | + <itemOperation name="book_post_discontinuation"/> |
| 70 | + </itemOperations> |
| 71 | + <property name="id" description="identifiant unique" iri="http://schema.org/id" identifier="1"/> |
| 72 | + <property name="name" readable="1" writable="1"/> |
| 73 | + <property name="author" readable="1"> |
| 74 | + <subresource resourceClass="App\Entity\Holder"/> |
| 75 | + </property> |
| 76 | + <property name="scribus"> |
| 77 | + <attribute> |
| 78 | + <attribute name="Use the author property instead"/> |
| 79 | + </attribute> |
| 80 | + </property> |
| 81 | + </resource> |
| 82 | +</resources> |
0 commit comments