PlanetaryComputerDataCatalog/api
Matt McFarland 7bb308529b
Use SWA API endpoint to generate azmap token (#458)
Use api endpoint to generate az maps token
2024-03-06 13:44:53 -05:00
..
map-token Use SWA API endpoint to generate azmap token (#458) 2024-03-06 13:44:53 -05:00
survey Limit account request body size (#283) 2022-04-27 21:43:23 -04:00
.funcignore Setup Azure function to submit account survey 2021-03-11 17:18:11 -05:00
.gitignore Add timelapse animation export (#343) 2022-07-20 13:34:42 -04:00
Dockerfile Use SWA API endpoint to generate azmap token (#458) 2024-03-06 13:44:53 -05:00
README.md Use SWA API endpoint to generate azmap token (#458) 2024-03-06 13:44:53 -05:00
host.json Prototype OIDC auth and proxy flow (#235) 2022-02-16 15:21:55 -05:00
local.settings.sample.json Animation enhancements (#360) 2022-09-21 20:29:24 -04:00
proxies.json Remove function app auth & use API queryables (#241) 2022-02-24 16:47:27 -05:00
requirements-dev.txt Prototype OIDC auth and proxy flow (#235) 2022-02-16 15:21:55 -05:00
requirements.txt Use SWA API endpoint to generate azmap token (#458) 2024-03-06 13:44:53 -05:00

README.md

Azure Function App

The Azure Static Web App service includes an auto-deployed Function API that is managed by convention, as described in the service documentation.

Local development

The API can be run locally following these instructions or by running ./scripts/server --api.

To set appropriate configuration values for the Function app, copy the local.settings.sample.json file to local.settings.json. This settings file is .gitignored and will contain sensitive secrets, so take appropriate precautions.

Development Configuration

The local.settings.json file has the following keys in the Values section:

Key KeyVault Key Purpose
NotificationHook URL to send Teams notification on new Account Request
AuthAdminUrl URL to the PC ID admin page which contains the signup table. Used in the Teams notification message.
SignupUrl URL to POST new user content to on submission
SignupToken pc-id--request-auth-token Bearer token required to make the above POST request

Production

These values, or their production equivalents, are configured in the Static Web App App Configuration section.