Re: Add versions.json endpoint with latest release information

Поиск
Список
Период
Сортировка
От Sehrope Sarkuni
Тема Re: Add versions.json endpoint with latest release information
Дата
Msg-id CAH7T-ar=Vy9_saDdG7DuLGjdTj8XG0ppjoiDhR2rMH-3kOMWcA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add versions.json endpoint with latest release information  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Ответы Re: Add versions.json endpoint with latest release information  (Magnus Hagander <magnus@hagander.net>)
Список 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/
 
Вложения

В списке pgsql-www по дате отправления:

Предыдущее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Add versions.json endpoint with latest release information
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Add versions.json endpoint with latest release information