Atom Single Feed (atom_single_feed_v1)

Convert any Atom XML feed into a database table for querying and persistent archiving.

To get set up, run this code from the WebhookDB CLI:

webhookdb integrations create atom_single_feed_v1

Source documentation for this API: https://en.wikipedia.org/wiki/Atom_(web_standard)

Features

Supports Webhooks
Supports Backfilling

Schema

Tables replicated from Atom Single Feeds have this schema. Note that the data types listed are for Postgres; when replicating to other databases, other data types maybe used.

Column Type Indexed
pk bigint  
entry_id text  
row_created_at timestamptz
updated timestamptz
title text  
published timestamptz
geo_lat numeric  
geo_lng numeric  
data* jsonb  

* The data column contains the raw payload from the webhook or API. In many cases there is no canonical form, like if a webhook and API request return two different versions of the same resource. In that case we try to keep the most coherent and detailed resource.”

Table definition

This definition can also be generated through webhookdb fixture atom_single_feed_v1.

CREATE TABLE public.atom_single_feed_v1_fixture (
  pk bigserial PRIMARY KEY,
  entry_id text UNIQUE NOT NULL,
  row_created_at timestamptz,
  updated timestamptz,
  title text,
  published timestamptz,
  geo_lat numeric,
  geo_lng numeric,
  data jsonb NOT NULL
);
CREATE INDEX IF NOT EXISTS svi_fixture_row_created_at_idx ON public.atom_single_feed_v1_fixture (row_created_at);
CREATE INDEX IF NOT EXISTS svi_fixture_updated_idx ON public.atom_single_feed_v1_fixture (updated);
CREATE INDEX IF NOT EXISTS svi_fixture_published_idx ON public.atom_single_feed_v1_fixture (published);