Content-Length: 207912 | pFad | http://github.com/koemeet/JsonApiBundle/issues/33
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't want the attribute "hash" to appear in the response. How can I hide certain properties in the response? Thank you!
use Mango\Bundle\JsonApiBundle\Configuration\Annotation as JsonApi; /** * @JsonApi\Resource(type="posts") */ class Post { /** * @JsonApi\Id */ protected $uuid; /** * @JsonApi\Relationship(includeByDefault=true, showLinkSelf=false, showLinkRelated=false) */ protected $comments; protected $hash; }
The text was updated successfully, but these errors were encountered:
@eloygonzalez you have to import JMS serializer and use @JMS\Exclude()
@JMS\Exclude()
use Mango\Bundle\JsonApiBundle\Configuration\Annotation as JsonApi; use JMS\Serializer\Annotation as JMS; /** * @JsonApi\Resource(type="posts") */ class Post { /** * @JsonApi\Id */ protected $uuid; /** * @JsonApi\Relationship(includeByDefault=true, showLinkSelf=false, showLinkRelated=false) */ protected $comments; /** @JMS\Exclude() */ protected $hash; }
Sorry, something went wrong.
No branches or pull requests
Fetched URL: http://github.com/koemeet/JsonApiBundle/issues/33
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
I don't want the attribute "hash" to appear in the response.
How can I hide certain properties in the response?
Thank you!
The text was updated successfully, but these errors were encountered: