serverless / serverless-azure-functions

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

Remove `x-azure-settings` from function configuration #371

Open tbarlow12 opened 5 years ago

tbarlow12 commented 5 years ago

This is a Feature Proposal

Description

functions:
  hello:
    handler: hello/hello.main
    events:
      - http: true
        x-azure-settings:
          methods:
            - GET
          authLevel: anonymous

would become:

functions:
  hello:
    handler: hello/hello.main
    events:
      - http:
          methods:
             - GET
          authLevel: anonymous

and the configuration:

storageBlob:
    handler: src/handlers/storageBlob
    events:
      - blob:
        x-azure-settings:
          name: blob
          path: blob-sample/{blobName}
          connection: AzureWebJobsStorage

would become:

storageBlob:
    handler: src/handlers/storageBlob
    events:
      - blob:
          name: blob
          path: blob-sample/{blobName}
          connection: AzureWebJobsStorage

This also would remove the http: true for HTTP triggers, which is inconsistent with the rest of the triggers. Its existence would imply true

Similar or dependent issues: