GET
/
v1
/
data-sources
/
{dataSourceId}
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/data-sources/{dataSourceId} \
  --header 'Authorization: Basic <encoded-value>'
{
"dataSource": {
"id": "abc123",
"aclObject": "jkl789",
"name": "My data source",
"lastUpdatedTime": "2024-01-17T11:46:13.481826Z",
"version": 3,
"type": "CSV",
"columnsMetadata": [
{
"name": "fullname",
"type": {
"name": "STRING"
}
},
{
"name": "dob",
"type": {
"name": "DATE",
"format": "iso8601"
}
},
{
"name": "admin",
"type": {
"name": "BOOLEAN"
}
},
{
"name": "retryLimit",
"type": {
"name": "INTEGER"
}
}
],
"state": "ENABLED",
"links": {
"self": "/v1/data-sources/abc123",
"acl": "/v1/data-sources/abc123/acl{?subjectId}"
}
}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dataSourceId
string
required

Query Parameters

data-view
enum<string>
default:none

Optionally request a view of the data source's row data. If omitted, no rows will be returned in the response.

  • preview - Returns the first few rows of data contained in the data source.
  • none - Returns no rows.
Available options:
none,
preview

Response

200
application/json

Success

The response is of type object.