api get and post working.