Skip to content

Adding required infra for Activity.Api integration with APIM#62

Merged
willvelida merged 12 commits intomainfrom
feature/activity.api/apim_infra
Jul 9, 2025
Merged

Adding required infra for Activity.Api integration with APIM#62
willvelida merged 12 commits intomainfrom
feature/activity.api/apim_infra

Conversation

@willvelida
Copy link
Owner

This pull request introduces significant updates to the infra/apps/activity-api infrastructure code, primarily to integrate the Activity API with Azure API Management (APIM). The changes include the addition of new parameters, resources, modules, and operations to enable APIM functionality for the Activity API.

APIM Integration:

  • Added a new parameter apimName to specify the name of the API Management instance used by the Activity API. (infra/apps/activity-api/main.bicep, infra/apps/activity-api/main.dev.bicepparam) [1] [2]
  • Introduced a new existing resource apim of type Microsoft.ApiManagement/service to represent the APIM instance. (infra/apps/activity-api/main.bicep)
  • Defined a new module activityApiProduct to manage APIM product configurations, linking it to the APIM instance and a product name. (infra/apps/activity-api/main.bicep)

API Operations in APIM:

  • Added a new resource activityApimApi to define the Activity API in APIM, including properties like path, displayName, serviceUrl, and subscription requirements. (infra/apps/activity-api/main.bicep)
  • Created multiple APIM API operations:
    • activityApiGetAll: A GET operation at / to retrieve all activity summaries.
    • activityApiGetByDate: A GET operation at /{date} to retrieve activity summaries for a specific date, with a template parameter for the date.
    • activityApiHealthCheck: A GET operation at /healthz/liveness for a liveness health check endpoint.

Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
@willvelida willvelida merged commit 2580a22 into main Jul 9, 2025
12 of 13 checks passed
@willvelida willvelida deleted the feature/activity.api/apim_infra branch July 9, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant