From the course: Planning a Versioned RESTful API with Claude

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Strategy selection process

Strategy selection process

- [Instructor] Back in Claude and inside the same project that we started with, I'm going to ask the first question, which is to understand how API versioning works and the prompt that I past here says I want to find out what are some of the ways to provide API version when making an API call. At this point in time, I don't want a detailed answer, all I need is a summary. So I'm going to choose the concise option here. I'm going to hit send. So as you can see, it gives us a few options. First is we can encode the version in the URL. The other one is we can send version in query parameters. The third one is the custom HTTP header. The fourth one is the accept header, which sends the version plus JSON and fifth one to change the host name based on the versions. Now these are five different ways and there is no right or wrong answer, it's just that they all have different trade offs. So I have a follow up question because I'm not yet sure as the designer of the API of which one should I…

Contents