You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1)Open the terminal, navigate to the project folder, and run the following commands:
48
+
Open the terminal, navigate to the project folder, and run the following commands:
49
49
50
+
#### bash
50
51
```bash
51
52
python -m venv .venv
52
53
source .venv/bin/activate
53
54
```
54
55
56
+
#### PowerShell
57
+
```powershell
58
+
py -m venv .venv
59
+
.venv/scripts/activate
60
+
```
61
+
62
+
#### Cmd
63
+
```cmd
64
+
py -m venv .venv
65
+
.venv/scripts/activate
66
+
```
67
+
55
68
### Using Functions CLI
69
+
56
70
1) Open this folder in a new terminal and run the following commands:
57
71
58
-
```bash
59
-
pip install -r requirements.txt
60
-
func start
61
-
```
72
+
```bash
73
+
pip install -r requirements.txt
74
+
func start
75
+
```
62
76
63
-
2) Test the HTTP GET trigger using the browser to open [http://localhost:7071/api/http_get](http://localhost:7071/api/http_get)
77
+
2) Test the HTTP GET trigger using the browser to open http://localhost:7071/api/httpget
64
78
65
-
3) Test the HTTP POST trigger in a new terminal window:
66
-
```bash
67
-
curl -i -X POST http://localhost:7071/api/http_post -H "Content-Type: text/json" -d '{"name":"yourname"}'
68
-
```
79
+
3) Test the HTTP POST trigger using your favorite REST client (e.g. [RestClient in VS Code](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)). `test.http` has been provided to run this quickly.
2) Open VS Code by entering `code .`in the terminal
73
-
3) Press Run/Debug (F5) to run in the debugger (select "Debug anyway" if prompted about local emulater not running)
74
-
4) Insure your favorite REST clientextension is installed (e.g. [RestClient in VS Code](https://marketplace.visualstudio.com/items?itemName=humao.rest-client), PostMan, etc.)
75
-
5) Open the file src/functions/test/ which contains a GET and POST test
76
-
6) Click the "Send Request" link for each and see the results in the right-hand pane that opens
90
+
3) Make sure the [Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) is installed
91
+
4) Press Run/Debug (F5) to run in the debugger (select "Debug anyway"if prompted about local emulater not running)
92
+
5) Use same approach above to test using an HTTP REST client
0 commit comments