bcgov / nr-forests-access-management

Authorization solution for BC natural resource sector
Apache License 2.0
8 stars 2 forks source link

Research/Investigate Strategy on How to Versioning REST API #1344

Open ianliuwk1019 opened 4 months ago

ianliuwk1019 commented 4 months ago

Describe the task To investigate and get some knowledge and understanding on how we can version backend REST API endpoints in the future. It will be good to know how to do this when we have production release that could impact downstream apps.

Acceptance Criteria

Additional context

OlgaLiber2 commented 1 month ago

@ianliuwk1019 do you foresee us needing new API versions in the near future?

ianliuwk1019 commented 1 month ago

Hi @OlgaLiber2 I did not remember exact scenario, but this ticket probably was created when we faced some backend api change that we (me and Catherine) saw would impact prod existing function to not working and could not just push code to main code branch. Maybe it was due to rename api (name/path), or maybe was restructuring api return result, but frontend did not yet have corresponding changes to fit the whole story package.

I never did the versioning implementation for api before so am very unclear how it works as well, probably there are several ways people commonly used.

However, in general, versioning might bring many benefits and we might like to explore it.

It is a good to know how, but not urgently needed.