title: Hydrate joined Entities with Api-Platform
body: <p>I m building my first rest API with Api-Platform for an AngularJs app,</p>
  
  <p>I want to get all my Project entity like juste here (with my url /projects):</p>
  
  <pre><code>{
    "@context": "/contexts/Project",
    "@id": "/projects",
    "@type": "hydra:PagedCollection",
    "hydra:totalItems": 19,
    "hydra:itemsPerPage": 30,
    "hydra:firstPage": "/projects",
    "hydra:lastPage": "/projects",
    "hydra:member": [
      {
        "@id": "/projects/1",
        "@type": "Project",
        "name": "test1",
        "parent": null,
        "createdAt": "2014-12-22T11:38:13+01:00",
        "updatedAt": null,
        "deletedAt": null
      },
      {
        "@id": "/projects/2",
        "@type": "Project",
        "name": "test2",
        "parent": null,
        "createdAt": "2014-12-22T17:02:50+01:00",
        "updatedAt": null,
        "deletedAt": null
      },
      {
        "@id": "/projects/3",
        "@type": "Project",
        "name": "test3",
        "parent": "/projects/2",
        "createdAt": "2014-12-22T18:28:50+01:00",
        "updatedAt": null,
        "deletedAt": null
      }
    ]
  }
  </code></pre>
  
  <p>But as you can see my Projects can have parent, so I got a reference of my parent Project ( like this /projects/2 )</p>
  
  <p>Can I get directly a Project Object in Json instead of reference like this ?</p>
  
  <pre><code>    {
          "@id": "/projects/3",
          "@type": "Project",
          "name": "test3",
          "parent": {
              "@id": "/projects/2",
              "@type": "Project",
              "name": "test2",
              "parent": null,
              "createdAt": "2014-12-22T17:02:50+01:00",
              "updatedAt": null,
              "deletedAt": null
          },
          "createdAt": "2014-12-22T18:28:50+01:00",
          "updatedAt": null,
          "deletedAt": null
      }
  </code></pre>
  
  <p>This is a good pratical of Rest APi ?</p>