Edited the rest api.
Rest api now parses request and call validate bid.