Fix the API

Get post requests working.