added example and fixed post request