Get CSVW
GET/api/files/:id/csvw
Get the CSVW of a file.
Request
Path Parameters
id stringrequired
Responses
- 200
- 403
- application/json
- Schema
- Example (auto)
Schema
@contextstring[]required
Example:
["http://example.com/csvw.json"]
tables object
{
"@context": [
"http://example.com/csvw.json"
],
"tables": {
"url": "http://example.com/table.csv",
"tableSchema": {
"columns": [
{
"name": "http://example.com/tableSchema.json"
}
]
},
"dialect": {
"header": true
}
}
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Authorization: oauth2
name: oauth2type: oauth2scopes:controlplane_dataplane
flows: { "password": { "scopes": { "analyticsdataplane_admin": "analyticsdataplane_admin", "analyticsdataplane_dataplane": "analyticsdataplane_dataplane" } } }
- curl
- http
- CURL
curl -L 'https://tsg.dataspac.es/api/files/:id/csvw' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'