Los Angeles prosecutors have rested in their case at the trial of rapper A$AP Rocky.