← Back to team overview

dhis2-devs-core team mailing list archive

Re: Audits Web-API

 

>
> Can we have a default one something like auditType=ALL so that we fetch
> all available (currently update and delete) in just one go? We can do the
> grouping per auditType at the client side.
>

Yes, this is already the default


> Also nice would be fetching audits per program stage instance without
> mentioning a data element. The same per tracked entity instance
> without specifying tracked entity attribute.
>

Yes, I'm thinking of adding pr data set for aggregate, and pr program stage
for tracker


>
>
>
> ---
> Thank you,
> Abyot.
>
> On Mon, Nov 30, 2015 at 5:42 AM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> Hi everyone
>>
>> I have added 3 new APIs for getting audit information for:
>> DataValue
>> TrackedEntityDataValue (audit is new for 2.22)
>> TrackedEntityAttributeValue (audit is new for 2.22)
>>
>> /api/audits/dataValue
>>   de=XXX (one or more data element)
>>   pe=XXX (one or more periods)
>>   ou=XXX (one or more org units)
>>   co=XXX (category option combo)
>>   cc=XXX (attribute option combo)
>>   auditType=UPDATE/DELETE
>>
>> /api/audits/trackedEntityDataValue
>>   de=XXX (one or more data element)
>>   ps=XXX (one or more program stage instances)
>>   auditType=UPDATE/DELETE
>>
>> /api/audits/trackedEntityAttributeValue
>>   tea=XXX (one or more tracked entity attributes)
>>   te=XXX (one or more tracked entity instances)
>>   auditType=UPDATE/DELETE
>>
>> At the very least TC/EC clients should be updated so you can fetch old
>> audit data. Probably something interesting for Android clients also?
>>
>> Let me know if there are any issues, or if you need more specific query
>> parameters, I will try and document this tomorrow, paging will also be
>> added.
>>
>> --
>> Morten
>>
>> --
>> Mailing list: https://launchpad.net/~dhis2-devs-core
>> Post to     : dhis2-devs-core@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs-core
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

Follow ups

References