Tutorial: Use revisions to make non-breaking API changes safely
When your API is ready to go and is used by developers, you eventually need to make changes to that API and at the same time not disrupt callers of your API. It's also useful to let developers know about the changes you made.
In Azure API Management, use revisions to make non-breaking API changes so you can model and test changes safely. When ready, you can make a revision current and replace your current API.
For background, see Versions & revisions and API Versioning with Azure API Management.
In this tutorial, you learn how to:
- Add a new revision
- Make non-breaking changes to your revision
- Make your revision current and add a change log entry
- Browse the developer portal to see changes and change log
Prerequisites
- Learn the Azure API Management terminology.
- Complete the following quickstart: Create an Azure API Management instance.
- Also, complete the following tutorial: Import and publish your first API.
Add a new revision
Sign in to the Azure portal, and go to your API Management instance.
Select APIs.
Select Demo Conference API from the API list (or another API to which you want to add revisions).
Select the Revisions tab.
Select + Add revision.
Tip
You can also select Add revision in the context menu (...) of the API.
Provide a description for your new revision, to help remember what it'll be used for.
Select Create.
Your new revision is now created.
Note
Your original API remains in Revision 1. This is the revision your users continue to call, until you choose to make a different revision current.
Make non-breaking changes to your revision
Select Demo Conference API from the API list.
Select the Design tab near the top of the screen.
Notice that the revision selector (directly above the design tab) shows Revision 2 as currently selected.
Tip
Use the revision selector to switch between revisions that you wish to work on.
Select + Add Operation.
Set your new operation to POST, and the Name, Display Name and URL of the operation as test.
Save your new operation.
You've now made a change to Revision 2. Use the revision selector near the top of the page to switch back to Revision 1.
Notice that your new operation doesn't appear in Revision 1.
Make your revision current and add a change log entry
Select the Revisions tab from the menu near the top of the page.
Open the context menu (...) for Revision 2.
Select Make current.
Select the Post to Public Change log for this API checkbox, if you want to post notes about this change. Provide a description for your change that the developers can see, for example: Testing revisions. Added new "test" operation.
Revision 2 is now current.
Browse the developer portal to see changes and change log
If you've tried the developer portal, you can review the API changes and change log there.
- In the Azure portal, select APIs.
- Select Developer portal from the top menu.
- In the developer portal, select APIs, and then select Demo Conference API.
- Notice your new test operation is now available.
- Select Changelog near the API name.
- Notice that your change log entry appears in the list.
Next steps
In this tutorial, you learned how to:
- Add a new revision
- Make non-breaking changes to your revision
- Make your revision current and add a change log entry
- Browse the developer portal to see changes and change log
Advance to the next tutorial:
Tilbakemeldinger
Send inn og vis tilbakemelding for