Made GET vs POST parameterised
Code and tests for getting lists