Skip to content

Feeds

Get all Feeds

GET /api/data/feeds

Returns all the Feeds available

Response

The response is an array of Feeds

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[
    {
        "_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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{
    "_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"
}