zalando / innkeeper

Simple route management API for Skipper
Other
166 stars 21 forks source link

Create a /deleted-routes resource #63

Closed danpersa closed 8 years ago

danpersa commented 8 years ago

As a routes admin, I'd like to be able to see and remove the oldly deleted routes from the database So that I keep the routes database clean

danpersa commented 8 years ago

My proposal for the API is this:

GET /deleted-routes 
  -> all deleted routes
GET /deleted-routes/${deletedBeforeDate} 
  -> all of the routes deleted before the specified date
DELETE /deleted-routes/${deletedBeforeDate} 
  -> remote all of the routes deleted before the specified date from the database
      (and log who did that)
c00ler commented 8 years ago

To make it simpler let's do only

GET /deleted-routes/${deletedBeforeDate} 
  -> all of the routes deleted before the specified date
DELETE /deleted-routes/${deletedBeforeDate} 
  -> remote all of the routes deleted before the specified date from the database
      (and log who did that)

I will do it in two steps. First GET operation and then DELETE in the next pull request.

danpersa commented 8 years ago

sounds like a good idea :+1: