serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 161 forks source link

Unable to configure function endpoints #547

Open glockenbach opened 3 years ago

glockenbach commented 3 years ago

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

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)

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