Skip to content

Routes

Lister ses collections

Request example

curl -X GET \
  https://api.prisme.ai/v1/resources/dataflow \
  -H 'X-Parse-Session-Token: Access Token'

Response example

Code : 200

{
    "length": 1,
    "resources": [
        {
            "settings": {
                "collection": "Cities",
                "userId": "..."
            },
            "type": "dataflow",
            "name": "Cities",
            "description": "gre",
            "category": "-1",
            "ownerId": {
                "__type": "Pointer",
                "className": "PublicUser",
                "objectId": "xxx"
            },
            "createdAt": "2021-02-04T18:19:00.848Z",
            "updatedAt": "2021-02-04T18:19:00.848Z",
            "objectId": "moibFWc7A5"
        }
    ]
}

Créer une collection

Request example

curl --location --request POST 'https://api.prisme.ai/v1/resources/dataflow/' \
--header 'X-Parse-Session-Token: Access Token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name":"Nom",
    "description":"Description"
}'

Response example

Code : 200

{
    "type": "dataflow",
    "name": "Nom",
    "description": "Description",
    "category": "-1",
    "ownerId": {
        "__type": "Pointer",
        "className": "PublicUser",
        "objectId": "xxxx"
    },
    "settings": {
        "collection": "Nom",
        "userId": "xxxx"
    },
    "createdAt": "2021-06-03T15:22:53.351Z",
    "updatedAt": "2021-06-03T15:22:53.351Z",
    "objectId": "xxx"
}

Supprimer une collection

Request example

curl --location --request DELETE 'https://api.prisme.ai/v1/resources/dataflow/COLLECTION_ID' \
--header 'X-Parse-Session-Token: Access Token' \

Response example

Code : 200