REST-API: Show retired status
Ralf Schlatterbeck <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
As some of you may be aware, when an item is retired in the database
it is still shown in the REST API (and in the item template in the
normal web-interface). I'm thinking about adding an additional
attribute in the web-interface. We currently have:
.../rest/data/issue/1
{ 'link': '.../issue/1'
, '@etag':
, 'type': 'issue'
, 'id': '1'
, 'attributes' : {
...
}
}
I'd like to add in the outer dictionary a 'retired': True/False
flag, what do you think? The main use-case here is to quickly
see that a delete via REST (resulting in a retire in the API)
was successful.
Is 'retired' the correct name? Or something like 'deleted'
to reflect the names in the REST API?
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: http://www.runtux.com
Reichergasse 131, A-3411 Weidling email: [email protected]