Skip to content

Sources

Get all Source

GET /api/data/sources

Returns all the Sources available

Response

The response is an array of Sources

[
    {
        "_id": "65e06cac93d4be23246f8f3d",
        "type": "GOOGLE_SHEET",
        "name": "Sources-DB",
        "config": {
            "api_key": "",
            "spreadsheet": "1PzUPFBKrPDDCJMANKjzW_ofVNl_5tL05nPBCWQJ7DCk"
        },
        "tables": [],
        "createdAt": "2024-02-29T11:38:20.925Z",
        "updatedAt": "2024-02-29T11:38:20.925Z",
        "__v": 0,
        "_type": "DATAFEEDPROVIDER"
    },
    {
        "_id": "65e0b0fd93d4be23246f9014",
        "type": "GOOGLE_SHEET",
        "name": "MySource",
        "config": {
            "api_key": "",
            "spreadsheet": "1hphETItGid_WB4ix9zENdoKGPKHdeB0lMjL_dJPnTGU"
        },
        "tables": [],
        "createdAt": "2024-02-29T16:29:49.351Z",
        "updatedAt": "2024-02-29T16:29:49.351Z",
        "__v": 0,
        "_type": "DATAFEEDPROVIDER"
    }
]

Get the Source by ID

GET /api/data/sources/:id

Returns the information of the Source specified

Parameter Value Description
id id The id of the Source

Response

The response is the information of the Source specified

{
    "_id": "65e0b0fd93d4be23246f9014",
    "type": "GOOGLE_SHEET",
    "name": "MySource",
    "config": {
        "api_key": "",
        "spreadsheet": "1hphETItGid_WB4ix9zENdoKGPKHdeB0lMjL_dJPnTGU"
    },
    "tables": [],
    "createdAt": "2024-02-29T16:29:49.351Z",
    "updatedAt": "2024-02-29T16:29:49.351Z",
    "__v": 0,
    "_type": "DATAFEEDPROVIDER"
}