adding post on JSON to API