Skip to content

Making API Requests

  • Azure Functions Core Tools hosts the app locally at http://localhost:7071/.
  • The Azure Managed API api-pexip provides a base URL at https://api-pexip.azure-api.net.
    • A CNAME record alternate URL is api.vc.maxconf.ca

      The certificate is managed by Azure Managed API Custom Domains

    • Appending a /test suffix accesses the testing endpoints. ### THIS NEEDS REVIEW
  • After running func host start, you will be able to view endpoints by navigating to http://localhost:7071/docs
  • The OpenAPI spec is automatically generated as a feature of FastAPI, the ASGI framework being leveraged in this project

Authentication is not required on localhost.

To access the Azure Managed API, authentication is required.

Make a POST request to https://login.microsoftonline.com/953fc14a-00c7-4452-a2fb-0a73070de7f3/oauth2/v2.0/token with the following x-www-form-urlencoded body:

grant_type: client_credentials
client_id: {your_client_id}
client_secret: {your_client_secret}
scope: 9a0a9a5a-c866-4fcf-ba1c-7933ccd1d6c7/.default

Replace {your_client_id} and {your_client_secret} with your client credentials.