Skip to content

Feeds

Get all Feeds

GET /api/data/feeds

Returns all the Feeds available

Response

The response is an array of Feeds

[
    {
        "_id": "65e06cd293d4be23246f8f6c",
        "type": "SOURCE",
        "name": "MyFeed",
        "path": "/",
        "source": {
            "provider": "65e06cac93d4be23246f8f3d",
            "query": "A1:B",
            "args": {
                "hasHeaderRow": true
            }
        },
        "createdAt": "2024-02-29T11:38:58.892Z",
        "updatedAt": "2024-02-29T11:38:58.892Z",
        "__v": 0,
        "_type": "DATAFEED"
    },
    {
        "_id": "65e0af8993d4be23246f8fdf",
        "type": "SOURCE",
        "name": "MyOtherFeed",
        "path": "/",
        "source": {
            "provider": "65e06cac93d4be23246f8f3d",
            "query": "A",
            "args": {
                "spreadsheet": ""
            }
        },
        "createdAt": "2024-02-29T16:23:37.932Z",
        "updatedAt": "2024-02-29T16:23:37.932Z",
        "__v": 0,
        "_type": "DATAFEED"
    }
]

Get the Feed by ID

GET /api/data/feeds/:id

Returns the information of the Feed specified

Parameter Value Description
id id The id of the Feed

Response

The response is the infomation of the Feed specified

{
    "_id": "65e06cd293d4be23246f8f6c",
    "type": "SOURCE",
    "name": "MyFeed",
    "path": "/",
    "source": {
        "provider": "65e06cac93d4be23246f8f3d",
        "query": "A1:B",
        "args": {
            "hasHeaderRow": true
        }
    },
    "createdAt": "2024-02-29T11:38:58.892Z",
    "updatedAt": "2024-02-29T11:38:58.892Z",
    "__v": 0,
    "_type": "DATAFEED"
}