I have seen permutations of this scenario multiple times. I have some sympathy for organizations in this situation, but it is entirely self-inflicted.
On the bright side, I learned a lot about building and working on RESTful APIs during the re-negotiation period where I might become the new developer