zalando-stups / kio

The application registry in the STUPS ecosystem
http://docs.stups.io/en/latest/components/kio.html
Other
23 stars 11 forks source link

return tier in application list #123

Closed hjacobs closed 4 years ago

hjacobs commented 4 years ago

The criticality level ("Tier") is a very important property of an application, we should display it when listing applications.

Return application tier when listing applications (/apps).

hjacobs commented 4 years ago

Tested locally:

zhttp http://localhost:8080/apps
HTTP/1.1 200 OK
Access-Control-Allow-Headers: 
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3600
Content-Encoding: gzip
Content-Type: application/json
Date: Wed, 06 Nov 2019 08:10:53 GMT
Server: Jetty(9.2.10.v20150310)
Strict-Transport-Security: max-age=10886400
Transfer-Encoding: chunked

[
    {
        "active": false,
        "criticality_level": 4,
        "documentation_url": null,
        "id": "test",
        "incident_contact": null,
        "last_modified": "2019-11-06T07:09:53.028Z",
        "name": "test",
        "scm_url": null,
        "service_url": null,
        "specification_url": null,
        "subtitle": null,
        "team_id": "test"
    }
]
hjacobs commented 4 years ago

:+1:

ThorbjoernG commented 4 years ago

👍