Basic simulation of API GET/POST behaviour.