30
loading...
This website collects cookies to deliver better user experience
Endpoint | HTTP Verb | Summary |
---|---|---|
https://www.cloudwithchris.com/episodes | GET | Gets a collection of episodes |
https://www.cloudwithchris.com/episodes/1 | GET | Gets the details of the Episode Object with ID 1 |
https://www.cloudwithchris.com/episodes/ | POST | Creates a new Episode Object in the Episodes collection. ID will be generated by the system, typically provided in the HTTP response. (Typically a body of information, e.g. JSON representation of the object is sent in the HTTP Request) |
https://www.cloudwithchris.com/episodes/1 | PUT | Checks if an Episode with ID 1 exists. If it does, then update it - otherwise - create a new resource with that ID. (Typically a body of information, e.g. JSON representation of the object is sent in the HTTP Request) |
https://www.cloudwithchris.com/episodes/1 | PATCH | Updates the Episode with ID 1 |
https://www.cloudwithchris.com/episodes/1 | DELETE | Deletes the Episode with ID 1 |
https://www.cloudwithchris.com/episodes/1/platforms | GET | Gets a collection of platforms where episode 1 is available |
https://www.cloudwithchris.com/episodes/1/platforms | POST | Adds a new item(s) to the platforms collection for Episode 1 (Typically a body of information, e.g. JSON representation of the object is sent in the HTTP Request) |
Tip: In case you're new to HTTP Request Methods - The GET, POST, PUT, PATCH and DELETE (among others) are well defined method that indicate the desired action when you make an HTTP request to a URL. Look at the list above, and you'll notice that there are a few URLs that are identical.
The HTTP Request Method helps inform the API the intent of the request (i.e. are we creating/updating data, retrieving data, or deleting data). This then helps the backend API determine how to handle the request, and what action to take.
You can find more information at the Mozilla Developer Network docs.
{{resourcename}}.azure-api.net
.Tip: Your requirements will truly influence which SKU fits your needs best. Make sure to review the different tiers and feature comparison, so that you can choose appropriately. For the purposes of this blog post, we'll stick with the consumption tier.
Tip: Once the logger has been associated with your API Management instance, this can be enabled on an API by API basis.
Tip: Think of it in a similar way to hosting an Azure Function. You could deploy an Azure Function into an App Service where you set the scalability limits, and are charged based upon instances used/deployed.
Alternatively, you could deploy it into a Consumption plan which scales automatically, and you are charged based upon usage.
Note: We won't really be using the system-assigned managed identity in this blog post. However, we may use it in future posts relating to this series.
Note: As we're creating an API Management resource under the consumption tier, it should only take a few minutes to create. The other tiers (Developer, Basic, Standard and Premium) all take a longer period of time to spin up the underlying infrastructure.
https://conferenceapi.azurewebsites.net?format=json
.Tip: Feel free to explore the user interface at this point. It's worthwhile becoming familiar with the different levels that you can operate at (e.g. All APIs, All Operations, Specific Operations), as you can associate policies and change the backend details at each of these levels.
Tip: This is a quick and easy way to test your APIs, including the policies that are applied to your API operations. For example, if JWT Authorization is specified for an API operation, then an Authorization header would be expected, otherwise you would see a failure from API management.
Revisions allow you to make changes to your APIs in a controlled and safe way. When you want to make changes, create a new revision. You can then edit and test API without disturbing your API consumers. When you're ready, you then make your revision current. At the same time, you can optionally post an entry to the change log, to keep your API consumers up to date with what has changed. The change log is published to your developer portal.
;rev=2
after the API Management instance domain name.Versions and revisions are distinct features. Each version can have multiple revisions, just like a non-versioned API. You can use revisions without using versions, or the other way around. Typically versions are used to separate API versions with breaking changes, while revisions can be used for minor and non-breaking changes to an API.
Tip: Note that the UI hints that you must associate your API with a product for it to be published and showing as available to your consumers in the developer portal.
Do remember that the developer portal is not an available option in the Consumption mode.
30