serverless-azure-functions
serverless-azure-functions copied to clipboard
Unable to configure function endpoints
This is a Bug Report
Unable to configure apim urlTemplate: /other different to the functions name.
https://sls-weur-dev-xxxxxx-apim.azure-api.net/api/v1/greet/hello <-- Works!
https://sls-weur-dev-xxxxxx-apim.azure-api.net/api/v1/greet/other <-- Does not work
Description
-
What went wrong? Then endpoint returns 404
-
What did you expect should have happened? The endpoint to return 200
-
What was the config you used?
Complete template to run at: https://github.com/glockenbach/serverless/blob/bug/apim-operations-urlTemplate/lib/plugins/create/templates/azure-python/serverless.yml
hello:
handler: src/handlers/hello.main
events:
- http: true
methods:
- GET
authLevel: anonymous
apim:
api: greet
operations:
- method: GET
urlTemplate: /other
displayName: Other (Get)
- What stacktrace or error message from your provider did you see? No errors during deployment occurs
Additional Data
Your Environment Information ---------------------------
Operating System: win32
Node Version: 14.4.0
Framework Version: 2.38.0 (standalone)
Plugin Version: 4.5.3
SDK Version: 4.2.2
Components Version: 3.9.0