Sources

An source defines how data was sourced and for what purpose it can be used.

Get all sources

You can retrieve all sources.

GET /source/ HTTP/1.1
Host: [DIGITA_HOST]
Authorization: Bearer [ACCESS_TOKEN]
[
    {
        "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
        "icon": "",
        "description": "Lorem ipsum",
        "type": "SOLID",
        "configuration": { ... },
        "state": "PREPARED"
    },
    {
        "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
        "icon": "",
        "description": "Lorem ipsum",
        "type": "SOLID",
        "configuration": { ... },
        "state": "PREPARED"
    }
]

Get one source

You can retrieve a single source.

GET /source/[SOURCE_URI] HTTP/1.1
Host: [DIGITA_HOST]
Authorization: Bearer [ACCESS_TOKEN]
{
    "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
    "icon": "",
    "description": "Lorem ipsum",
    "type": "SOLID",
    "configuration": { ... },
    "state": "PREPARED"
}

Create one source

You can create a single source.

POST /source/ HTTP/1.1
Host: [DIGITA_HOST]
Authorization: Bearer [ACCESS_TOKEN]

{
    "icon": "",
    "description": "Lorem ipsum",
    "type": "SOLID",
    "configuration": { ... },
    "state": "PREPARED"
}
{
    "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
    "icon": "",
    "description": "Lorem ipsum",
    "type": "SOLID",
    "configuration": { ... },
    "state": "PREPARED"
}

Update one source

You can update a single source.

PUT /source/[SOURCE_URI] HTTP/1.1
Host: [DIGITA_HOST]
Authorization: Bearer [ACCESS_TOKEN]

{
    "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
    "icon": "",
    "description": "Lorem ipsum",
    "type": "SOLID",
    "configuration": { ... },
    "state": "PREPARED"
}
{
    "uri": "https%3A%2F%2Fexample.org%2Fsource%2F1234-5678-9012-3456",
    "icon": "",
    "description": "Lorem ipsum",
    "type": "SOLID",
    "configuration": { ... },
    "state": "PREPARED"
}