[openstreetmap/openstreetmap-website] Added JSON support to user preferences (#3164)

Michal Migurski notifications at github.com
Thu Apr 8 00:43:28 UTC 2021


Updated in a95931ea3:

```
GET /api/0.6/user/preferences?format=json

{
    "attribution": "http://www.openstreetmap.org/copyright",
    "copyright": "OpenStreetMap and contributors",
    "generator": "OpenStreetMap server",
    "license": "http://opendatacommons.org/licenses/odbl/1-0/",
    "preferences": {
        "coffee": "cream, no sugar",
        "diary.default_language": "en"
    },
    "version": "0.6"
}
```

```
GET /api/0.6/user/preferences?format=xml

<osm version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
  <preferences>
    <preference k="diary.default_language" v="en"/>
    <preference k="coffee" v="cream, no sugar"/>
  </preferences>
</osm>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3164#issuecomment-815365567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210407/0df68f74/attachment.htm>


More information about the rails-dev mailing list