[openstreetmap/openstreetmap-website] Add Messages API (PR #4605)
Anton Khorev
notifications at github.com
Thu Mar 21 12:36:08 UTC 2024
@AntonKhorev commented on this pull request.
> +xml.message do
+ xml.id message.id
+ xml.from_user_id message.from_user_id
+ xml.to_user_id message.to_user_id
+ xml.title message.title
+ xml.sent_on message.sent_on
+ xml.message_read message.message_read
+ xml.from_user_visible message.from_user_visible
+ xml.to_user_visible message.to_user_visible
+ xml.body_format message.body_format
+ xml.body message.body unless @skip_body
+end
This is "notes api style" (ids as elements rather than attributes etc) which is an exception among osm apis.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4605#pullrequestreview-1952089613
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4605/review/1952089613 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240321/074c8d74/attachment.htm>
More information about the rails-dev
mailing list