Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] APIのバージョン管理をできるようにしたい #147

Open
mashita1023 opened this issue Nov 25, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mashita1023
Copy link
Contributor

目的

APIに破壊的変更があった際にフロントエンドが動かなくなって困ってしまうのでなんとかしたい。
v1とかいう方法じゃない方が嬉しい(ようはdeprecatedにして後で消せればいいだけなのでバージョン管理する必要性は皆無)

達成条件

v1, v2ごとにディレクトリで分かれていてコピペで動くようなコードにしてはいけない
バージョン表記がなかったら最新バージョンで動くようにしたい(Headerにするなら)

想定される実装内容

  1. リソースパスを変更して/v1/XXXという形式にする
  2. request headerのAcceptを読み取って判断

その他

@mashita1023 mashita1023 added the enhancement New feature or request label Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant