Update decidim-blogs GraphQL API#14327
Conversation
andreslucena
left a comment
There was a problem hiding this comment.
Comparing the information from http://localhost:3000/api/docs/object/post/ to decidim-blogs/lib/decidim/blogs/post_serializer.rb, the only missing relevant information is the url. I think it can be useful for researchers and for debugging (without having to manually recreate the URL with the process type/process-id/components/component-id/idand so on.
What do you think? Should we start adding that field?
I will add the URL as well, but this should be a thing for all the resources. Good catch (i went only for DB / includes changes ) |
…into feature/api/blogs
|
@andreslucena this is ready for another round |
* Update of the API GraphQL * Refactor api * Running linters * Update decidim-core/lib/decidim/api/interfaces/attachable_collection_interface.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Update `decidim-blogs` GraphQL API (#14327) * Update `decidim-blogs` GraphQL API * Add url to list * Update `decidim-debates` GraphQL API (#14331) * Update `decidim-debates` GraphQL API * Refactor specs * Add more fields * Update `decidim-budgets` GraphQL API (#14328) * Update `decidim-budgets` GraphQL API * Add more fields * Apply suggestions from code review * Add budget integration specs * Update decidim-budgets/spec/types/project_type_spec.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Sort alphabetically --------- Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Update `decidim-accountability` GraphQL API (#14326) * Change Api for Accountability module * Fix spec * Add url field * Add proposal urls field * Add integration_spec for results * Sort alphabetically * More * More sorting * Update `decidim-conferences` GraphQL API (#14330) * Update `decidim-conferences` GraphQL API * Running linters * Add more fields * Fix usage * Add url spec * Implement conference schema spec * Sort alphabetically * Add resource fields to integration schema specs (#14358) * Add post fields to integration_schema spec * Add debate fields to integration_schema spec * Sort alphabetically * Sort alphabetically * Update `decidim-assemblies` GraphQL API (#14329) * Update `decidim-assemblies` GraphQL API * Fixing specs * Add url to assemblies * Fix spec * Add integration specs * Sort alphabetically --------- Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

🎩 What? Why?
This PR we review the
blogsmodule, to which :📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.
📷 Screenshots
Please add screenshots of the changes you are proposing
