Discussion:
REST API: Artifact's last modified timestamp
Anton
2014-12-18 09:04:50 UTC
Permalink
Hi,

is it possible to get the last modified timestamp for a specific artifact
via the REST API or any other way?

Thanks in advance!

Anton



--
View this message in context: http://archiva.996284.n3.nabble.com/REST-API-Artifact-s-last-modified-timestamp-tp16426.html
Sent from the User mailing list archive at Nabble.com.
Anton
2015-02-13 15:33:23 UTC
Permalink
<Loading Image...>

Is it possible to get this information with the REST API?



--
View this message in context: http://archiva.996284.n3.nabble.com/REST-API-Artifact-s-last-modified-timestamp-tp16426p16528.html
Sent from the User mailing list archive at Nabble.com.
Olivier Lamy
2015-02-16 10:24:15 UTC
Permalink
no.
But you can get it with an http call and read the header 'Last-Modified'.
Sample:
mb-olamy:parent olamy$ curl -I
https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/archiva/archiva/maven-metadata.xml

HTTP/1.1 200 OK

Date: Mon, 16 Feb 2015 10:22:49 GMT

....

Cache-Control: max-age=86401, public

Last-Modified: Mon, 16 Feb 2015 10:22:49 GMT

....


OTH

Olivier
Post by Anton
<http://archiva.996284.n3.nabble.com/file/n16528/last_modified.png>
Is it possible to get this information with the REST API?
--
http://archiva.996284.n3.nabble.com/REST-API-Artifact-s-last-modified-timestamp-tp16426p16528.html
Sent from the User mailing list archive at Nabble.com.
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Loading...