prkng / api

REST API powering Prkng apps and Web services
MIT License
10 stars 8 forks source link

Delete entries from Checkin history #5

Closed mudar closed 8 years ago

mudar commented 8 years ago

@ArnaudA

Currently, the app doesn't allow the user to delete a checkin. Do we want to allow that in the future? It could be helpful for privacy reasons, or simply if the user likes to have a clean history with only his favorite spots.

ArnaudA commented 8 years ago

Yes, in the history, if we can "with a swipe" on a checkin remove it it can be nice. However, it only disappear on the app-side. We keep everything on our side. ps : if swipe isn't a natural behavior on android we can add a small cross icon on the right side :)

antonino-u commented 8 years ago

Je dirais c’est pas une mauvaise idée, facile à faire. On pourrait juste avoir un “hidden” flag sur les éléments retourné. Plus un endpoint qui les marques “hidden”.

peakwinter commented 8 years ago

A call to DELETE /v1/checkins will now clear the user's history, making sure nothing gets returned on GET /v1/checkins. This does not delete the checkin server-side, rather just hides them. The checkin is still available when fetched via GET /v1/checkins/{id}.