static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

Support Local dev experience for API Management backend

Open chuanqisun opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I have successfully linked an endpoint in API management. But there is no documentation or example to help me develop the frontend and backend together in a local environment.

Describe the solution you'd like

A way to help me to proxy /api calls into an API management endpoint. Currently, there is a big gap between this documentation: https://learn.microsoft.com/en-us/azure/static-web-apps/apis-api-management and the ability to successfully develop locally against the management API. I wish to see clear documentation about each place:

  • What should my CLI command look like?
  • What should my saw-cli.config.json look like?
  • What should the fetch() call look like?
  • What should the API management settings look like?

In addition, are there ways to cURL or Postman against my endpoint? I think that is the bare minimum to get backend development inner loop started.

chuanqisun avatar Nov 14 '24 00:11 chuanqisun

I have a similar issue, trying to use a custom backend (not Azure functions) in local dev. Can't figure it out, looks like it requires and relies only on func core. Have you managed to find a solution to this? @chuanqisun

dmbuk avatar Jun 09 '25 13:06 dmbuk