anitya icon indicating copy to clipboard operation
anitya copied to clipboard

Expose version retrieval timestamp on HTTP API

Open gasinvein opened this issue 3 years ago • 3 comments

The "Retrieved on (UTC)" field could be useful for HTTP API users, who may want to know when the version was released without further crawling the upstream project, if Anytia provides this information.

gasinvein avatar Apr 11 '21 11:04 gasinvein

It should be easy to add this field to API.

Zlopez avatar Apr 11 '21 13:04 Zlopez

versions and stable_version are plain string lists - I guess timestamps can't be added there, so we'll need a new field to contain a list of (version, retrieved_on) pairs?

gasinvein avatar Apr 11 '21 13:04 gasinvein

You are right, this would be probably a backwards incompatible change, because you need to change the type to object from list.

Zlopez avatar Apr 11 '21 17:04 Zlopez