updated api specification
packageModel: replaced the improvised sql statement with the correct one
apiController: fixed compare bug
apiController: removed unnecessary return
apiController: implemented request