crime-data-api
crime-data-api copied to clipboard
WIP: Versioning the API
Fixes #140
The idea would be to move stuff into specific directories and either import
from previous versions (base implmentations) or duplicate code for when an endpoint is changed from one version to the next.
@cacraig: I haven't finished work on this (would want to try out with a v1 API, but how does this look generally?
This looks good to me @harrisj - Versioning will be important moving forward. How do we want to name the routes? /beta/... or /v1/.... ?
I was thinking we would keep the beta
ones without a version to not break the CDE for now, but would try to move to /v1
. Then we'd kill the beta version Two things:
- Should we wait until we remove some endpoints like TableFamily ones first before we attempt this?
- I'm not sure if it's better to copy endpoints to the new version or
import
them. It seems like we'd also need to have a versioned Swagger to test old and new versions work
So I added some documentation to the README about this. Not sure if you all still like this approach. I'm thinking of disabling CodeClimate since this will mean more duplication