This PR adds JSON format support to the user's GPX files API endpoint, enhancing the API's flexibility and consistency with other endpoints that already support JSON responses. The implementation:
- Adds JSON format handling to the traces controller - Creates a JSON view template matching the XML structure - Ensures proper content type headers are set This enhancement improves client-side parsing efficiency while maintaining backward compatibility with the existing XML format. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5779 -- Commit Summary -- * adding json * Merge branch 'master' of https://github.com/Satya900/openstreetmap-website -- File Changes -- M app/controllers/api/users/traces_controller.rb (5) A app/views/api/users/traces/index.json.jbuilder (17) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5779.patch https://github.com/openstreetmap/openstreetmap-website/pull/5779.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5779 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev