Rest api

Small bug fix in Codeiginiter