Making API Requests
Base URL
Section titled “Base URL”- Azure Functions Core Tools hosts the app locally at
http://localhost:7071/. - The Azure Managed API
api-pexipprovides a base URL athttps://api-pexip.azure-api.net.- A CNAME record alternate URL is
api.vc.maxconf.caThe certificate is managed by Azure Managed API Custom Domains
- Appending a
/testsuffix accesses the testing endpoints. ### THIS NEEDS REVIEW
- A CNAME record alternate URL is
API Endpoints
Section titled “API Endpoints”- After running
func host start, you will be able to view endpoints by navigating tohttp://localhost:7071/docs - The OpenAPI spec is automatically generated as a feature of FastAPI, the ASGI framework being leveraged in this project
Authentication
Section titled “Authentication”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_credentialsclient_id: {your_client_id}client_secret: {your_client_secret}scope: 9a0a9a5a-c866-4fcf-ba1c-7933ccd1d6c7/.defaultReplace {your_client_id} and {your_client_secret} with your client credentials.