From: | Sehrope Sarkuni <sehrope(at)jackdb(dot)com> |
---|---|
To: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: Add versions.json endpoint with latest release information |
Date: | 2021-04-28 13:29:04 |
Message-ID: | CAH7T-ar=Vy9_saDdG7DuLGjdTj8XG0ppjoiDhR2rMH-3kOMWcA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
On Tue, Apr 27, 2021 at 5:09 PM Jonathan S. Katz <jkatz(at)postgresql(dot)org>
wrote:
> I would suggest modeling the query after what we are doing with the RSS
> feed[2].
>
Done. Updated patch is attached.
It also renames some output fields ("tree" as "major" and "latestminor" as
"minor") and adds a sort order on the JSON fields to ensure stable output.
$ curl -s http://localhost:8000/versions.json | jq last
{
"current": false,
"eoldate": "2014-07-01",
"major": "8.4",
"minor": 0,
"reldate": "2009-07-01",
"supported": true
}
Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/
Attachment | Content-Type | Size |
---|---|---|
0001-Add-versions.json-endpoint.v2.patch | text/x-patch | 2.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2021-04-30 09:58:54 | Re: Add versions.json endpoint with latest release information |
Previous Message | Jonathan S. Katz | 2021-04-27 21:09:06 | Re: Add versions.json endpoint with latest release information |