Hi Stas.
Thank you for the first version of the API. I am still looking at how I
can incorporate it into the add-on the best way now.
As for the notifications, to maximize the user benefit from using the
API, the query result should be a bit richer than what is not displayed
in the UI. I can imagine getting and object, that would look like:
{id, timestamp, type, actor, project, verb, newStrings, messageHTML,
deadline}
In this scheme, the fileds /id/, /timestamp/ and /type/ would be a
mandatory skeleton, other may vary depending on the actual notification
/type/. By /type/ I mean an easy way to distinguish between
notifications for new strings, messages from admins, deadlines or other
notifications. Every time can than only contain the fields that are
appropriate - project and number of strings for new strings
notification, sender and project and message for messages, project and
date for deadlines, etc. A bonus would be an API (or some new RESTlike
endpoint) to mark notifications as read one by one using their ID.
Michal
Dne 11.10.2017 v 18:08 Staś Małolepszy napsal(a):