same bottle rest api implementation