apioo / fusio

Open source API management platform

Home Page:https://www.fusio-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not create again route with the same path after it was deleted

GNazar opened this issue · comments

commented

Steps:

  1. Create route with path/test
  2. Delete route with path/test
  3. Create route with path/test.
    Result: Can't create route, error ocurred "The server encountered an internal error and was unable to complete your request."

Hi, so the reason for this behaviour is, that if you delete a route we only mark the route as deleted, we dont actually delete the route from the table. This has the benefit, that you can restore the route in case of an error and all related log entries etc. are valid. Because of this you cant create the same route again but you can easily restore the deleted route.

commented

Understood, thank you