hackers4peace / plp-provider

Definitions and reference implementation for Provider working with PLP
provider.plp.hackers4peace.net
1 stars 1 forks source link

Include timestamp when storing/editing a profile #6

Open acorbi opened 9 years ago

acorbi commented 9 years ago

In order to keep record when a profile has been hosted/modified, a timestamp field can be added on the profile JSON files.

acorbi commented 9 years ago

@elf-pavlik @almereyda what do you think? Should we just add a "@updated" attribute together with "@id" and "@type" ?

An example would be something like this:

{ "@id":"http://profiles.open-steps.org/provider/7ce5f07a-1c3c-4e35-90c9-e51bce25e04a", "@type":"Person" "@updated" : "13/11/2014 20:04:00" "name": "Alex Corbi"

I wonder what is the best choice for the date format. Should we just use time in milis? That raises the question whether the profiles have to be also human readable.

almereyda commented 9 years ago

I am not sure, a timestamp is okay for Directory, but here I'd rather like to see basic versioning.