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 have setup a Posts table. The table has a column views. Is it possible to write a custom API which will increment the value of views in Posts table?
Posts
views
The text was updated successfully, but these errors were encountered:
In this old version it can be accomplished with hooks:
https://github.com/directus/docs/blob/master/extensions/hooks.md
Or custom endpoints in the new API version:
https://docs.directus.io/extensions/custom-endpoints.html#creating-custom-endpoints
Sorry, something went wrong.
@benhaynes this link(https://github.com/directus/docs/blob/master/developer-guide/hooks.md) is not working.
Thanks @shabbir21 – I updated the link: https://github.com/directus/docs/blob/master/extensions/hooks.md
No branches or pull requests
Version Info
I have setup a
Posts
table. The table has a columnviews
.Is it possible to write a custom API which will increment the value of
views
inPosts
table?The text was updated successfully, but these errors were encountered: