rails 3 response format and versioning using vendor MIME type in the Accept header

后端 未结 2 1871
难免孤独
难免孤独 2021-02-04 00:11

Preamble:

I investigated how to version an API and found several ways to do it. I decided to try peter williams\' suggestion and created new vendor mi

2条回答
  •  攒了一身酷
    2021-02-04 00:33

    For the answer: see the question :-)

    In short, there are different solutions, of which one is in the question above:

    • Monkey-patch Array to implement a method that will give the (old) v1 JSON back

提交回复
热议问题