added contnet-type application/json to API endpoints and tests
Merge pull request #13 from fleur/master

added contnet-type application/json to API endpoints and tests