Duplicated previous functionality of API with grape