Re: Add versions.json endpoint with latest release information - Mailing list pgsql-www

From Sehrope Sarkuni
Subject Re: Add versions.json endpoint with latest release information
Date
Msg-id CAH7T-ar=Vy9_saDdG7DuLGjdTj8XG0ppjoiDhR2rMH-3kOMWcA@mail.gmail.com
Whole thread Raw
In response to Re: Add versions.json endpoint with latest release information  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Responses Re: Add versions.json endpoint with latest release information
List pgsql-www
On Tue, Apr 27, 2021 at 5:09 PM Jonathan S. Katz <jkatz@postgresql.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

pgsql-www by date:

Previous
From: "Jonathan S. Katz"
Date:
Subject: Re: Add versions.json endpoint with latest release information
Next
From: Magnus Hagander
Date:
Subject: Re: Add versions.json endpoint with latest release information