Ask a Question

API versioning via Accept header approach

spg
Visitor

API versioning via Accept header approach

I would to like to bring versioning concept to one of my API. I decided to go with "Accept header" (a.k.a MIME Type or content negotiation) approach.

 

application/vnd.me.v1+json  => should return response which is part of V1

application/vnd.me.v2+json  => should return response which is part of V2.

 

Can anyone help me achieve my goal?

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: