serverless / serverless-azure-functions

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

feat: Invoke APIM endpoint #442

Closed tbarlow12 closed 4 years ago

tbarlow12 commented 4 years ago

What did you implement:

Invocation for APIM endpoint.

How did you implement it:

Instead of boolean for local invocations, added InvokeMode enum for FUNCTION, LOCAL and APIM. Fixed query string to not have the equal sign encoded into %3D by using the querystring package. Added tests.

How can we verify it:

Deploy a function app with APIM configured (apim: true), and then run sls invoke apim ... like you would invoke your function normally. You will see the APIM endpoint logged to the console and the result is returned like normal.

Todos:

Note: Run npm run test:ci to run all validation checks on proposed changes

Is this ready for review?: YES
Is it a breaking change?: NO