Create an abstract api controller to remove duplicated code. Bug fix serialization configuration.