zalando-nakadi / nakadi-manual

DEPRECATED !!! Please use the new Nakadi website
https://zalando.github.io/nakadi/index.html
MIT License
8 stars 5 forks source link

Add ContentType header to documentation #35

Closed MALPI closed 7 years ago

MALPI commented 8 years ago

The documentation for Creating an Event Type should state that the header Content-Type is needed in order to execute a valid request.

curl -v -H "Content-Type: application/json" -XPOST http://localhost:8080/event-types -d '{ "name": "order_received", "owning_application": "acme-order-service", "category": "business", "partition_strategy": "random", "enrichment_strategies": ["metadata_enrichment"], "schema": { "type": "json_schema", "schema": "{ \"properties\": { \"order_number\": { \"type\": \"string\" } } }" } }'

lmontrieux commented 7 years ago

Fixed and merged to master.