mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-03 08:09:25 +03:00
eb255010a0
* allow typed embedded relation with hateoas 3.0 * symfony/framework-bundle 4.2.7 is broken https://github.com/symfony/symfony/pull/31156 * internal public methods
40 lines
945 B
PHP
40 lines
945 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
*
|
|
* (c) Nelmio
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity;
|
|
|
|
use Hateoas\Configuration\Annotation as Hateoas;
|
|
|
|
/**
|
|
* User.
|
|
*
|
|
* @Hateoas\Relation(name="example", attributes={"str_att":"bar", "float_att":5.6, "bool_att": false}, href="http://www.example.com")
|
|
* @Hateoas\Relation(name="route", href=@Hateoas\Route("foo"))
|
|
* @Hateoas\Relation(
|
|
* name="route",
|
|
* attributes={"foo":"bar"},
|
|
* embedded=@Hateoas\Embedded(
|
|
* "expr(service('xx'))"
|
|
* )
|
|
* )
|
|
* @Hateoas\Relation(
|
|
* name="embed_with_group",
|
|
* attributes={"foo":"with_groups"},
|
|
* exclusion=@Hateoas\Exclusion(groups={"foo"}),
|
|
* embedded=@Hateoas\Embedded(
|
|
* "expr(service('xx'))"
|
|
* )
|
|
* )
|
|
*/
|
|
class BazingaUser
|
|
{
|
|
}
|