openstate / open-cultuur-data

The back- and front-end code that powers the Open Cultuur Data API
http://opencultuurdata.nl/
28 stars 18 forks source link

Bron erfgoed_leiden_beeldbank does not exist #98

Closed ddeboer closed 9 years ago

ddeboer commented 9 years ago
$ http POST api.opencultuurdata.nl/v0/erfgoed_leiden_beeldbank/search query=breestraat

returns:

HTTP/1.1 404 NOT FOUND
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 87
Content-Type: application/json
Date: Fri, 13 Mar 2015 08:15:38 GMT
Server: nginx/1.4.1

{
    "error": "Source 'erfgoed_leiden_beeldbank' does not exist",
    "status": "error"
}
breyten commented 9 years ago
$ curl -i -XPOST 'http://api.opencultuurdata.nl/v0/erfgoed_leiden_beeldbank/search' -d '{
   "query": "een",
   "facets": {
      "collection": {},
      "date": {"interval": "day"}
   },
   "filters": {
      "media_content_type": {"terms": ["image/jpeg", "video/webm"]}
   },
   "size": 1
}'

Remember it's a post request :) (for now at least)