Skip to content

Commit 7f8e429

Browse files
committed
Move updates to the existing test.http file in /scripts
1 parent 0f0e47a commit 7f8e429

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ py -m venv .venv
9292

9393
2. From your HTTP test tool in a new terminal (or from your browser), call the HTTP GET endpoint: <http://localhost:7071/api/httpget>
9494

95-
3. Test the HTTP POST trigger with a payload using your favorite secure HTTP test tool. This is an example that uses the `curl` tool with the `testdata.json` project file:
95+
3. Test the HTTP POST trigger with a payload using your favorite secure HTTP test tool. This is an example that uses the `curl` tool with the [`testdata.json`](./testdata.json) project file:
9696

9797
```bash
9898
curl -i http://localhost:7071/api/httppost -H "Content-Type: text/json" -d @testdata.json
@@ -103,7 +103,7 @@ py -m venv .venv
103103
1. Open the root folder in a new terminal.
104104
1. Run the `code .` code command to open the project in Visual Studio Code.
105105
1. Press **Run/Debug (F5)** to run in the debugger. Select **Debug anyway** if prompted about local emulator not running.
106-
1. Send GET and POST requests to the `httpget` and `httppost` endpoints respectively using your HTTP test tool (or browser for `httpget`). If you have the [RestClient](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension installed, you can execute requests directly from the `test.http` project file.
106+
1. Send GET and POST requests to the `httpget` and `httppost` endpoints respectively using your HTTP test tool (or browser for `httpget`). If you have the [RestClient](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension installed, you can execute requests directly from the [`test.http`](./scripts/test.http) project file.
107107

108108
## Source Code
109109

scripts/test.http

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
GET http://localhost:7071/api/http_get HTTP/1.1
1+
GET http://localhost:7071/api/httpget HTTP/1.1
22

33
###
44

5-
POST http://localhost:7071/api/http_post HTTP/1.1
5+
GET http://localhost:7071/api/httpget?name=World HTTP/1.1
6+
7+
###
8+
9+
POST http://localhost:7071/api/httppost HTTP/1.1
610
content-type: application/json
711

812
{
9-
"name": "Awesome Developer",
10-
"age": 25
11-
}
13+
"name": "Awesome Developer",
14+
"age": 25
15+
}

test.http

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)