-
Notifications
You must be signed in to change notification settings - Fork 2
Remove /${trapiVersion}/
URL prefix
#551
Comments
Yes, we want to keep that. As new trapi releases are made, Translator wanted to be able to have deployments that can transition from one to the next. It is my understanding that all KP's & such are expected to rollout trapi specific deployments of their code upon each new trapi release. It is extra work to re-register the endpoints. |
But I think either way we need to register different endpoints. The different URLs with different TRAPI versions are different locations. As far as I'm aware there isn't a standardized API for changing TRAPI version. I think it would simplify things to remove this part of the path. |
It seems to me like we have at least three options here:
Jim, Jason: Are these all the options we're considering, or is there a better option I'm missing? Which ones do y'all think would work best? |
For the TRAPI 1.3 release, I'm going to go with a modified version of option 1 above:
I considered going full Git Flow and having a separate master branch (for CAM-KP-API 0.1.2) and develop branch (for CAM-KP-API 0.1.3), but our current Github Flow approach seems to be working well for everybody, so let's not change that unless we have to. We can keep this approach for TRAPI 1.4 and beyond until we run into a problem with this approach, and which point we can reconsider the three options listed above (or any new options that become available to us then). I'll go ahead and close this issue with this resolution, but if anybody has any objections, please feel free to reopen it! |
Several pieces of code establish a
/${trapiVersion}/
URL prefix for the CAM-KP-API server:cam-kp-api/src/main/scala/org/renci/cam/Server.scala
Lines 169 to 172 in ef6aa29
cam-kp-api/src/it/scala/org/renci/cam/it/ProdQueryServiceTest.scala
Line 40 in ef6aa29
https://github.com/helxplatform/translator-devops/blob/1db3a7cffdb2b28ce3970b1f3a09b28769cc62e1/helm/cam-kp-api/templates/deployment.yaml#L27-L28
I think this was intended to ensure that we could host multiple TRAPI versions simultaneous, but I don't think we plan to do that. It therefore creates additional work for us as we move to TRAPI v1.3, since our server endpoint will change to
/1.3/
instead of/1.2/
and we will need to re-register all our endpoints with SmartAPI (#550).Is there any other reason for keeping this prefix? If not, I'll go ahead and remove them from our code.
The text was updated successfully, but these errors were encountered: