koalamon / Koalamon

Open Source Incident Management
MIT License
8 stars 6 forks source link

Unified json answer when fetching systems via REST #39

Closed koalamon closed 7 years ago

koalamon commented 8 years ago

There should always be the key "system"

[
    {
        "system": {
            "id": 2,
            "identifier": "www.cosmopolitan.de",
            "name": "www.cosmopolitan.de",
            "url": "http:\/\/www.cosmopolitan.de",
            "parent": false,
            "project": {
                "api_key": "CFC90A23-CF5D-4AF5-BCD0-038DCA372E19",
                "name": "phmLabs",
                "identifier": "phmLabs"
            },
            "image": "144901800470938513.png",
            "subSystems": {
                "7": {
                    "id": 7,
                    "identifier": "www.cosmopolitan.de",
                    "name": "wegf",
                    "url": "http:\/\/bauerxcel.com",
                    "parent": 2,
                    "project": {
                        "api_key": "*********-CF5D-4AF5-BCD0-038DCA372E19",
                        "name": "phmLabs",
                        "identifier": "phmLabs"
                    },
                    "image": null,
                    "subSystems": []
                },
            }
        },
        "options": false
    }
]
koalamon commented 8 years ago

The integration bundle is doing it right, the rest bundle wrong.

phmLabs commented 7 years ago

not needed anymore as the queue bundle solves that problem