Made fews in interface of rest api.