harvest
Preview an harvesting from a source created with the given payload
Changed onpost/harvest/source/preview/
Request
- Base URLhttps://dados.gov.pt/api/1
- URLhttps://dados.gov.pt/api/1/harvest/source/preview/
- Authnone declared
Headers
X-Fieldsstring mask
An optional fields mask
Request body
Example request
{
"backend": "ckan",
"last_job": {
"items": [
{
"dataservice": {
"title": "My awesome API"
},
"status": "pending"
}
],
"status": "pending"
},
"validation": {
"state": "pending"
}
}Response
Success
Example response
{
"items": [
{
"dataservice": {
"title": "My awesome API"
},
"dataset": {
"access_audiences": [
{
"condition": "yes",
"role": "local_authority_and_administration"
}
],
"community_resources": [
{
"checksum": {
"type": "sha1"
},
"filetype": "file",
"type": "main"
}
],
"contact_points": [
{
"role": "contact"
}
],
"frequency": "continuous",
"resources": [
{
"checksum": {
"type": "sha1"
},
"filetype": "file",
"type": "main"
}
],
"spatial": {
"geom": {
"type": "Point"
}
}
},
"status": "pending"
}
],
"status": "pending"
}Changes
- breaking
api path removed without deprecation
- info
endpoint added
- breaking