[openstreetmap/openstreetmap-website] JSON output added to permissions endpoint (PR #3493)

mmd notifications at github.com
Tue Mar 8 19:36:15 UTC 2022


Another small patch to increase JSON support for API endpoints.

Example: _http://localhost:3000/api/0.6/permissions.json_ returns:

```json
{
    "version": "0.6",
    "generator": "OpenStreetMap server",
    "copyright": "OpenStreetMap and contributors",
    "attribution": "http://www.openstreetmap.org/copyright",
    "license": "http://opendatacommons.org/licenses/odbl/1-0/",
    "permissions": [
        "allow_read_prefs",
        "allow_read_email"
    ]
}
```
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3493

-- Commit Summary --

  * JSON output added to permissions endpoint

-- File Changes --

    M app/controllers/api/permissions_controller.rb (6)
    A app/views/api/permissions/show.json.jbuilder (3)
    R app/views/api/permissions/show.xml.builder (0)
    M test/controllers/api/permissions_controller_test.rb (25)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3493.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3493.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3493
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3493 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220308/354dff5f/attachment.htm>


More information about the rails-dev mailing list