Skip to content

Commit

Permalink
adds an internal APIM page which is not in the nav
Browse files Browse the repository at this point in the history
  • Loading branch information
pacharanero committed Dec 15, 2023
1 parent 3d8f324 commit cad75f8
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/_assets/_stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@

/* FONTS & TYPESETTING */

.md-typeset {
font-weight: 400;
}

/* Makes links a little bolder */
.md-typeset a {
font-weight: 600;

}

.md-typeset h1 {
font-weight: 700;
/* font-size: 24pt; */
Expand Down
48 changes: 48 additions & 0 deletions docs/internal/azure-apim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Azure API Management Platform
reviewers: Dr Marcus Baw
audience: rcpch-staff
---

!!! warning
**THIS PAGE IS INTENTIONALLY HIDDEN FROM THE NAVIGATION MENU.** <br/>
**IT IS NOT INTENDED FOR PUBLIC CONSUMPTION.**

We use the Azure API Management platform to manage access to the API. It functions as a central 'proxy' server, intercepting all requests to our API and checking that the user has a valid subscription, before passing valid requests on to the individual API backend services, for example the Digital Growth Charts API server.

This allows us to have a single point of access for all our APIs, and to manage access to them centrally. It also allows us to monitor usage of the APIs, and to set limits on the number of requests that can be made.

## Azure APIM

There are three important URLs for the Azure APIM, and it's important to understand the difference between them, and what they are each used for.

### [portal.azure.com](https://portal.azure.com/#@rcpch.ac.uk/resource/subscriptions/99e313f5-79fe-4480-b867-8daf2800cf22/resourceGroups/RCPCH-Dev-API-Growth/providers/Microsoft.ApiManagement/service/RCPCH-Growth-Charts/overview)

This is the RCPCH's Azure Portal Admin backend, where we can see and configure the APIM service. You will need to log in with your RCPCH Microsoft account. If you can't access it, you need to ask the RCPCH IT team to enable access.

### [dev.rcpch.ac.uk](https://dev.rcpch.ac.uk)

This is the 'Developer Portal', a website where customers can create and manage subscriptions to the API. They create an account using an email address and a password, and then can create an 'app', which can then be connected to an API subscription. They can then use the API keys generated from within this portal to access the API. API requests sent to `dev.rcpch.ac.uk` will be ignored.

### [api.rcpch.ac.uk](https://api.rcpch.ac.uk)

This is the API 'Gateway', a service URL which is where the API requests are sent by our customers. Importantly it is **not** the developer portal. API keys must be supplied in the authentication header of the request, and the APIM will check that the key is valid before passing the request on to the API backend service. Visiting this URL in a normal browser will result in a 404 Not Found error.

## Finding and managing a User

* It is much easier to search for Users than Subscriptions. Go to the [Users](https://portal.azure.com/#@rcpch.ac.uk/resource/subscriptions/99e313f5-79fe-4480-b867-8daf2800cf22/resourceGroups/RCPCH-Dev-API-Growth/providers/Microsoft.ApiManagement/service/RCPCH-Growth-Charts/apim-users) section by following the link, or by finding it in the left sidebar.
* Using the filter box, the User list can be searched by Email or by Full Name.
* The list can be sorted by clicking on the column headers.
* Once you have found the User you are looking for, click on their name to open their profile.
* For active users, a password reset can be initiated for them from this page - however it is advised that they are asked to do this themselves from the Developer Portal.
* Click on the Subscriptions to see a list of all their subscriptions.

## Managing a Subscription

* Once the Subscription is identified, clicking on that row will open the Subscription details.
* In this screen it is possible to:
* Amend the **Display name** of the Subscription. This is the name that will be displayed in the Developer Portal, and it is the only searchable field when the [Subscriptions view](https://portal.azure.com/#@rcpch.ac.uk/resource/subscriptions/99e313f5-79fe-4480-b867-8daf2800cf22/resourceGroups/RCPCH-Dev-API-Growth/providers/Microsoft.ApiManagement/service/RCPCH-Growth-Charts/apim-subscriptions) is being used in the APIM Portal.
* Change the **Scope** of the Subscription's API access. This can either be 'All APIs', a specific single API, or a Product. At RCPCH we have our APIs grouped into Products, so that a single subscription can be used to access multiple APIs. This is useful for customers who want to use both the Digital Growth Charts and other APIs.
* Change the **Product** that the Subscription is associated with. This is only relevant if the Scope is set to 'Product', and will be greyed out otherwise.
* The most likely admin action is to upgrade or downgrade a Subscription between Products. For example if a customer has paid to upgrade from the Free Tier to the Enterprise Tier, this is one area that the upgrade can be done.
* **To save changes, click the Save button at the bottom of the screen.**
9 changes: 9 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ nav:
- 'technical/status.md'
- Contact: 'about/contact.md'

# `not_in_nav` will prevent 'The following pages exist in the docs directory, but are not included in the "nav" configuration:' warnings
not_in_nav:
- _assets/_snippets/dgc-platform-comprises.md
- _assets/_snippets/docs-contributions.md
- _assets/_snippets/htn-award.md
- _assets/_snippets/self-host-warning.md
- _utilities/page-template.md
- internal/azure-apim.md

theme:
name: material
custom_dir: rcpch-theme
Expand Down

0 comments on commit cad75f8

Please sign in to comment.