[openstreetmap/openstreetmap-website] Added JSON response format support for /api/0.6/user/gpx_files endpoint (PR #5779)
Satyabrata Mohanty
notifications at github.com
Sat Mar 8 16:27:39 UTC 2025
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/5779 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250308/5db9c2b6/attachment-0001.htm>
More information about the rails-dev
mailing list